Closed valentinsulzer closed 2 years ago
After building in 1.6, PyCall/deps/deps.jl
is
const python = "/usr/local/Caskroom/miniforge/base/envs/conda_jl/bin/python"
const libpython = "/usr/local/Caskroom/miniforge/base/envs/conda_jl/lib/libpython3.8.dylib"
const pyprogramname = "/usr/local/Caskroom/miniforge/base/envs/conda_jl/bin/python"
const pyversion_build = v"3.8.12"
const PYTHONHOME = "/usr/local/Caskroom/miniforge/base/envs/conda_jl:/usr/local/Caskroom/miniforge/base/envs/conda_jl"
"True if we are using the Python distribution in the Conda package."
const conda = false
After building in 1.7:
const python = "/usr/local/Caskroom/miniforge/base/envs/conda_jl/bin/python"
const libpython = "/System/Library/Frameworks/Python.framework/Versions/2.7/Python"
const pyprogramname = "/usr/local/Caskroom/miniforge/base/envs/conda_jl/bin/python"
const pyversion_build = v"3.8.12"
const PYTHONHOME = "/usr/local/Caskroom/miniforge/base/envs/conda_jl:/usr/local/Caskroom/miniforge/base/envs/conda_jl"
"True if we are using the Python distribution in the Conda package."
const conda = false
So I guess the issue is the line
const libpython = "/System/Library/Frameworks/Python.framework/Versions/2.7/Python"
I've just seen that Mac M1 has Tier 3 support with Julia, so feel free to close this if it's not supported
I have this exact problem. Encountered after homebrew upgrade to julia 1.7 from 1.6.
ImportError: No module named site
Process julia exited abnormally with code 1
same issue here. But I get it with both Julia 1.7 and 1.6 (where 1.6 runs via Rosetta)
Does anybody have a workaround yet?
FWIW - it seems that if I use the system python in /usr
I don't have the problem. (but that python version has other issues that I can't resolve and I'd rather use anaconda or miniconda)
libpython3.8.dylib: mach-o, but wrong architecture
You still have the Rosetta version of Python installed and it won't work with native M1 Julai. You need to re-install Anaconda with the native-M1 versions to use it from a native-M1 Julia.
Just rm -rf ~/.julia/conda
and re-install.
I've tried this multiple times without success, sorry. Even deleting the entire .julia folder didn't help.
This issue doesn't really seem fixed, I have the same problem with Python installed for ARM
I had a similar issue working with Julia (version 1.9) in Visual Code.
When using PyCall, Julia exited abnormally with code 1.
Re-installing Anaconda for the M1 version worked for me.
PyCall works with Julia 1.6:
But fails with Julia 1.7 (Mac M1 version)