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

python 3.11 libgdal-3.8.5-h35436ae_0 requires lerc >=4.0.0,<5.0a0 #911

Open
1 task done
Chrismarsh opened this issue Apr 8, 2024 · 7 comments
Open
1 task done
Labels

Comments

@Chrismarsh
Copy link

Chrismarsh commented Apr 8, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I'm trying to build against libgdal, (conda-forge/staged-recipes/pull/25976) however I am getting this error when the CI uses python 3.11

Encountered problems while solving:
  - package libgdal-3.8.5-h35436ae_0 requires lerc >=4.0.0,<5.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ libgdal >=3.8.5,<3.9.0a0  is installable and it requires
│  ├─ lerc >=4.0.0,<5.0a0 , which can be installed;
│  ├─ libdeflate >=1.20,<1.21.0a0 , which can be installed;
│  ├─ libexpat >=2.6.2,<3.0a0 , which requires
│  │  └─ expat 2.6.2.* , which can be installed;
│  ├─ libwebp-base >=1.3.2,<2.0a0 , which can be installed;
│  ├─ poppler >=24.3.0,<24.4.0a0 , which requires
│  │  └─ lcms2 >=2.16,<3.0a0 , which requires
│  │     └─ libtiff >=4.6.0,<4.7.0a0  with the potential options
│  │        ├─ libtiff 4.6.0, which can be installed;
│  │        ├─ libtiff 4.6.0 would require
│  │        │  └─ libdeflate >=1.19,<1.20.0a0 , which conflicts with any installable versions previously reported;
│  │        └─ libtiff 4.6.0 would require
│  │           └─ libdeflate >=1.18,<1.19.0a0 , which conflicts with any installable versions previously reported;
│  ├─ proj >=9.4.0,<9.4.1.0a0 , which can be installed;
│  ├─ xz >=5.2.6,<6.0a0 , which can be installed;
│  └─ zstd >=1.5.5,<1.6.0a0 , which can be installed;
├─ python >=3.11,<3.12.0a0  is requested and can be installed;

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=911643&view=logs&j=6f142865-96c3-535c-b7ea-873d86b887bd&t=22b0682d-ab9e-55d7-9c79-49f3c3ba4823&l=1055

I'm not sure how long that CI will remain so the log is attached as a file

log.txt

Installed packages

requirements:
  build:
    - cmake
    - ninja
    - make
    - {{ compiler('cxx') }}
  host:
    - python
    - scikit-build-core
    - cmake
    - pip
    - cgal-cpp
    - libboost-devel
    - libgdal
    - metis
  run:
    - python
    - vtk
    - numpy
    - scipy
    - matplotlib-base
    - cloudpickle
    - libgdal
    - gdal
    - metis
    - metis-python
    - mpi4py
    - natsort
    - libstdcxx-ng
    - libgcc-ng
    - gmp   

Environment info

On the build ci. I cannot figure out how to replicate this locally.
@Chrismarsh Chrismarsh added the bug label Apr 8, 2024
@akrherz
Copy link
Contributor

akrherz commented Apr 8, 2024

Thanks, my initial guess is that proj=9.4 is the problem and wow, I see the conda-forge status page has been greatly improved! Anyway, I'll look more into this once the eclipse ends :)

@Chrismarsh Chrismarsh changed the title python 11 libgdal-3.8.5-h35436ae_0 requires lerc >=4.0.0,<5.0a0 python 3.11 libgdal-3.8.5-h35436ae_0 requires lerc >=4.0.0,<5.0a0 Apr 8, 2024
@akrherz
Copy link
Contributor

akrherz commented Apr 8, 2024

vtk hasn't been rebuilt for proj 9.4 yet conda-forge/vtk-feedstock/pull/322, so gdal=3.8.5 (wants proj=9.4) won't work with vtk

@Chrismarsh
Copy link
Author

What is the conda-forge way to work around this? libgdal<3.8.5?

@akrherz
Copy link
Contributor

akrherz commented Apr 8, 2024

You could try that. I don't fully grasp the magic that is the conda/mamba dep solver and why it is hung up

@Chrismarsh
Copy link
Author

That appears to have resolved it. Feels a bit janky, but I guess just wait until that vtk build is resolved?

@akrherz
Copy link
Contributor

akrherz commented May 11, 2024

closing as I suspect this is resolved / stale, please reopen if not!

@akrherz akrherz closed this as completed May 11, 2024
@Chrismarsh
Copy link
Author

Something still seems strange. I tried to remove the version pin, and the build once again failed. I don't have a great handle on what conda is trying to do -- some very old API breaking GDAL versions are being tested which suggests it's super busted trying to resolve this. I've attached an arbitrary log from the CI
log.txt

@akrherz akrherz reopened this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants