Closed kambrium closed 4 years ago
I tried to reproduce it with Python 3.5.5
and pip 19.2.3
and it worked. I also checked it using python 2.7. can you provide more information about your setup @kambrium
The setup details can be found here.
Create a venv and activate it. python3 -m venv /path/to/venv/of/staticmapservice source /path/to/venv/of/staticmapservice/bin/activate Clone staticmapservice and change to the application directory. git clone https://github.com/kambrium/staticmapservice cd staticmapservice Install requirements. pip install -r requirements.txt Export the FLASK_APP variable and run the software. export FLASK_APP=staticmapservice.py flask run In your browser, send a request with some query parameters to the API. Here's an example that should work: http://127.0.0.1:5000/?w=400&h=300&z=9&marker=coords:48.25,11.22|diam:10|color:%233F33FF As a response you should get a static map of southern Bavaria with a blue marker next to the city of Munich. See below for a detailed list of currently supported query parameters.
that does not help. To reproduce it, versions of pip and python are needed.
$ python --version
Python 3.5.2
$ pip --version
pip 8.1.1 from /home/john/doe/lib/python3.5/site-packages (python 3.5)
So I upgraded pip in my virtual environment and the installation works...
pip install --upgrade pip
that version is quite old (4.5 years). I am also not a pip expert to figure out how to make it work for older versions too.
I use Python 3.5.2 in a virtual environment on a machine with Lubuntu 16.04.6 LTS. I just tried to install staticmap in a brand new virtual environment with
pip install staticmap
and got the following message: