pya2l
pya2l copied to clipboard
Intel Macos pip package problem
Hello
I have this problem:
Traceback (most recent call last):
File "/Users/me/Work/Code/play/slow_search.py", line 321, in <module>
main()
File "/Users/me/Work/Code/play/slow_search.py", line 246, in main
variables = parse_a2l_variables(sys.argv[3])
File "/Users/me/Work/Code/play/slow_search.py", line 212, in parse_a2l_variables
parser = Parser()
File "/Users/me/Library/Python/3.9/lib/python/site-packages/pya2l/parser.py", line 64, in __init__
self._dll = ctypes.cdll.LoadLibrary(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 444, in LoadLibrary
return self._dlltype(name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 366, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/me/Library/Python/3.9/lib/python/site-packages/pya2l/a2l_grpc/a2l_grpc_darwin_arm64.dylib, 0x0006): tried: '/Users/me/Library/Python/3.9/lib/python/site-packages/pya2l/a2l_grpc/a2l_grpc_darwin_arm64.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/me/Library/Python/3.9/lib/python/site-packages/pya2l/a2l_grpc/a2l_grpc_darwin_arm64.dylib' (no such file), '/Users/me/Library/Python/3.9/lib/python/site-packages/pya2l/a2l_grpc/a2l_grpc_darwin_arm64.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
Thank you
Hello, it is always hard to debug a software without any insights on how to reproduce... It seems to be related to an architecture support issue, so could you give a bit more information about the machine you're running on, its architecture?
Hello
Yes, I have MacBook with Intel chip.
Hello
Yes, I have MacBook with Intel chip.
Could you tell me what is the output of the following code on your machine?
import os
import sys
import platform
print(platform.machine())
print(os.name)
print(sys.platform)
x86_64
posix
darwin