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
{{ message }}
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
File "go.py", line 1, in <module>
import pygore
File "/Users/jwiens/Library/Python/3.8/lib/python/site-packages/pygore/__init__.py", line 5, in <module>
from .lib import CompilerVersion, Function, Method, Package, GoFile,\
File "/Users/jwiens/Library/Python/3.8/lib/python/site-packages/pygore/lib.py", line 5, in <module>
import pygore.internal as internal
File "/Users/jwiens/Library/Python/3.8/lib/python/site-packages/pygore/internal.py", line 21, in <module>
lib = cdll.LoadLibrary(os.path.dirname(__file__) + '/' + libFile)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/jwiens/Library/Python/3.8/lib/python/site-packages/pygore/libgore.dylib, 0x0006): tried: '/Users/jwiens/Library/Python/3.8/lib/python/site-packages/pygore/libgore.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libgore.dylib' (no such file), '/usr/lib/libgore.dylib' (no such file)```
Can always build it manually so not a show-stopper but figured I'd file this to track it for now. Best solution would be to build as a fat mach-o with support for both architectures.
The text was updated successfully, but these errors were encountered:
psifertex
changed the title
pip lacks support for apple M1/arm64e
pip package lacks support for apple M1/arm64e
Mar 14, 2022
This will have to be addressed in libgore first to compile an arm64 dylib. I don't think the Go toolchain can build a fat Mach-O file so probably need some logic to detect which architecture it is and load the right dylib. I don't have an M1 to test it on and Github Action doesn't support it either.
The text was updated successfully, but these errors were encountered: