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

pip install fails with GDAL related message #30

Open
dwr-psandhu opened this issue Jun 16, 2023 · 0 comments
Open

pip install fails with GDAL related message #30

dwr-psandhu opened this issue Jun 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dwr-psandhu
Copy link
Contributor

  • schimpy version: git hash on master 76640c9
  • Python version: 3.7
  • Operating System: Windows

Description

pip install -e . after git clone on an environment with some dependencies already installed

What I Did

(schism_py37) D:\schism\schimpy>pip install -e .
Obtaining file:///D:/schism/schimpy
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: scipy in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (1.7.3)
Collecting pyyaml
  Downloading PyYAML-6.0-cp37-cp37m-win_amd64.whl (153 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.2/153.2 kB 4.6 MB/s eta 0:00:00
Collecting param
  Downloading param-1.13.0-py2.py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.3/87.3 kB 2.5 MB/s eta 0:00:00
Requirement already satisfied: nodepy in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (1.0.1)
Requirement already satisfied: shapely<2.0 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (1.8.4)
Requirement already satisfied: scikit-learn in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (1.0.2)
Requirement already satisfied: vtools3 in d:\schism\vtools3 (from schimpy==1.4.4+10.g76640c9) (3.7.3+2.gb7cfa54)
Requirement already satisfied: matplotlib in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (3.5.3)
Collecting rasterstats
  Downloading rasterstats-0.19.0-py3-none-any.whl (16 kB)
Requirement already satisfied: pyproj in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (2.6.1.post1)
Requirement already satisfied: beautifulsoup4 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (4.11.1)
Requirement already satisfied: statsmodels in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (0.13.5)
Requirement already satisfied: netcdf4 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (1.6.2)
Requirement already satisfied: xarray in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (0.20.1)
Requirement already satisfied: geopandas in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (0.9.0)
Requirement already satisfied: palettable in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from schimpy==1.4.4+10.g76640c9) (3.3.0)
Requirement already satisfied: soupsieve>1.2 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from beautifulsoup4->schimpy==1.4.4+10.g76640c9) (2.3.2.post1)
Requirement already satisfied: pandas>=0.24.0 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from geopandas->schimpy==1.4.4+10.g76640c9) (1.3.5)
Requirement already satisfied: fiona>=1.8 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from geopandas->schimpy==1.4.4+10.g76640c9) (1.8.21)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (1.4.4)
Requirement already satisfied: numpy>=1.17 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (1.21.5)
Requirement already satisfied: cycler>=0.10 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (0.11.0)
Requirement already satisfied: pillow>=6.2.0 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (9.4.0)
Requirement already satisfied: python-dateutil>=2.7 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (2.8.2)
Requirement already satisfied: packaging>=20.0 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (22.0)
Requirement already satisfied: fonttools>=4.22.0 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (4.25.0)
Requirement already satisfied: pyparsing>=2.2.1 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from matplotlib->schimpy==1.4.4+10.g76640c9) (3.0.9)
Requirement already satisfied: cftime in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from netcdf4->schimpy==1.4.4+10.g76640c9) (1.5.1.1)
Requirement already satisfied: sympy in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from nodepy->schimpy==1.4.4+10.g76640c9) (1.10.1)
Collecting simplejson
  Downloading simplejson-3.19.1-cp37-cp37m-win_amd64.whl (75 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.1/75.1 kB 4.1 MB/s eta 0:00:00
Requirement already satisfied: click>7.1 in d:\programs\miniconda3\envs\schism_py37\lib\site-packages (from rasterstats->schimpy==1.4.4+10.g76640c9) (8.0.4)
Collecting affine
  Downloading affine-2.4.0-py3-none-any.whl (15 kB)
Collecting rasterio>=1.0
  Downloading rasterio-1.2.10.tar.gz (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 9.5 MB/s eta 0:00:00
  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
  ╰─> [2 lines of output]
      INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
      ERROR: 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.
@kjnam kjnam added the bug Something isn't working label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants