-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
Hi,
I'm trying to get pyjulia up and running but coming across the following issues. Any help would be appreciated.
I have installed both Julia (1.9.1) and Python (3.10) for M1 chip. I will give the output from Julia.install() below.
When I try to run:
from julia import Main
I get the following error:
OSError: dlopen(/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib, 0x000A): tried: '/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (no such file), '/Applications/Julia-1.9.app/Contents/Resources/julia/lib/libjulia.1.9.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
My output from julia.install()
import julia
julia.install()
[ Info: Julia version info
Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 x86_64 i386
CPU: Apple M1 Pro:
speed user nice sys idle irq
#1-10 2400 MHz 178375 s 0 s 105677 s 2108381 s 0 s
Memory: 32.0 GB (327.453125 MB free)
Uptime: 23966.0 sec
Load Avg: 2.11083984375 2.26953125 2.78369140625
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
Threads: 1 on 8 virtual cores
Environment:
PATH = /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin:/Users/m0a0hd6/opt/anaconda3/bin:/Users/m0a0hd6/opt/anaconda3/condabin:/Applications/CPLEX_Studio_Beta211/cplex/bin/x86-64_osx:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/munki:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
MANPATH = /opt/homebrew/share/man::
HOMEBREW_PREFIX = /opt/homebrew
HOMEBREW_REPOSITORY = /opt/homebrew
INFOPATH = /opt/homebrew/share/info:
PYTHONPATH = /Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/third_party/thriftpy:/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev
HOMEBREW_CELLAR = /opt/homebrew/Cellar
XPC_FLAGS = 0x0
HOME = /Users/m0a0hd6
[ Info: Julia executable: /Applications/Julia-1.9.app/Contents/Resources/julia/bin/julia
[ Info: Trying to import PyCall...
┌ Info: PyCall is already installed and compatible with Python executable.
│
│ PyCall:
│ python: /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin/python
│ libpython: /Library/Frameworks/Python.framework/Versions/3.10/Python
│ Python:
│ python: /Users/m0a0hd6/Desktop/Ambient_Transition_Project/Julia_JuMP_Exploration/venv/bin/python
└ libpython: /Library/Frameworks/Python.framework/Versions/3.10/Python
Metadata
Metadata
Assignees
Labels
No labels