ScottPJones / Mongo.jl

Mongo bindings for the Julia programming language
Other
43 stars 21 forks source link

Cannot import Mongo while on Mac #28

Open rahulkp220 opened 6 years ago

rahulkp220 commented 6 years ago

Hi, I am trying to use the package on Julia 0.6.1, and have troubles using the package. Here is the error I get,

julia> using Mongo, LibBSON
ERROR: LoadError: could not open file /Users/rahullakhanpal/.julia/v0.6/Mongo/src/../deps/deps.jl
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:576
 [2] include(::String) at ./sysimg.jl:14
 [3] include_from_node1(::String) at ./loading.jl:576
 [4] eval(::Module, ::Any) at ./boot.jl:235
 [5] _require(::Symbol) at ./loading.jl:490
 [6] require(::Symbol) at ./loading.jl:405
while loading /Users/rahullakhanpal/.julia/v0.6/Mongo/src/Mongo.jl, in expression starting on line 3
bbork commented 6 years ago

Same here (on windows). When the include line is commented out I get similar error from LibBSON

ERROR: LoadError: could not open file C:\Users\****\.julia\packages\LibBSON\2p4EI\deps\deps.jl
Stacktrace:
 [1] include at .\boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at .\loading.jl:1038
 [3] include at .\sysimg.jl:29 [inlined]
 [4] include(::String) at C:\Users\****\.julia\packages\LibBSON\2p4EI\src\LibBSON.jl:1
 [5] top-level scope at none:0
 [6] include at .\boot.jl:317 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1038
 [8] include(::Module, ::String) at .\sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:319 [inlined]
 [11] eval(::Expr) at .\client.jl:389
 [12] top-level scope at .\none:3
in expression starting at C:\Users\****\.julia\packages\LibBSON\2p4EI\src\LibBSON.jl:5

And when I remove that include too I get:

ERROR: LoadError: UndefVarError: libbson not defined
Stacktrace:
 [1] top-level scope at .\none:0
 [2] include at .\boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1038
 [4] include(::Module, ::String) at .\sysimg.jl:29
 [5] top-level scope at none:2
 [6] eval at .\boot.jl:319 [inlined]
 [7] eval(::Expr) at .\client.jl:389
 [8] top-level scope at .\none:3
in expression starting at C:\Users\****\.julia\packages\LibBSON\2p4EI\src\LibBSON.jl:7

Quite predictably just removing some "random" bits of code is not going to improve the situation :D

felipenoris commented 6 years ago

I think this can be closed.