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.

Cannot properly install Pyrosm

See original GitHub issue

Hi, I can no longer install and import the library correctly.

FIRST ATTEMPT

  • First I tried on my main computer, running Windows 10 version 10.0.19043 Build 19043.
  • I created a virtual environment using anaconda, installed geopandas using conda install geopandas and subsequently pyrosm using conda install -c conda-forge pyrosm, as recommended in the documentation.
  • The installation is successful, but when I try to import the library I get this error: image
  • Reinstalling anaconda did not lead to any solution.

SECOND ATTEMPT

  • I then tried to recreate the problem on my laptop (still windows 10 version 10.0.19043 Build 19043).
  • The same error occurs again

THIRD ATTEMPT

  • So I decided not to use an Anaconda env, but a simple Python virtual env.
  • Still, same error
  • Even installing only via pip the problem remains

FOURTH ATTEMPT

  • I created a virtual machine with Ubuntu 64bit 20.04
  • Installing everything with conda (and conda-forge) leads to the same problem
  • Whether using an anaconda environment or a Python env the problem remains
  • Using only pip to install the packages (in a Python env), the installation and import is (apparently) successful, but when you try to run a simple piece of code, the kernel dies (see image below). image image

FIFTH ATTEMPT

  • I finally tried to use Google Colab
  • The packages correctly install via pip image image
  • and it is possible to import them, but with the same warning obtained in Linux (as expected)
/usr/local/lib/python3.7/dist-packages/geopandas/_compat.py:115: UserWarning: The Shapely GEOS version (3.9.1-CAPI-1.14.2) is incompatible with the GEOS version PyGEOS was compiled with (3.10.0-CAPI-1.16.0). Conversions between both will be slow.
  shapely_geos_version, geos_capi_version_string
  • Still, if you try to run the code the kernel dies. image

PS: on the laptop I have a working environment with both Geopandas and Pyrosm, where the code runs correctly. The problem is that I can no longer replicate such an environment. Even creating a .yml file and reinstalling exactly the same packages generates the error. I have tried on multiple devices and OS, but with no success.

I have exhausted every option…

Thank you for your time, Daniele

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
DanielePassabicommented, Nov 11, 2021

Thank you so much for your quick answer! @HTenkanen

I installed cykhash-1.0.2 beforehand and everything works fine now 😃

I don’t know if it is possible but it would be a good idea to have this version of cykhash installed when using conda-forge.

3reactions
HTenkanencommented, Nov 11, 2021

Yes, I need to update the code base to reflect the latest changes in cykhash for the next release. But yes, freezing the cykhash version to older one is a quick fix for the installation issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install pyrosm · Issue #61 - GitHub
I've been trying to install this pyrosm on Windows10 and Python 3.6 because it looks potentially useful (although inadequately documented...
Read more >
Installation - Pyrosm
The recommended way to install pyrosm is by using conda package manager: ... and Cykhash) that needs to be successfully installed before Pyrosm...
Read more >
pyrosm - PyPI
The recommended way to install pyrosm is using conda package manager: ... On Linux and Mac installing geopandas with pip should work without...
Read more >
how to successfully install pyproj and geopandas?
First and most important: do not try to directly pip install or conda install any of the dependencies – if you do, they...
Read more >
How to install Python geospatial libraries (Gdal, Fiona ...
Your browser can't play this video. ... We have created a tutorial that shows the installation process of the Python geospatial libraries in ......
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