UDST / pandana

Pandas Network Analysis by UrbanSim: fast accessibility metrics and shortest paths, using contraction hierarchies :world_map:
http://udst.github.io/pandana
GNU Affero General Public License v3.0
385 stars 84 forks source link

Google Colab install pandana error #184

Closed swagluke closed 1 year ago

swagluke commented 1 year ago

Description of the bug

Trying to install pandana on Google Colab but running into issue with "Building wheels for collected packages: tables" I've tried following command to fix the issue but without any luck.

  1. I've confirmed that tables is installed properly. (3.8.1.dev0) - !pip install tables --upgrade
  2. Upgrading wheel and setuptools - !pip install wheel setuptools pip --upgrade
  3. Upgrading cmake - !pip install cmake --upgrade

Network data (optional)

If the issue is related to specific network data please provide a link to download the data or the function used to download the data.

Environment

Paste the code that reproduces the issue here:

`!pip install pandana`

Paste the error message (if applicable):

Building wheels for collected packages: tables, pandana
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for tables (setup.py) ... error
  ERROR: Failed building wheel for tables
  Running setup.py clean for tables
  Building wheel for pandana (setup.py) ... done
  Created wheel for pandana: filename=pandana-0.6.1-cp310-cp310-linux_x86_64.whl size=1851091 sha256=29eca75859973cf1c66bbac86430ff4686e547df5a2f8bf719e25e53c1729a9f
  Stored in directory: /root/.cache/pip/wheels/e7/4b/71/360fe3ffe9d5822e4d35b07a9938f0b074056b43a0040b373a
Successfully built pandana
Failed to build tables
ERROR: Could not build wheels for tables, which is required to install pyproject.toml-based projects
swagluke commented 1 year ago

I retried it today with Google Colab and it's working now. Not sure if Colab had a recent system update or not. Closing the thread now.