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
Building PyCall Offline with Mamba #1050
Comments
The problem is that we can't call PyCall functions (e.g. I suppose we could check But in the circumstance you describe, shouldn't you just build PyCall with |
I do actually have to set
triggers the check for numpy that ruins the build process in the offline build. The manual offline Python installation I'm using is actually just the one that Conda builds up (``/home/username/.julia/conda/3/x86_64/bin) and this triggers the statement above to be true, ruining the build as Conda tries to connect to internet it has no access to. So, to sum up- the issue here is that the manual offline installation I'm using is one that I made using Conda when it was connected to the net- taking it offline and then trying to build it will result in a fail, as Conda can no longer do all the online versioning it normally does when you call a It's a very niche issue for sure- I doubt there's many people building environments to later use offline without network access, nevermind with the default Conda interpreter, so I can understand if there's nothing to be done about it- I just hope if someone else encounters it they somehow find this post. |
Changing |
Aye- I'll take a look into doing this at some point in the near future :) |
Hello;
This is a suggestion regarding making PyCall easier to use in an offline build under a very restrictive firewall using Conda.jl. Specifically, when carrying out its
build.jl
here the following lineswill result in an unsightly error as Conda fails to connect to the internet to check for any versioning and so forth on Numpy. Removing these lines allow full offline build/precompile of PyCall on a pre-filled distribution of Julia (with Conda having its set of pre-installed Python packages.)
I would think it satisfactory to verify Numpy's presence with a quick check similar to
PyCall.pyimport("numpy")
or similar?The text was updated successfully, but these errors were encountered: