Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installation #115

Open
palozano opened this issue Apr 3, 2023 · 1 comment
Open

Error on installation #115

palozano opened this issue Apr 3, 2023 · 1 comment

Comments

@palozano
Copy link

palozano commented Apr 3, 2023

I cannot run pip install prettymaps on a M1 Macbook Pro running OSX Ventura 13.1 (22C65).

I use Conda to manage my Python environments. I created a fresh environment with Python 3.10.

The output in the terminal when installation fails.

$ pip install prettymaps


Collecting prettymaps
  Using cached prettymaps-1.0.0-py3-none-any.whl (36 kB)
Collecting osmnx==1.2.2
  Using cached osmnx-1.2.2-py2.py3-none-any.whl (92 kB)
Collecting pyyaml==6.0.0
  Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 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 numpy>=1.22
  Using cached numpy-1.24.2-cp310-cp310-macosx_11_0_arm64.whl (13.9 MB)
Collecting requests>=2.28
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting pandas>=1.4
  Using cached pandas-2.0.0-cp310-cp310-macosx_11_0_arm64.whl (10.8 MB)
Collecting pyproj>=3.3
  Using cached pyproj-3.5.0-cp310-cp310-macosx_11_0_arm64.whl (5.7 MB)
Collecting matplotlib>=3.5
  Using cached matplotlib-3.7.1-cp310-cp310-macosx_11_0_arm64.whl (7.3 MB)
Collecting geopandas>=0.11
  Using cached geopandas-0.12.2-py3-none-any.whl (1.1 MB)
Collecting Rtree>=1.0
  Using cached Rtree-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (814 kB)
Collecting networkx>=2.8
  Using cached networkx-3.0-py3-none-any.whl (2.0 MB)
Collecting fiona>=1.8
  Using cached Fiona-1.9.2.tar.gz (919 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      <string>:82: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
      WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
      CRITICAL:root: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: subprocess-exited-with-error

× Getting requirements to build 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.

Somewhere (probably Github), I saw that someone suggested to install gdal with conda:

$ conda install gdal

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/palozano/miniconda3/envs/maps

  added / updated specs:
    - gdal


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blosc-1.21.3               |       h313beb8_0          41 KB
    boost-cpp-1.73.0           |      h1a28f6b_12          17 KB
    c-ares-1.19.0              |       h80987f9_0         104 KB
    cairo-1.16.0               |       h302bd0f_4         1.0 MB
    cfitsio-3.470              |       h7f6438f_7         745 KB
    curl-7.88.1                |       h80987f9_0          85 KB
    expat-2.4.9                |       hc377ac9_0         127 KB
    fontconfig-2.14.1          |       hee714a5_2         254 KB
    freexl-1.0.6               |       h1a28f6b_0          40 KB
    gdal-3.6.2                 |  py310hc92d1c5_1         1.4 MB
    geos-3.9.1                 |       hc377ac9_1         793 KB
    geotiff-1.7.0              |       h41f0982_1         126 KB
    gettext-0.21.0             |       h13f89a0_1         3.1 MB
    glib-2.69.1                |       h514c7bf_2         3.0 MB
    hdf4-4.2.13                |       h5e329fb_3         700 KB
    hdf5-1.12.1                |       h160e8cb_2         4.3 MB
    json-c-0.16                |       h1a28f6b_0          66 KB
    kealib-1.5.0               |       hba2eb73_0         144 KB
    krb5-1.19.4                |       h8380606_0         1.2 MB
    libboost-1.73.0            |      h49e8a49_12        12.6 MB
    libcurl-7.88.1             |       h0f1d93c_0         332 KB
    libedit-3.1.20221030       |       h80987f9_0         154 KB
    libev-4.33                 |       h1a28f6b_1         104 KB
    libgdal-3.6.2              |       h50c47ba_1         8.3 MB
    libkml-1.3.0               |       hc4d7c42_6         459 KB
    libnetcdf-4.8.1            |       h1b8e529_2         1.1 MB
    libnghttp2-1.46.0          |       h95c9599_0         648 KB
    libpq-12.9                 |       h65cfe13_3         2.0 MB
    libspatialite-4.3.0a       |      h4707d77_23         2.9 MB
    libssh2-1.10.0             |       hf27765b_0         262 KB
    libzip-1.8.0               |       h0c481fb_0         111 KB
    nspr-4.33                  |       hc377ac9_0         222 KB
    nss-3.74                   |       h142855e_0         1.7 MB
    numpy-1.23.5               |  py310hb93e574_0          11 KB
    numpy-base-1.23.5          |  py310haf87e8b_0         5.7 MB
    openjpeg-2.3.0             |       h7a6adac_2         274 KB
    pcre-8.45                  |       hc377ac9_0         185 KB
    pcre2-10.37                |       h37e8eca_1         555 KB
    pixman-0.40.0              |       h1a28f6b_0         196 KB
    poppler-22.12.0            |       h497017c_0         1.6 MB
    poppler-data-0.4.11        |       hca03da5_1         2.6 MB
    postgresql-12.9            |       h65cfe13_3         3.2 MB
    proj-7.2.0                 |       heac154c_1         2.4 MB
    qhull-2020.2               |       h48ca7d4_2        1023 KB
    tiledb-2.3.3               |       h3ad0f7e_2         2.1 MB
    xerces-c-3.2.4             |       h389e118_0         2.4 MB
    ------------------------------------------------------------
                                           Total:        70.3 MB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/osx-arm64::blas-1.0-openblas
  blosc              pkgs/main/osx-arm64::blosc-1.21.3-h313beb8_0
  boost-cpp          pkgs/main/osx-arm64::boost-cpp-1.73.0-h1a28f6b_12
  c-ares             pkgs/main/osx-arm64::c-ares-1.19.0-h80987f9_0
  cairo              pkgs/main/osx-arm64::cairo-1.16.0-h302bd0f_4
  cfitsio            pkgs/main/osx-arm64::cfitsio-3.470-h7f6438f_7
  curl               pkgs/main/osx-arm64::curl-7.88.1-h80987f9_0
  expat              pkgs/main/osx-arm64::expat-2.4.9-hc377ac9_0
  fontconfig         pkgs/main/osx-arm64::fontconfig-2.14.1-hee714a5_2
  freetype           pkgs/main/osx-arm64::freetype-2.12.1-h1192e45_0
  freexl             pkgs/main/osx-arm64::freexl-1.0.6-h1a28f6b_0
  gdal               pkgs/main/osx-arm64::gdal-3.6.2-py310hc92d1c5_1
  geos               pkgs/main/osx-arm64::geos-3.9.1-hc377ac9_1
  geotiff            pkgs/main/osx-arm64::geotiff-1.7.0-h41f0982_1
  gettext            pkgs/main/osx-arm64::gettext-0.21.0-h13f89a0_1
  giflib             pkgs/main/osx-arm64::giflib-5.2.1-h80987f9_3
  glib               pkgs/main/osx-arm64::glib-2.69.1-h514c7bf_2
  hdf4               pkgs/main/osx-arm64::hdf4-4.2.13-h5e329fb_3
  hdf5               pkgs/main/osx-arm64::hdf5-1.12.1-h160e8cb_2
  icu                pkgs/main/osx-arm64::icu-68.1-hc377ac9_0
  jpeg               pkgs/main/osx-arm64::jpeg-9e-h80987f9_1
  json-c             pkgs/main/osx-arm64::json-c-0.16-h1a28f6b_0
  kealib             pkgs/main/osx-arm64::kealib-1.5.0-hba2eb73_0
  krb5               pkgs/main/osx-arm64::krb5-1.19.4-h8380606_0
  lcms2              pkgs/main/osx-arm64::lcms2-2.12-hba8e193_0
  lerc               pkgs/main/osx-arm64::lerc-3.0-hc377ac9_0
  libboost           pkgs/main/osx-arm64::libboost-1.73.0-h49e8a49_12
  libcurl            pkgs/main/osx-arm64::libcurl-7.88.1-h0f1d93c_0
  libcxx             pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0
  libdeflate         pkgs/main/osx-arm64::libdeflate-1.17-h80987f9_0
  libedit            pkgs/main/osx-arm64::libedit-3.1.20221030-h80987f9_0
  libev              pkgs/main/osx-arm64::libev-4.33-h1a28f6b_1
  libgdal            pkgs/main/osx-arm64::libgdal-3.6.2-h50c47ba_1
  libgfortran        pkgs/main/osx-arm64::libgfortran-5.0.0-11_3_0_hca03da5_28
  libgfortran5       pkgs/main/osx-arm64::libgfortran5-11.3.0-h009349e_28

After which the installation of prettymaps succeeds:

$ pip install prettymaps

Collecting prettymaps
  Using cached prettymaps-1.0.0-py3-none-any.whl (36 kB)
Collecting pyyaml==6.0.0
  Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting osmnx==1.2.2
  Using cached osmnx-1.2.2-py2.py3-none-any.whl (92 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 networkx>=2.8
  Using cached networkx-3.0-py3-none-any.whl (2.0 MB)
Collecting geopandas>=0.11
  Using cached geopandas-0.12.2-py3-none-any.whl (1.1 MB)
Collecting pyproj>=3.3
  Using cached pyproj-3.5.0-cp310-cp310-macosx_11_0_arm64.whl (5.7 MB)
Collecting matplotlib>=3.5
  Using cached matplotlib-3.7.1-cp310-cp310-macosx_11_0_arm64.whl (7.3 MB)
Collecting requests>=2.28
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting pandas>=1.4
  Using cached pandas-2.0.0-cp310-cp310-macosx_11_0_arm64.whl (10.8 MB)
Collecting Rtree>=1.0
  Using cached Rtree-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (814 kB)
Requirement already satisfied: numpy>=1.22 in /Users/palozano/miniconda3/envs/maps/lib/python3.10/site-packages (from osmnx==1.2.2->prettymaps) (1.23.5)
Collecting packaging
  Using cached packaging-23.0-py3-none-any.whl (42 kB)
Collecting fiona>=1.8
  Using cached Fiona-1.9.2.tar.gz (919 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting contourpy>=1.0.1
  Downloading contourpy-1.0.7-cp310-cp310-macosx_11_0_arm64.whl (229 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.7/229.7 kB 5.8 MB/s eta 0:00:00
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 20.1 MB/s eta 0:00:00
Collecting pillow>=6.2.0
  Downloading Pillow-9.5.0-cp310-cp310-macosx_11_0_arm64.whl (3.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 35.0 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
  Downloading fonttools-4.39.3-py3-none-any.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 40.9 MB/s eta 0:00:00
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.4-cp310-cp310-macosx_11_0_arm64.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.2/63.2 kB 8.0 MB/s eta 0:00:00
Collecting pyparsing>=2.3.1
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 11.8 MB/s eta 0:00:00
Collecting tzdata>=2022.1
  Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 28.0 MB/s eta 0:00:00
Collecting pytz>=2020.1
  Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 23.9 MB/s eta 0:00:00
Requirement already satisfied: certifi in /Users/palozano/miniconda3/envs/maps/lib/python3.10/site-packages (from pyproj>=3.3->osmnx==1.2.2->prettymaps) (2022.12.7)
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.1.0-cp310-cp310-macosx_11_0_arm64.whl (123 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.0/123.0 kB 17.7 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 9.3 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 15.1 MB/s eta 0:00:00
Collecting attrs>=19.2.0
  Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting munch>=2.3.2
  Downloading munch-2.5.0-py2.py3-none-any.whl (10 kB)
Collecting click~=8.0
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting click-plugins>=1.0
  Downloading click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting cligj>=0.5
  Downloading cligj-0.7.2-py3-none-any.whl (7.1 kB)
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: fiona
  Building wheel for fiona (pyproject.toml) ... done
  Created wheel for fiona: filename=Fiona-1.9.2-cp310-cp310-macosx_11_0_arm64.whl size=649550 sha256=8157729ba7e432f7fe6ed5e6c2579910ab1f3ff36eff22b8b9a408b49cd8b633
  Stored in directory: /Users/palozano/Library/Caches/pip/wheels/8b/e4/1a/48e3df2e56ee531d609007ae63e2d381c6de55765ef13cdbc1
Successfully built fiona
Installing collected packages: pytz, urllib3, tzdata, six, Shapely, Rtree, pyyaml, pyproj, pyparsing, pillow, packaging, networkx, kiwisolver, idna, fonttools, cycler, contourpy, click, charset-normalizer, attrs, requests, python-dateutil, munch, cligj, click-plugins, pandas, matplotlib, fiona, geopandas, osmnx, prettymaps
Successfully installed Rtree-1.0.1 Shapely-1.8.5.post1 attrs-22.2.0 charset-normalizer-3.1.0 click-8.1.3 click-plugins-1.1.1 cligj-0.7.2 contourpy-1.0.7 cycler-0.11.0 fiona-1.9.2 fonttools-4.39.3 geopandas-0.12.2 idna-3.4 kiwisolver-1.4.4 matplotlib-3.7.1 munch-2.5.0 networkx-3.0 osmnx-1.2.2 packaging-23.0 pandas-2.0.0 pillow-9.5.0 prettymaps-1.0.0 pyparsing-3.0.9 pyproj-3.5.0 python-dateutil-2.8.2 pytz-2023.3 pyyaml-6.0 requests-2.28.2 six-1.16.0 tzdata-2023.3 urllib3-1.26.15
@IanSapp128
Copy link

I personally wouldn't say this is a prettymaps specific issue, but I'll let @marceloprates decide that. I ran into the same issue trying to install GeoPandas on M1 Mac (failed at trying to build Wheels for Fiona).

The Fiona github has an issue open for this but the gist of it is, install it through conda-forge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants