-
Notifications
You must be signed in to change notification settings - Fork 64
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
LoadError: InitError during Package Build #136
Comments
How strange. I can reproduce this on your package, and on a blank package also using PythonCall. There are a few ways forward:
Options 2 and 3 are really just workarounds, but might be nice to have anyway. Option 1 is the real solution, but I'm not sure how to approach it, I may need to ask for help on discourse. |
Lazy installation as in 3 seems to be the easiest path to follow, but also one of the most painful issues I've dealt with while trying to use PyCall. I've runned as admin and the problem is still there. There is one more weird fact: CI's are running just fine! |
You don't need to run the Option 3 is certainly doable, but will be the most disruptive and I don't want to rush into it. Options 1 and 2 solve the problem without changing any outward behaviour so I'd rather do those first if possible. |
BTW this only affects Windows - on Mac and Linux it precompiles fine. Though it has pointed out an undesirable effect, which is that CondaPkg resolves all its dependencies while precompiling, which hides its logs. |
Hello again, @cjdoris! I've noticed that some of PythonCall's dependecies had new releases and tried to build my packages again, having no trouble this time 😄. Do you think this issue is solved for good? |
No idea but I'm glad it's working! I didn't do anything specifically to fix this. What updated? |
Hmmm then it must have something to do with some kind of caching 🤔 I installed them in many environments within v1.7 and also on another installation of v1.6 (both on windows) and no problems occured |
The precompiled module will be cached in |
Unless it's magically fixed. I possibly updated the version of MicroMamba bundled with MicroMamba.jl since you filed this issue, that may have solved it. |
Hello! The full error text:
Do you have any ideas what I need to check...? I've used PyCall.jl in another project, maybe some conflicts occured. Thanks. UPD 11/04/22: deleting of cache folders inside |
I can no longer reproduce this issue. Anyone else got a way to reproduce it? |
@cjdoris me neither. Since my last comment everything seems to work just fine. It seems to be something that was fixed in a dependency. I suggest you to create a release limiting PythonCall's dependencies with upper bounds, to assure that this keeps working. Would you like me to open another issue to address it? |
I am having the same issue on linux, I have one package which wraps the python package
|
I think I have figured out at least a big clue as to what is going on. If I remove the |
@josephsdavid Do you have a way to reproduce this? |
Let me try messing around with it this evening (12 ish hours from now!) |
So currently having a hard time reproducing, I will need to spend a bit more time figuring out how the situation which caused my issue arose |
So the conditions for the problem arising still remain difficult to reproduce, but with N=3 can confirm that nuking .CondaPkg/ solves the trick |
I've just runned into this issue one more time and I guess it has something to do with mixing linux and windows filesystems. Switching back from wsl to windows solved it locally by now. @josephsdavid where are you running your scenario? Trashing .CondaPkg/ wasn't enough to solve the issue in wsl. |
for me it is perhaps a separate issue, happened both on macOS and Linux |
Important note: I can't do anything to help without more specific information. So please, the next time anyone encounters this issue, can you report:
The more detail the better! Thank you. |
The specific building problem has changet a lot since my first message. The original pitfall is mostly solved I guess, since I've not been able to reproduce since v0.8 came. I'm closing this one for good and submitting a new one sticking to the info you asked for. Thanks! |
Thanks again for this package!
I'm currently trying to build my recently released package Anneal.jl and this error is showing up during precompilation. One must run
] precompile
to see the message below:ERROR: LoadError: InitError: failed process: Process(`'C:\Users\pedroxavier\.julia\artifacts\d628738c351341856bc6e8abe94cd6c8d8a7bf66\Library\bin\micromamba.exe' -r 'C:\Users\pedroxavier\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root' create -y -p 'C:\Users\pedroxavier\.julia\environments\v1.7\.CondaPkg\env' --override-channels --no-channel-priority pip 'python >=3.5,<4' 'python >=3.7,<4' -c anaconda -c conda-forge`, ProcessExited(3221226505)) [3221226505]
A way to fix this is to plug the command between backticks in a Julia
run
call.This way, micro mamba gets installed and everything works fine. The problem is that my package won't precompile directly without this trick. I guess it has something to do with privileges, chmod or something like that.
To reproduce this issue, it is enough to run
Anneal is available in the General Registry, so the first line will error after a little while and
] precompile
will reveal the message above.The text was updated successfully, but these errors were encountered: