Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using Pkg; Pkg.test("Gen") Package Gen errored during testing #428

Open
aishniparab opened this issue Jul 12, 2021 · 2 comments
Open

using Pkg; Pkg.test("Gen") Package Gen errored during testing #428

aishniparab opened this issue Jul 12, 2021 · 2 comments

Comments

@aishniparab
Copy link

I am using Gen in IJulia Notebook.

using Pkg; Pkg.test("Gen")

Package Gen errored during testing

Stacktrace:
[1] pkgerror(::String, ::Vararg{String,N} where N) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
[2] #test#65(::Bool, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1357
[3] #test at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:0 [inlined]
[4] #test#44(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:278
[5] test at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:263 [inlined]
[6] #test#43 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:260 [inlined]
[7] test at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:260 [inlined]
[8] #test#42 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:259 [inlined]
[9] test at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:259 [inlined]
[10] #test#41 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:258 [inlined]
[11] test(::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:258
[12] top-level scope at In[3]:1

using Gen results in a failure to precompile Gen [ea4f424c-a589-11e8-07c0-fd5c91b9da4a]

Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
[3] _require(::Base.PkgId) at ./loading.jl:960
[4] require(::Base.PkgId) at ./loading.jl:858
[5] require(::Module, ::Symbol) at ./loading.jl:853
[6] top-level scope at In[23]:1

I noticed the same issue occurs inside Docker elaborated in this thread: #311

@pursuitofepic
Copy link

I just ran into this same error while trying to install and test Gen in a virtual machine. I was able to fix it by increasing the amount of RAM available to the VM (to 8GB up from 2GB). I think before that, the VM was running out of RAM which caused the error.

@ztangent
Copy link
Member

Thanks for sharing that changing the amount of available RAM seems to address the issue! It's weird that compilation is requiring so much memory in the first place, but we'll keep this in mind in case other people have similar issues - at some point we should probably add a "Troubleshooting" section to the documentation on installing Gen.

Note that our current recommended way of using Gen is to install Julia and Gen on your own system, instead of a virtual machine, and the Docker build we used to offer is now deprecated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants