pypostal
pypostal copied to clipboard
pypostal is not installing properly on M1 Mac with or w/o Rosetta for python 3.7 or 3.8
dlopen(/Users/runtiansong/opt/anaconda3/envs/py379/lib/python3.7/site-packages/postal/_parser.cpython-37m-darwin.so, 0x0002): symbol not found in flat namespace (_libpostal_address_parser_response_destroy)
gcc -v Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: x86_64-apple-darwin22.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I attempted to install libpostal and pypostal in a Python 3.7 and 3.8 environment. The above error always occurs and the above dynamic library does not exist.
The same installation process works just find when using Python 3.9 and Rosetta on my M2 Mac. I have also observed the same behavior on another M1 Mac.
See this same issue/ticket here: https://github.com/openvenues/libpostal/issues/585
I just encountered the same on M1 Mac with Rosetta, python 3.11 and gcc 15.0.0
~~have someone solved the issue?~~
okay seems solved
mac M1
working
file /usr/local/bin/python3.10
/usr/local/bin/python3.10: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/usr/local/bin/python3.10 (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/local/bin/python3.10 (for architecture arm64): Mach-O 64-bit executable arm64
Don't
file /opt/homebrew/bin/python3
/opt/homebrew/bin/python3: Mach-O 64-bit executable arm64