UDST / urbanaccess

A tool for GTFS transit and OSM pedestrian network accessibility analysis by UrbanSim
https://udst.github.io/urbanaccess/index.html
GNU Affero General Public License v3.0
236 stars 56 forks source link

Minor problems with automatic installation of dependencies #44

Closed smmaurer closed 3 years ago

smmaurer commented 5 years ago

I'm running into a couple of problems trying to run python setup.py develop in a clean Python 2.7 conda environment (Mac OS 10.14). (Pip install works fine.)

  1. One problem has to do with dependencies whose newest versions no longer support Python 2.7. For example, if matplotlib isn't installed yet, I get this error:

    error: Setup script exited with 
    Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.
    Beginning with Matplotlib 3.0, Python 3.5 and above is required.

    Adding 'matplotlib < 3.0' to setup.py resolves this.

  2. The second problem is something with osmnet that I'm not sure how to diagnose. After fixing the matplotlib error, I get this one:

    ValueError: invalid wheel name: 'osmnet-0.1.0-py2.py3-any.whl'

    Manually installing osmnet allows python setup.py develop to run properly for urbanaccess, but I'm not sure what the general fix is.

smmaurer commented 5 years ago

Item 2 has been resolved by https://github.com/UDST/osmnet/issues/15.

smmaurer commented 3 years ago

I think this can be closed. We've been recommending pip install . instead of python setup.py develop for a while now across UDST, because it's more reliable in cases like this. And Python 2.7 support is no longer a priority anyway.