openvenues / pypostal

Python bindings to libpostal for fast international address parsing/normalization
MIT License
771 stars 90 forks source link

pip install libpostal issue on Windows #53

Open ldyadin-wiley opened 5 years ago

ldyadin-wiley commented 5 years ago

Hey guys,

I'm getting the following issue trying to install a Python bind for libpostal on Wilndows 10 machine during running setup.py: "Cannot open include file: 'libpostal/libpostal.h': No such file or directory". Looks like the same as below on MacOS. Could you please estimate when this could be fixed?

Thanks, Leonid

variux commented 4 years ago

Did you install de C lib? you need to download it from the repo and compile, is in the instructions

ldyadin-wiley commented 4 years ago

Well, I tried it differently. Firstly, you don't have any such instructions on pypostal page for Windows. Trying "Installing libpostal" section's "git clone htps:// ..." I was getting the following error: "fatal: unable to access 'https://github.com/openvenues/libpostal/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version" Secondly, I installed MS VS Tools, as I was getting the error requesting this during "pip install pypostal", so I thought pypostal installer will assemble the library, otherwise why would it needed C compiler installed? But it didn't help. Then I've successfully installed the library the way is recommended on libpostal page using MSys2, etc. This didn't help either. So, I run out of options.

DrXoo commented 4 years ago

I have libpostal installed and I have the same issue as yours @ldyadin-wiley

Did you finally succeeded?

ldyadin-wiley commented 4 years ago

Nope, used Java instead.

From: Domingo García [mailto:notifications@github.com] Sent: Wednesday, February 19, 2020 11:46 AM To: openvenues/pypostal Cc: Dyadin, Leonid; Mention Subject: Re: [openvenues/pypostal] pip install libpostal issue on Windows (#53)

I have libpostal installed and I have the same issue as yours @ldyadin-wileyhttps://github.com/ldyadin-wiley

Did you finally succeeded?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/openvenues/pypostal/issues/53?email_source=notifications&email_token=AENWSOMZ3WEDCV3UBZJRFGDRDTWT7A5CNFSM4JNO4M5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMG35UQ#issuecomment-588103378, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AENWSOIJAR6OKU3XHJOMNKDRDTWT7ANCNFSM4JNO4M5A.

zaid-khan commented 4 years ago

Hi, I have faced the same issue. Any progress?

ldyadin-wiley commented 4 years ago

Hi, We dropped it so I don’t care anymore.

From: Zaid Khan [mailto:notifications@github.com] Sent: Friday, April 17, 2020 2:12 PM To: openvenues/pypostal Cc: Dyadin, Leonid; Mention Subject: Re: [openvenues/pypostal] pip install libpostal issue on Windows (#53)

Hi, I have faced the same issue. Any progress?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/openvenues/pypostal/issues/53#issuecomment-615187990, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AENWSOL3BQ7USAOPZJCFENDRNA2QTANCNFSM4JNO4M5A.

variux commented 4 years ago

@zaid-khan I migrated to Linux, lot of headaches trying to make it work on windows

sunnybear commented 4 years ago

the same "Collecting pypostal Downloading pyPostal-1.1.tar.gz (6.7 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\lenovo pc\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Lenovo PC\AppData\Local\Temp\pip-install-sxkqez9y\pypostal\setup.py'"'"'; file='"'"'C:\Users\Lenovo PC\AppData\Local\Temp\pip-install-sxkqez9y\pypostal\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Lenovo PC\AppData\Local\Temp\pip-pip-egg-info-ux5zs380' cwd: C:\Users\Lenovo PC\AppData\Local\Temp\pip-install-sxkqez9y\pypostal\ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Lenovo PC\AppData\Local\Temp\pip-install-sxkqez9y\pypostal\setup.py", line 10, in long_description=codecs.open('README.rst', "r", "utf-8").read(), File "c:\users\lenovo pc\appdata\local\programs\python\python38\lib\codecs.py", line 905, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output."

sunnybear commented 4 years ago

and the same issue for Centos "pip3 install pypostal WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead. Collecting pypostal Using cached https://files.pythonhosted.org/packages/e7/96/145d60501264de505926f48f52c29c5fd20d066f2e158107a66ea963cf56/pyPostal-1.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-v2lzde7b/pypostal/setup.py", line 10, in long_description=codecs.open('README.rst', "r", "utf-8").read(), File "/usr/lib64/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v2lzde7b/pypostal/"

sergemercado commented 3 years ago

I think the most effective solution I found yet is:

  1. Don't use Windows

It's a joke, please don't hate me. I'm trying to find a fix also.

GA-Ramlov commented 3 years ago

Anyone that have found a way to fix it yet?

simonm3 commented 2 years ago

same on ubuntu. any solution?

XtineInWa commented 2 years ago

Any solution? I'm having a problem too (after two weeks of trying).

ldyadin-wiley commented 2 years ago

Nope.


От: XtineInWa @.> Отправлено: Thursday, December 9, 2021 9:01:36 PM Кому: openvenues/pypostal @.> Копия: Dyadin, Leonid @.>; Mention @.> Тема: Re: [openvenues/pypostal] pip install libpostal issue on Windows (#53)

Any solution? I'm having a problem too (after two weeks of trying).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/openvenues/pypostal/issues/53*issuecomment-990091354__;Iw!!N11eV2iwtfs!oQCphwE_NZUR8DXyYJ5l2DJJrPFgTyPDaE9YZvq7qy-QS8piYUJsjY-A8yRaZTCWf-N3erS4cBxb3OLEPnrlu7g$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AENWSOOA6FURNOWGOKIJHQ3UQDVIBANCNFSM4JNO4M5A__;!!N11eV2iwtfs!oQCphwE_NZUR8DXyYJ5l2DJJrPFgTyPDaE9YZvq7qy-QS8piYUJsjY-A8yRaZTCWf-N3erS4cBxb3OLEjiADXro$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!N11eV2iwtfs!oQCphwE_NZUR8DXyYJ5l2DJJrPFgTyPDaE9YZvq7qy-QS8piYUJsjY-A8yRaZTCWf-N3erS4cBxb3OLEA3IHTTk$ or Androidhttps://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!N11eV2iwtfs!oQCphwE_NZUR8DXyYJ5l2DJJrPFgTyPDaE9YZvq7qy-QS8piYUJsjY-A8yRaZTCWf-N3erS4cBxb3OLE1oI509s$.

Lakshay-G commented 1 year ago

This seems to work for Windows. Something I found online: https://pypi.org/project/pypostalwin/