komoot / staticmap

A small, python-based library for creating map images with lines, markers and polygons.
https://www.komoot.com
Other
290 stars 65 forks source link

When pip installing library in an virtualenv an error message is shown #14

Closed keigezellig closed 4 years ago

keigezellig commented 6 years ago

I am using a virtual environment with python 3 as base and i got the following error message:

(.venv) (test)[vagrant@fedora25-vbox charting_stuff]$ pip install staticmap
Collecting staticmap
  Downloading staticmap-0.5.3.tar.gz
    Complete output from command python setup.py egg_info:
    error in staticmap setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in futures;python_version<"3.2" at ;python_version<"3.2"

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ydv6vuoj/staticmap/ 

It has probably something to do with an syntax error in your requirements.txt and/or setup.py?

j0nes2k commented 6 years ago

+1 for this issue, we are seeing this for python 2.7 too. @keigezellig, did you find a workaround for this?

laufhannes commented 6 years ago

Have a look at https://github.com/komoot/staticmap/issues/13#issuecomment-309861553, that did the trick for me:

pip install -U setuptools
beyoung commented 5 years ago

@laufhannes It helps.