sanurielf / kvxopt

KVXOPT -- Python Software for Convex Optimization containing more wrappers suite-sparse.
Other
10 stars 1 forks source link

`pip check` failed, probably due to version number #10

Closed cuihantao closed 9 months ago

cuihantao commented 9 months ago

Hello Uriel,

I hope all is well with you! I'm seeing some weird CI error from the ANDES Conda-forge builder.

Here's the log of a recent CI output:

https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/870561/logs/7

2024-02-04T21:00:18.2055603Z 
2024-02-04T21:00:18.2056437Z The following NEW packages will be INSTALLED:
2024-02-04T21:00:18.2056725Z 
2024-02-04T21:00:18.2057418Z     _libgcc_mutex:    0.1-conda_forge             conda-forge
2024-02-04T21:00:18.2058129Z     _openmp_mutex:    4.5-2_gnu                   conda-forge
2024-02-04T21:00:18.2058596Z     andes:            1.9.0-pyhd8ed1ab_0          local      
2024-02-04T21:00:18.2059053Z     brotli:           1.1.0-hd590300_1            conda-forge
2024-02-04T21:00:18.2059525Z     brotli-bin:       1.1.0-hd590300_1            conda-forge
2024-02-04T21:00:18.2059974Z     bzip2:            1.0.8-hd590300_5            conda-forge
2024-02-04T21:00:18.2060455Z     ca-certificates:  2024.2.2-hbcca054_0         conda-forge
2024-02-04T21:00:18.2060930Z     certifi:          2024.2.2-pyhd8ed1ab_0       conda-forge
2024-02-04T21:00:18.2061398Z     chardet:          5.2.0-py312h7900ff3_1       conda-forge
2024-02-04T21:00:18.2061862Z     colorama:         0.4.6-pyhd8ed1ab_0          conda-forge
2024-02-04T21:00:18.2062343Z     coloredlogs:      15.0.1-pyhd8ed1ab_3         conda-forge
2024-02-04T21:00:18.2062806Z     contourpy:        1.2.0-py312h8572e83_0       conda-forge
2024-02-04T21:00:18.2063320Z     cycler:           0.12.1-pyhd8ed1ab_0         conda-forge
2024-02-04T21:00:18.2063785Z     dill:             0.3.8-pyhd8ed1ab_0          conda-forge
2024-02-04T21:00:18.2064243Z     dsdp:             5.8-hd9d9efa_1203           conda-forge
2024-02-04T21:00:18.2064698Z     et_xmlfile:       1.1.0-pyhd8ed1ab_0          conda-forge
2024-02-04T21:00:18.2065152Z     fftw:             3.3.10-nompi_hc118613_108   conda-forge
2024-02-04T21:00:18.2065876Z     fonttools:        4.47.2-py312h98912ed_0      conda-forge
2024-02-04T21:00:18.2066385Z     freetype:         2.12.1-h267a509_2           conda-forge
2024-02-04T21:00:18.2066846Z     glpk:             5.0-h445213a_0              conda-forge
2024-02-04T21:00:18.2067299Z     gmp:              6.3.0-h59595ed_0            conda-forge
2024-02-04T21:00:18.2067748Z     gsl:              2.7-he838d99_0              conda-forge
2024-02-04T21:00:18.2068190Z     humanfriendly:    10.0-pyhd8ed1ab_6           conda-forge
2024-02-04T21:00:18.2068653Z     icu:              73.2-h59595ed_0             conda-forge
2024-02-04T21:00:18.2069113Z     kiwisolver:       1.4.5-py312h8572e83_1       conda-forge
2024-02-04T21:00:18.2069581Z     kvxopt:           1.3.2.0-py312h5c6e270_2     conda-forge
... (omitted)

2024-02-04T21:00:18.2103747Z 
2024-02-04T21:00:27.1061043Z Preparing transaction: ...working... done
2024-02-04T21:00:30.4037169Z Verifying transaction: ...working... done
2024-02-04T21:00:42.1839036Z Executing transaction: ...working... done
2024-02-04T21:00:42.2230809Z export PREFIX=/home/conda/feedstock_root/build_artifacts/andes_1707080235100/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
2024-02-04T21:00:42.2232005Z export SRC_DIR=/home/conda/feedstock_root/build_artifacts/andes_1707080235100/test_tmp
2024-02-04T21:00:42.6251963Z import: 'andes'
2024-02-04T21:00:43.2720397Z import: 'andes.core'
2024-02-04T21:00:43.2721665Z import: 'andes'
2024-02-04T21:00:43.2728591Z import: 'andes.core'
2024-02-04T21:00:43.3655459Z + pip check
2024-02-04T21:00:44.0219538Z andes 1.9.0 has requirement kvxopt>=1.3, but you have kvxopt 0.0.0.
2024-02-04T21:00:44.2317708Z WARNING: Tests failed for andes-1.9.0-pyhd8ed1ab_0.conda - moving package to /home/conda/feedstock_root/build_artifacts/broken

For some reason, the installed KVXOPT 1.3.2.0 is recognized as 0.0.0. I wonder if this is due to the use of non-conventional, four-digit semver by KVXOPT.

jinningwang commented 9 months ago

I ran into the same error when try to release AMS on conda, and my temporary solution is to specify kvxopt version in requirements.txt as kvxopt>=1.3.0.0,!=1.3.2.*

done
export PREFIX=/home/conda/staged-recipes/build_artifacts/ltbams_1706727127114/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
export SRC_DIR=/home/conda/staged-recipes/build_artifacts/ltbams_1706727127114/test_tmp
import: 'ams'
import: 'ams'
+ pip check
cvxpy 1.4.2 requires pybind11, which is not installed.
andes 1.8.10 has requirement kvxopt>=1.3.0.0, but you have kvxopt 0.0.0.
ltbams 0.8.4 has requirement kvxopt>=1.3, but you have kvxopt 0.0.0.
WARNING: Tests failed for ltbams-0.8.4-pyhd8ed1ab_0.conda - moving package to /home/conda/staged-recipes/build_artifacts/broken
TESTS FAILED: ltbams-0.8.4-pyhd8ed1ab_0.conda

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

sanurielf commented 9 months ago

Hey @cuihantao @jinningwang thanks for reporting it. Seems to be solved with https://github.com/conda-forge/kvxopt-feedstock/pull/34

cuihantao commented 9 months ago

Thank you so much for the quick turnaround! @sanurielf