2
votes

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!

1

1 Answers

5
votes

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.