question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

installation notes about pyproj - update?

See original GitHub issue
$ curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
$ mkdir tmp_project
$ poetry init  # follow the prompts
$ poetry add pyproj
$ ls -l ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/pyproj/.libs/
libproj-e5ef822e.so.15.1.1
libsqlite3-fdd57a2d.so.0.8.6
libz-a147dcb0.so.1.2.3

$ cat ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/pyproj-2.3.1.dist-info/WHEEL 
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.6)
Root-Is-Purelib: false
Tag: cp36-cp36m-manylinux1_x86_64

This looks like pyproj is providing wheels with the required binary libs available. Yet, the geopandas docs indicate that it does not.

The point may be true of rtree? e.g.

$ poetry add rtree
$ ls -1 ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/rtree/
core.py
index.py
__init__.py
__pycache__

$ cat ~/.cache/pypoetry/virtualenvs/tmp-project-py3.6/lib/python3.6/site-packages/Rtree-0.8.3.dist-info/WHEEL 
Wheel-Version: 1.0
Generator: bdist_wheel (0.29.0)
Root-Is-Purelib: true
Tag: py3-none-any

But, rtree asserts that it is a pure-python library. So, what’s the story on that one?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jorisvandenbosschecommented, Sep 12, 2019

FYI, checked https://pypi.org/project/spatialite/ and it does not provide wheels for the spatial extensions to sqlite3 (libspatialite).

We don’t use spatialite, you may be confusing it with libspatialindex? (what is used by rtree)

GEOS also provides spatial indexes, but currently we are using rtree for that (and both have some different trade-offs in terms of performance, so don’t want to simply switch; this is a topic that can in general use some more investigation)

I would push up a PR to update docs, but the geopandas packaging is a fairly high-level and difficult to keep track of everything (aside from the practical issue of forking, finding the docs etc etc etc and, time).

No problem, it was just a question, don’t feel obliged! 😃

1reaction
jorisvandenbosschecommented, Sep 12, 2019

This looks like pyproj is providing wheels with the required binary libs available. Yet, the geopandas docs indicate that it does not.

The information is indeed outdated. The wheels are a relatively recent addition for pyproj, and they are also only for mac and linux (like it is the case for fiona and shapely). Do you want to do a PR to correct that?

But, rtree asserts that it is a pure-python library. So, what’s the story on that one?

The story is that rtree itself is indeed a pure-python library, so technically they can provide universal wheels. But you still need libspatialindex C library installed, which is not included in the wheels.

Via pip, geopandas did not install rtree at all

rtree is not an actual hard dependency of geopandas. Partly because it is not that easy to install. But since it is very useful in practice (it’s needed for spatial join, overlay functionality), the conda packages list it as a dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - pyproj 3.4.1 documentation - GitHub Pages
The easiest methods for installing pyproj are: ... If these installation methods do not meet your needs, the section below provides further instructions...
Read more >
How to Install Pyproj on Windows? - GeeksforGeeks
Installing Pyproj Interface on Windows using Conda: ... Note: If your preferred method of installation is conda-forge, use the below command ...
Read more >
pyproj - PyPI
1. pip install pyproj. Copy PIP instructions. Latest version. Released: Dec 12, 2022.
Read more >
Installing pyproj and NumPy | Python Geospatial Analysis ...
Use pip to go ahead and install NumPy; this can take a couple of minutes as many lines of installation verbosity are written...
Read more >
Installation — GeoPandas 0.12.2+0.gefcb367.dirty ...
Note. We strongly recommend to either install everything from the defaults ... pyproj, rtree, and shapely provide binary wheels with dependencies included ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found