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

pip install libpostal issue on Windows #53

Open
ldyadin-wiley opened this issue Nov 14, 2019 · 15 comments
Open

pip install libpostal issue on Windows #53

ldyadin-wiley opened this issue Nov 14, 2019 · 15 comments

Comments

@ldyadin-wiley
Copy link

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
Copy link

variux commented Dec 7, 2019

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

@ldyadin-wiley
Copy link
Author

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
Copy link

DrXoo commented Feb 19, 2020

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

Did you finally succeeded?

@ldyadin-wiley
Copy link
Author

ldyadin-wiley commented Feb 19, 2020 via email

@zaid-khan
Copy link

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

@ldyadin-wiley
Copy link
Author

ldyadin-wiley commented Apr 17, 2020 via email

@variux
Copy link

variux commented Apr 17, 2020

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

@sunnybear
Copy link

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
Copy link

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
Copy link

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
Copy link

Anyone that have found a way to fix it yet?

@simonm3
Copy link

simonm3 commented Dec 4, 2021

same on ubuntu. any solution?

@XtineInWa
Copy link

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

@ldyadin-wiley
Copy link
Author

ldyadin-wiley commented Dec 9, 2021 via email

@Lakshay-G
Copy link

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

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

10 participants