pya2l icon indicating copy to clipboard operation
pya2l copied to clipboard

Intel Macos pip package problem

Open pompushko opened this issue 6 months ago • 4 comments

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

pompushko avatar Jun 13 '25 14:06 pompushko

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?

Sauci avatar Jul 01 '25 08:07 Sauci

Hello

Yes, I have MacBook with Intel chip.

pompushko avatar Jul 01 '25 10:07 pompushko

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)

Sauci avatar Jul 01 '25 11:07 Sauci

x86_64
posix
darwin

pompushko avatar Jul 01 '25 18:07 pompushko