prettymaps icon indicating copy to clipboard operation
prettymaps copied to clipboard

Error on pip/git install

Open lincoln7711 opened this issue 2 years ago • 3 comments

Having issues installing on both OSX and Ubuntu 22.04.1 LTS. Output pasted below:

% pip3 install git+https://github.com/marceloprates/prettymaps

Collecting git+https://github.com/marceloprates/prettymaps Cloning https://github.com/marceloprates/prettymaps to /private/var/folders/hd/cddlbgbx35jgkq6542641s840000gq/T/pip-req-build-y0fsx0qx Running command git clone --filter=blob:none --quiet https://github.com/marceloprates/prettymaps /private/var/folders/hd/cddlbgbx35jgkq6542641s840000gq/T/pip-req-build-y0fsx0qx warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:

'prints/Erbil.svg'
'prints/erbil.svg'
'prints/Palmanova.svg'
'prints/palmanova.svg'

Resolved https://github.com/marceloprates/prettymaps to commit 3f3b8be923a9c0abda10fbc6f002ceb048c8e7f2 Preparing metadata (setup.py) ... done Collecting osmnx==1.1.2 Using cached osmnx-1.1.2-py2.py3-none-any.whl (95 kB) Collecting tabulate==0.8.9 Using cached tabulate-0.8.9-py3-none-any.whl (25 kB) Collecting Shapely<2.0,>=1.8 Using cached Shapely-1.8.5.post1-cp310-cp310-macosx_11_0_arm64.whl (1.1 MB) Collecting descartes==1.1.0 Using cached descartes-1.1.0-py3-none-any.whl (5.8 kB) Requirement already satisfied: pyyaml==6.0.0 in /Users/andrewsmith/miniconda3/lib/python3.10/site-packages (from prettymaps==0.1.3) (6.0) Collecting matplotlib Using cached matplotlib-3.6.3-cp310-cp310-macosx_11_0_arm64.whl (7.2 MB) Collecting pandas>=1.3 Using cached pandas-1.5.3-cp310-cp310-macosx_11_0_arm64.whl (10.9 MB) Collecting pyproj>=3.2 Using cached pyproj-3.4.1-cp310-cp310-macosx_11_0_arm64.whl (5.7 MB) Collecting geopandas>=0.10 Using cached geopandas-0.12.2-py3-none-any.whl (1.1 MB) Collecting networkx>=2.6 Using cached networkx-3.0-py3-none-any.whl (2.0 MB) Collecting Rtree>=0.9 Using cached Rtree-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (814 kB) Requirement already satisfied: numpy>=1.21 in /Users/andrewsmith/miniconda3/lib/python3.10/site-packages (from osmnx==1.1.2->prettymaps==0.1.3) (1.23.5) Requirement already satisfied: requests>=2.26 in /Users/andrewsmith/miniconda3/lib/python3.10/site-packages (from osmnx==1.1.2->prettymaps==0.1.3) (2.28.1) Requirement already satisfied: packaging in /Users/andrewsmith/miniconda3/lib/python3.10/site-packages (from geopandas>=0.10->osmnx==1.1.2->prettymaps==0.1.3) (22.0) Collecting fiona>=1.8 Using cached Fiona-1.8.22.tar.gz (1.4 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [2 lines of output] Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config' A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

lincoln7711 avatar Jan 19 '23 19:01 lincoln7711

I have the same issue on macOs Monterey (chip m1)

mariana-s-fernandes avatar Jan 22 '23 10:01 mariana-s-fernandes

@mariana-s-fernandes using conda you can do conda install gdal

tetriscode avatar Jan 27 '23 16:01 tetriscode

Hi, I have released a new version, v1.0.0, can you try installing it using pip and tell me if the issues persist?

pip install prettymaps

marceloprates avatar Feb 16 '23 01:02 marceloprates