-
Notifications
You must be signed in to change notification settings - Fork 414
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
M1 Mac woes using libpostal #585
Comments
What you can do:
If it still does not work try to use Python 3.9 or 3.10. I was able to get it working by switching from 3.8 to 3.9 or 3.10. Then the nasty error message "symbol not found in flat namespace '_libpostal_address_parser_response_destroy'" went away. |
I have tried the mentioned steps but it still dint work. My arch is 'AMD64'. I have also tried swithcing to 3.9. It still doesnt work. Any help on this would be appreciated |
I am facing the same issue with M2 Mac I tried using all the methods but it does not work out for me if @albarrentine or @JochenFromm or anyone who could help to resolve this issue is really appreciated. |
% gcc -v Here is exactly what I did and make check succeeds:
I tried --disable-sse2 like configure suggests but it looks like someone auto-detected the ARM architecture to disable that automatically and if you actually specify --disable-sse2 it breaks things. I have an M1 but I doubt that matters here. |
This works for me. Thanks ❤️
|
Run Then the same on the python executable that you are running. It looks like the postal binaries that you installed with pip are Intel x86_64 and your python is arm64. Make sure your pip is also arm64 as that would be required for you to get the right Python packages... though I really have no experience with the Python bindings, so can't help. You might want to file an issue on that project (I think it is separate). |
I have the same issue. Will not run in python 3.7 or 3.8, works with 3.9. I am using python in a conda environment. I attempted to solve this using both Rosetta and Native terminals as well as Rosetta and Native Homebrew. The On a Mac M2 Max. |
Main reason is pypostal uses a particular includes and bin directory and for Mac some times that would not be that we have in pypostal. |
i am using pyspark and getting below error on mac M1. i tired to use python 3.9 version too . It is working with python but not with pyspark : @varunpawar652000 can you share on how you set the path ? |
@nikil-katturi can you please share your python version? |
python version 3.10 |
Is pypostal is working as you want? Like with out pyspark are you able to use pypostal? |
yes it is working without pyspark |
Hi!
I tried installing libpostal on M1 Mac through these two methods listed below:
I cannot use the parser api using the python bindings when library is installed by (1) or (2).
For example, after I installed the postal package in my python 3.8.6 virtual environment, i.e.,pip install postal, I am receiving this consistent error when doing a simple import :
venv) libpostal % python
Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
What is wrong?
The text was updated successfully, but these errors were encountered: