Closed
Description
I think currently this is because juliacall will not look up a compatible version of Julia with Python, which causing the following when one use a x86 Julia via Rossetta on M1
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import juliacall
File ~/opt/miniconda3/lib/python3.9/site-packages/juliacall/__init__.py:210, in <module>
206 os.chdir(d)
208 CONFIG['inited'] = True
--> 210 init()
File ~/opt/miniconda3/lib/python3.9/site-packages/juliacall/__init__.py:149, in init()
146 try:
147 # Open the library
148 os.chdir(os.path.dirname(libpath))
--> 149 CONFIG['lib'] = lib = c.CDLL(libpath, mode=c.RTLD_GLOBAL)
151 # parse options
152 argc, argv = args_from_config()
File ~/opt/miniconda3/lib/python3.9/ctypes/__init__.py:382, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
379 self._FuncPtr = _FuncPtr
381 if handle is None:
--> 382 self._handle = _dlopen(self._name, mode)
383 else:
384 self._handle = handle
OSError: dlopen(/Users/roger/.julia/juliaup/julia-1.7.2+0~x64/lib/libjulia.1.7.dylib, 0x000A): tried: '/Users/roger/.julia/juliaup/julia-1.7.2+0~x64/lib/libjulia.1.7.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
Metadata
Metadata
Assignees
Labels
No labels