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

issue when installing dependencies, gdal #39

Open
elischwat opened this issue Nov 1, 2024 · 0 comments
Open

issue when installing dependencies, gdal #39

elischwat opened this issue Nov 1, 2024 · 0 comments

Comments

@elischwat
Copy link

elischwat commented Nov 1, 2024

I ran through the installation instruction on the homepage/readme on a linux machine (CentOS Linux 7 Core).

conda env create -f environment.yml
conda activate goesenv
pip install -e .

On the final step above, I got a failure related to, I think gdal. The last few lines of the output are:

      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gdal
  Running setup.py clean for gdal
Successfully built goes_ortho
Failed to build gdal
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (gdal)

It seems like gdal is installed and working in the environment though. as running the gdalinfo command from the terminal works. However, goes-ortho did not get installed, and running import goes_ortho in python fails.

In my experience, installing GDAL and related libraries using conda/mamba leads to fewer issues than installing with pip.

I noticed that gdal was listed in two files:

pyproject.toml
environment.yml

Does this mean that conda will install gdal when condo env create -f environment.yml is run? Also, then pip will try to install gdal when pip install -e . is run?

I removed the gdal dependency from pyproject.toml and reran pip install -e . and the install was successful. I can now import goes_ortho in python.

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

1 participant