-
Notifications
You must be signed in to change notification settings - Fork 190
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
PyCall fails to build when using PYTHON=""
#1036
Comments
Mine does not error when compiling, but it fails when importing conda packages, in either julia 1.8.5 or julia 1.9.0.
restarting julia julia> using PyCall
julia> py"""2+2"""
4
julia> py"""
import numpy
""" hangs. julia> py"""
import matplotlib
"""
Killed: 9 crashes. julia> versioninfo()
Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin22.4.0)
CPU: 8 × Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 1 on 8 virtual cores
(@v1.9) pkg> st
Status `~/.julia/environments/v1.9/Project.toml`
[8f4d0f93] Conda v1.8.0
[438e738f] PyCall v1.95.1
[d330b81b] PyPlot v2.11.1 |
make it look like your conda installation is broken somehow? You could try removing It works for me… |
I’m interested if this works. I did remove .julia/conda, but that didn’t fix it for me.
Anything else I can delete to remove any state or possible error for PyCall?
|
In any case, it seems you are reporting the error in the wrong package — it seems like it is a problem with Conda.jl. e.g. does using Conda
Conda.add("numpy") work? What is the values of |
@stevengj thanks--nuking |
Thanks. I had to julia> Conda.add("numpy")
[ Info: Running `conda install -y numpy` in root environment
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
julia> Conda.ROOTENV
"$HOME/.julia/conda/3" $HOME is my user home directory. Rebuilt PyCall and restarted julia. |
On the latest Julia (1.8.5) with the latest release of PyCall (1.95.1), attempting to build PyCall with
PYTHON=""
(i.e. using the conda-provided python), fails:For completeness:
This is on Ubuntu 20.04.
The text was updated successfully, but these errors were encountered: