python-Levenshtein icon indicating copy to clipboard operation
python-Levenshtein copied to clipboard

Incompatible architecture (apple silicon)

Open jer-tx opened this issue 2 years ago • 1 comments

Running into an error with this package when running a project on apple silicon (M1)

Using Python specified in "runtime": python3.7
  File "/Users/name/.local/share/virtualenvs/library1CORs3LD/lib/python3.7/site-packages/Levenshtein/__init__.py", line 1, in <module>
    from Levenshtein import _levenshtein
ImportError: dlopen(/Users/name/.local/share/virtualenvs/library-1CORs3LD/lib/python3.7/site-packages/Levenshtein/_levenshtein.cpython-37m-darwin.so, 0x0002): tried: '/Users/name/.local/share/virtualenvs/library1CORs3LD/lib/python3.7/site-packages/Levenshtein/_levenshtein.cpython-37m-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_levenshtein.cpython-37m-darwin.so' (no such file), '/usr/lib/_levenshtein.cpython-37m-darwin.so' (no such file)

(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'

Not sure of a solution here

jer-tx avatar Mar 04 '22 18:03 jer-tx

can you try with 3.9+ version. I have m1 chip mac pro 13 2020 model. worked for me

HardipinderS avatar Apr 05 '22 17:04 HardipinderS