2

I have the following set up: module xxxxx at the top of my file named xxxxx.jl

I go to do the following:

include("modules/xxxxx/xxxxx.jl") using xxxxx

I get the following error:

ERROR: LoadError: ArgumentError: Package xxxxx not found in current path: - Run Pkg.add("xxxxx") to install the xxxxx package.

Any suggestions? I don't have this error on Julia v0.6 only on v0.7!

Thanks!

logankilpatrick
  • 13,148
  • 7
  • 44
  • 125

1 Answers1

5

Write

using .xxxxx

By using include function the module is loaded as a submodule of a current module. E.g. if you included it in global scope then you can also write

using Main.xxxxx

But the syntax I gave at the top would work no matter if you are in Main module or you include a submodule in another module defined by you.

Bogumił Kamiński
  • 66,844
  • 3
  • 80
  • 107