conda-forge / pyqt-feedstock

A conda-smithy repository for pyqt.
BSD 3-Clause "New" or "Revised" License
5 stars 36 forks source link

Missing pyqt-impl 5.15 makes it pretty hard to update environments #121

Open hmaarrfk opened 1 year ago

hmaarrfk commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

I think that the removal of pyqt-impl has made it pretty hard to update from qt 5.12

https://github.com/conda-forge/pyqt-feedstock/pull/107/files#diff-f3725a55bf339595bf865fec73bda8ac99f283b0810c205442021f29c06eea9aL59

Installed packages

I'm not too sure I can recreate too easily.

Environment info

Linux. I'll keep you all posted as I keep debugging on other systems.
hmaarrfk commented 1 year ago

The latest package released was 5.12.X https://anaconda.org/conda-forge/pyqt-impl

ccordoba12 commented 1 year ago

If I'm not mistaken, pyqt-impl became simply pyqt in 5.15. So perhaps we could create an empty pyqt-impl 5.15 package to ease the transition?

hmaarrfk commented 1 year ago
mamba create --name qttest pyqt=5.12 --channel conda-forge --override-channels
conda activate qttest
mamba install "pyqt>=5.15" --channel conda-forge --override-channels

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (0.24.0) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Looking for: ["pyqt[version='>=5.15']"]

conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache

Pinned packages:
  - python 3.10.*

Encountered problems while solving:
  - package pyqt-impl-5.12.3-py310h1f8e252_8 requires pyqt5-sip 4.19.18 py310h122e73d_8, but none of the providers can be installed

can reproduce the error

``` $ conda info active environment : qttest active env location : /home/mark/mambaforge/envs/qttest shell level : 2 user config file : /home/mark/.condarc populated config files : /home/mark/mambaforge/.condarc /home/mark/.condarc conda version : 4.13.0 conda-build version : 3.21.9 python version : 3.9.13.final.0 virtual packages : __linux=5.15.0=0 __glibc=2.35=0 __unix=0=0 __archspec=1=x86_64 base environment : /home/mark/mambaforge (writable) conda av data dir : /home/mark/mambaforge/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch package cache : /home/mark/mambaforge/pkgs /home/mark/.conda/pkgs envs directories : /home/mark/mambaforge/envs /home/mark/.conda/envs platform : linux-64 user-agent : conda/4.13.0 requests/2.28.1 CPython/3.9.13 Linux/5.15.0-41-generic ubuntu/22.04 glibc/2.35 UID:GID : 1000:1000 netrc file : None offline mode : False ```

I understand that the packages got consolidated.

I'm not sure what the best solution is. It would be good to have an overarching solution to people cleaning up packages.

hmaarrfk commented 1 year ago

we can create an empty package, but it would ultimately delay the problem.

cc: @wolfv

shermansiu commented 10 months ago

I found that pyqt 5.12 lay at the heart of one of the dependency conflicts when trying to install a new package today, which took me several hours to resolve (ultimately, I uninstalled pyqt and pyqt-impl and reinstalled what I needed with some version constraints).

I requested some help on the Anaconda forum... Hopefully this can be resolved soon! https://community.anaconda.cloud/t/removing-old-deprecated-dependency-in-conda-build/59817

hmaarrfk commented 10 months ago

I'm not sure it will be "fixed" any time soon since the solution isn't too quick and easy to implement.

A more centralized discussion can be found: https://github.com/conda-forge/conda-forge.github.io/issues/1894