Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypostal is not installing properly on M1 Mac with or w/o Rosetta for python 3.7 or 3.8 #88

Open
wiseyoungbuck opened this issue Jun 21, 2023 · 2 comments

Comments

@wiseyoungbuck
Copy link

wiseyoungbuck commented Jun 21, 2023

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: openvenues/libpostal#585

@wiseyoungbuck wiseyoungbuck changed the title pypostal will not run on M1 Mac with or w/o Rosetta for python 3.7 or 3.8 pypostal is not installing properly on M1 Mac with or w/o Rosetta for python 3.7 or 3.8 Jun 21, 2023
@psylence303
Copy link

I just encountered the same on M1 Mac with Rosetta, python 3.11 and gcc 15.0.0

@D-Hatz
Copy link

D-Hatz commented Jun 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants