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
pypi installation errors #177
Comments
Cython is required to build from source. We need to add "setup_requires" to setup.py so that setuptools will handle the dependency. |
Looks like if you have pip >= 10 (released in April 2018) it works since the dependencies listed in pyproject.toml are loaded before setup.py is run. Since we import cython in setup.py using setup_requires won't work. |
bottom line - the solution is to upgrade pip that you are using in your docker environment, or use pyproj version 1.9.6. |
@jswhit thanks, but even with upgrading pip the build error remains, the base Docker Image is
At least for this Docker env we can stick to 1.9.6 (I believe |
cc @kalxas In our cases (many projects) IMHO the safe bet is to keep to 1.9.6. |
Is this new pyproj release based on PROJ 6.0 recent changes? |
Yes, it is based on 6.0.0. We will release 2.0.1 shortly that some 'proj.db not found' errors, and will include windows, linux and macosx binary wheels. |
Well, not the windows wheels yet. But Linux and osx wheels. |
are windows wheels coming soon? |
We need help setting up windows wheel builds |
I just uploaded windows wheels for python 3 courtesy of @cgohlke |
Refer to #216. |
Feel free to reopen if the related issue does not match your needs or the latest version of pyproj (2.1.1) does not meet your needs. |
I just tried |
Great! |
FYI I'm getting errors on Travis and Appveyor: |
@tomkralidis, It appears that you are using the deprecated Python 3.4 for your builds. We don't provide wheels for Python 3.4. If you would like to continue using that python version, you will need to build PROJ from source and then install pyproj (See: https://pyproj4.github.io/pyproj/html/installation.html). |
Looks like this worked. Thanks @snowman2 ! |
Great! |
I'm still not sure what to do to fix this for me, as the above solutions are not relevant or do not work. It seems the error is not useful, as Cython is installed. Singularity> cat /etc/centos-release I tried pinning the version at pyproj==1.9.6 But then I get the following when a user runs their ipynb. ----> 9 from pyproj import CRS, Transformer |
The CRS class was added in pyproj 2. |
Collecting pyproj==2.2.0 |
You need pip >= 10.0.1 or you need cython installed before you install pyproj. |
Again . . .
It also fails when Cython is installed. |
It seems to have been solved by doing the install as a separate pip3 call, rather than installing it along with other packages, or implicitly trusting the package needing pyproj to install it correctly. |
cc @justb4
Via geopython/GeoHealthCheck#240, looks like with the latest pyproj release on pypi there are install issues:
The text was updated successfully, but these errors were encountered: