You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the /Users/my_username/.juliaup/bin stays in front of the /Users/my_username/miniforge3/envs/rmg_env/bin on the path, so that version of julia is used instead of the one in the RMG environment.
The one in the rmg_env was compiled with x86_64 and is compatible with python-jl etc.
The one in .juliaup is not.
As a consequence, running python-jl in the RMG environment gives the error:
% python-jl Precompiling PyCall... Info Given PyCall was explicitly requested, output will be shown live ERROR: LoadError: could not load library "/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib" dlopen(/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib, 0x0009): tried: '/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (no such file), '/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')). Please runPkg.build("PyCall")if your Python build has changed
Installation Information
Describe your installation method and system information.
OS (include version if known): Mac OS 15.1 on Apple M1 Pro chip
Installation method: from source with Anaconda (miniforge)
RMG version information:
RMG-Py: 3.2.0-362-g43d5bf89c
RMG-database: 3.2.0-113-g64dd3b60a
Additional Context
Manually removing /Users/my_username/.juliaup/bin from the path solves the problem.
But is there another way?
The current installation instructions rely on using a julia binary from conda-forge (not the recommended install, but what we have working) - we are moving toward using juliaup in #2687 but it isn't ready yet. What prompted trying to use juliaup with the current version of RMG?
Bug Description
Installation from source with Anaconda instructions don't seem to work on Apple silicon with JuliaUp installed.
How To Reproduce
Install JuliaUp and Conda and RMG.
The
.zshrc
file looks likeBefore activating the rmg_env conda environment:
Notice
Users/my_username/.juliaup/bin
is near the front.Then activate the conda environment with
and after:
the
/Users/my_username/.juliaup/bin
stays in front of the/Users/my_username/miniforge3/envs/rmg_env/bin
on the path, so that version of julia is used instead of the one in the RMG environment.The one in the
rmg_env
was compiled withx86_64
and is compatible with python-jl etc.The one in
.juliaup
is not.As a consequence, running
python-jl
in the RMG environment gives the error:% python-jl Precompiling PyCall... Info Given PyCall was explicitly requested, output will be shown live ERROR: LoadError: could not load library "/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib" dlopen(/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib, 0x0009): tried: '/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (no such file), '/Users/my_username/miniforge3/envs/rmg_env/lib/libpython3.7m.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')). Please run
Pkg.build("PyCall")if your Python build has changed
Installation Information
Describe your installation method and system information.
Additional Context
Manually removing
/Users/my_username/.juliaup/bin
from the path solves the problem.But is there another way?
(issue drafted by @rwest)
The text was updated successfully, but these errors were encountered: