-
Notifications
You must be signed in to change notification settings - Fork 67
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
Precompilation failure (InitError: failed process) #179
Comments
I'm totally stumped, I cannot reproduce this issue on Windows with the same package versions as you. I tried deleting Are you able to reliably reproduce the problem? That is, is there a sequence of steps that you can run which always/usually gets to this problem? If not, I'm not sure I can help. I have just released a new version of MicroMamba.jl with a newer version of micromamba (0.24.0 instead of 0.22.0). Maybe that helps? |
I have just tried and failed to reproduce the issue in a Julia 1.7.0 Docker container too. Given the error message is about lock files, maybe reproducing the problem in a clean environment won't work, we probably need some stale lock files lying around. |
I've just deleted ~/.julia and installed 1.7.3 (Windows) and 1.7.0 (WSL). It works fine now on both with PythonCall 0.9 + MicroMamba 0.24. I've updateded the packages before reinstall but only complete julia reset made the error disappear. |
I'll leave it open for now. If it happens again, please make a copy of the I suspect the problem occurs if you interrupt MicroMamba while resolving dependencies, leaving lock files lying around. It may be possible to get CondaPkg to manually remove them. |
Happens to me on M1 Mac as well from Rossetta, I'm not sure if this is a M1 issue or not julia> using Bloqade
[ Info: Precompiling Bloqade [bd27d05e-4ce1-5e79-84dd-c5d7d508bbe1]
┌ Warning: Python library "/Users/roger/Code/Julia/Bloqade/build/2.adiabatic/.CondaPkg/env/lib/libpython3.10.dylib" could not be opened.
└ @ PythonCall.C ~/.julia/packages/PythonCall/XgP8G/src/cpython/context.jl:109
ERROR: LoadError: InitError: ArgumentError: NULL library handle
Stacktrace:
[1] #dlsym#1
@ ./libdl.jl:57 [inlined]
[2] dlsym
@ ./libdl.jl:57 [inlined]
[3] init_pointers(p::PythonCall.C.CAPIPointers, lib::Ptr{Nothing}) (repeats 2 times)
@ PythonCall.C ~/.julia/packages/PythonCall/XgP8G/src/cpython/pointers.jl:283
[4] init_context()
@ PythonCall.C ~/.julia/packages/PythonCall/XgP8G/src/cpython/context.jl:129
[5] __init__()
@ PythonCall.C ~/.julia/packages/PythonCall/XgP8G/src/cpython/CPython.jl:21
[6] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base ./loading.jl:768
[7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
@ Base ./loading.jl:854
[8] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1097
[9] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1013
[10] require(into::Module, mod::Symbol)
@ Base ./loading.jl:997
[11] include
@ ./Base.jl:418 [inlined]
[12] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base ./loading.jl:1318
[13] top-level scope
@ none:1
[14] eval
@ ./boot.jl:373 [inlined]
[15] eval(x::Expr)
@ Base.MainInclude ./client.jl:453
[16] top-level scope
@ none:1
during initialization of module C
in expression starting at /Users/roger/.julia/packages/Bloqade/c5pbN/src/Bloqade.jl:1
ERROR: Failed to precompile Bloqade [bd27d05e-4ce1-5e79-84dd-c5d7d508bbe1] to /Users/roger/.julia/compiled/v1.7/Bloqade/jl_UrbrnH.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base ./loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:997 |
This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days. |
This issue has been closed because it has been stale for 7 days. If it is still |
When precompiling Anneal.jl (docs branch) there seems to be some process lock problem with libmamba.
The complete shell session is here: (.CondaPkg is created but left empty)
PS: I have some experience with the Python C API . If you could provide some insights about your thought process on this topic, so I can learn more about the package, I'd be happy to make pull requests for PythonCall in the future!
The text was updated successfully, but these errors were encountered: