funkelab / ilpy

Unified python wrappers for popular ILP solvers
https://funkelab.github.io/ilpy/
MIT License
3 stars 2 forks source link

Installation of ilpy failing on MacOS Sonoma 14.5 M1 system #62

Closed AnniekStok closed 1 month ago

AnniekStok commented 1 month ago

Hello,

A colleague of mine ran into problems trying to install ilpy into a clean python3.10 conda environment on her MacOS system (Sonoma 14.5) with M1 chip.

conda install -c conda-forge -c funkelab -c gurobi ilpy

Output in format: Requested package -> Available versions 
The following specifications were found to be incompatible with your system:

  - feature:/osx-arm64::__osx==14.5=0
  - ilpy -> __osx[version='>=10.9']
  - ilpy -> libcxx[version='>=16'] -> __osx[version='>=11.0|>=12.0']
  - python=3.10 -> libsqlite[version='>=3.45.2,<4.0a0'] -> __osx[version='>=10.9|>=11.0']

Your installed version is: 14.5

Can the MacOS version be the problem? Would anyone have any suggestions to troubleshoot this? I had no problems myself on Sonoma 14.4 (also with M1 chip).

Thank you!

tlambert03 commented 1 month ago

hmm... yeah i'm also not immediately sure. I'm also on 14.5 with apple silicon and it works fine for me. full logs here:

➜ mamba create -n ttt2 -c conda-forge -c funkelab -c gurobi ilpy
conda-forge/osx-arm64                               10.7MB @  19.5MB/s  0.6s
conda-forge/noarch                                  15.5MB @  24.1MB/s  0.7s
gurobi/osx-arm64                                              No change
funkelab/osx-arm64                                   2.6kB @   3.4kB/s  0.8s
funkelab/noarch                                    116.0 B @ 108.0 B/s  1.1s
gurobi/noarch                                                 No change

Transaction

  Prefix: /Users/talley/miniforge3/envs/ttt2

  Updating specs:

   - ilpy

  Package                 Version  Build                  Channel           Size
──────────────────────────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────────────────────────

  + mumps-include           5.7.2  hce30654_0             conda-forge     Cached
  + libcxx                 18.1.8  h167917d_0             conda-forge        1MB
  + libzlib                 1.3.1  hfb2fe0b_1             conda-forge     Cached
  + metis                   5.1.0  h13dd4ca_1007          conda-forge     Cached
  + xz                      5.2.6  h57fd34a_0             conda-forge     Cached
  + bzip2                   1.0.8  h93a5062_5             conda-forge     Cached
  + icu                      73.2  hc8870d7_0             conda-forge     Cached
  + llvm-openmp            18.1.8  hde57baf_0             conda-forge     Cached
  + libexpat                2.6.2  hebf3989_0             conda-forge     Cached
  + python_abi               3.11  4_cp311                conda-forge     Cached
  + libiconv                 1.17  h0d3ecfb_2             conda-forge     Cached
  + ncurses                   6.5  hb89a1cb_0             conda-forge     Cached
  + libffi                  3.4.2  h3422bc3_5             conda-forge     Cached
  + ca-certificates      2024.7.4  hf0a4a13_0             conda-forge      155kB
  + gmp                     6.3.0  h7bae524_2             conda-forge     Cached
  + cppad              20240000.5  h00cdb27_0             conda-forge     Cached
  + tk                     8.6.13  h5083fa2_1             conda-forge     Cached
  + libsqlite              3.46.0  hfb93653_0             conda-forge     Cached
  + zlib                    1.3.1  hfb2fe0b_1             conda-forge     Cached
  + libgfortran5           13.2.0  hf226fd6_3             conda-forge     Cached
  + libxml2                2.12.7  h9a80f22_3             conda-forge      588kB
  + readline                  8.2  h92ec313_1             conda-forge     Cached
  + libedit          3.1.20191231  hc8eb9b7_2             conda-forge     Cached
  + openssl                 3.3.1  hfb2fe0b_1             conda-forge     Cached
  + mpfr                    4.2.1  h41d338b_1             conda-forge     Cached
  + libgfortran             5.0.0  13_2_0_hd922786_3      conda-forge     Cached
  + libhwloc               2.11.1  default_h7685b71_1000  conda-forge        2MB
  + unixodbc               2.3.12  h0e2417a_0             conda-forge     Cached
  + libopenblas            0.3.27  openmp_h517c56d_1      conda-forge        3MB
  + libscotch               7.0.4  h75850e6_5             conda-forge     Cached
  + tbb                 2021.12.0  h420ef59_3             conda-forge      129kB
  + ampl-mp                 3.1.0  hbec66e7_1006          conda-forge     Cached
  + libblas                 3.9.0  22_osxarm64_openblas   conda-forge     Cached
  + liblapack               3.9.0  22_osxarm64_openblas   conda-forge     Cached
  + mumps-seq               5.7.2  hab9b160_0             conda-forge     Cached
  + ipopt                 3.14.16  h387674d_4             conda-forge     Cached
  + scip                    9.1.0  h55df89c_0             conda-forge     Cached
  + tzdata                  2024a  h0c530f3_0             conda-forge     Cached
  + python                 3.11.9  h932a869_0_cpython     conda-forge     Cached
  + wheel                  0.43.0  pyhd8ed1ab_1           conda-forge     Cached
  + setuptools             70.3.0  pyhd8ed1ab_0           conda-forge      496kB
  + pip                      24.0  pyhd8ed1ab_0           conda-forge     Cached
  + gurobi                 11.0.2  py311_0                gurobi          Cached
  + ilpy                    0.4.0  py311h334aabc_1        funkelab         163kB

  Summary:

  Install: 44 packages

  Total download: 8MB

──────────────────────────────────────────────────────────────────────────────────

Transaction starting
ca-certificates                                    154.5kB @   1.3MB/s  0.1s
libcxx                                               1.2MB @   6.4MB/s  0.2s
libxml2                                            588.4kB @   3.1MB/s  0.2s
libhwloc                                             2.3MB @  10.4MB/s  0.2s
libopenblas                                          2.9MB @  12.2MB/s  0.2s
tbb                                                128.6kB @ 496.3kB/s  0.1s
setuptools                                         496.5kB @   1.7MB/s  0.1s
ilpy                                               163.0kB @ 334.8kB/s  0.4s
Linking mumps-include-5.7.2-hce30654_0
Linking libcxx-18.1.8-h167917d_0
Linking libzlib-1.3.1-hfb2fe0b_1
Linking metis-5.1.0-h13dd4ca_1007
Linking xz-5.2.6-h57fd34a_0
Linking bzip2-1.0.8-h93a5062_5
Linking icu-73.2-hc8870d7_0
Linking llvm-openmp-18.1.8-hde57baf_0
Linking libexpat-2.6.2-hebf3989_0
Linking python_abi-3.11-4_cp311
Linking libiconv-1.17-h0d3ecfb_2
Linking ncurses-6.5-hb89a1cb_0
Linking libffi-3.4.2-h3422bc3_5
Linking ca-certificates-2024.7.4-hf0a4a13_0
Linking gmp-6.3.0-h7bae524_2
Linking cppad-20240000.5-h00cdb27_0
Linking tk-8.6.13-h5083fa2_1
Linking libsqlite-3.46.0-hfb93653_0
Linking zlib-1.3.1-hfb2fe0b_1
Linking libgfortran5-13.2.0-hf226fd6_3
Linking libxml2-2.12.7-h9a80f22_3
Linking readline-8.2-h92ec313_1
Linking libedit-3.1.20191231-hc8eb9b7_2
Linking openssl-3.3.1-hfb2fe0b_1
Linking mpfr-4.2.1-h41d338b_1
Linking libgfortran-5.0.0-13_2_0_hd922786_3
Linking libhwloc-2.11.1-default_h7685b71_1000
Linking unixodbc-2.3.12-h0e2417a_0
Linking libopenblas-0.3.27-openmp_h517c56d_1
Linking libscotch-7.0.4-h75850e6_5
Linking tbb-2021.12.0-h420ef59_3
Linking ampl-mp-3.1.0-hbec66e7_1006
Linking libblas-3.9.0-22_osxarm64_openblas
Linking liblapack-3.9.0-22_osxarm64_openblas
Linking mumps-seq-5.7.2-hab9b160_0
Linking ipopt-3.14.16-h387674d_4
Linking scip-9.1.0-h55df89c_0
Linking tzdata-2024a-h0c530f3_0
Linking python-3.11.9-h932a869_0_cpython
Linking wheel-0.43.0-pyhd8ed1ab_1
Linking setuptools-70.3.0-pyhd8ed1ab_0
Linking pip-24.0-pyhd8ed1ab_0
Linking gurobi-11.0.2-py311_0
Linking ilpy-0.4.0-py311h334aabc_1

Transaction finished

will keep looking, but can you have them paste the output of their conda info

AnniekStok commented 1 month ago

Hi Talley,

thanks a lot for your message and looking into this!

This is the conda info output my colleague sees:

     active environment : base
    active env location : /Users/s.veltkamp/anaconda3
            shell level : 1
       user config file : /Users/s.veltkamp/.condarc
 populated config files : /Users/s.veltkamp/.condarc
          conda version : 23.7.4
    conda-build version : 3.26.1
         python version : 3.11.5.final.0
       virtual packages : __archspec=1=arm64
                          __osx=14.5=0
                          __unix=0=0
       base environment : /Users/s.veltkamp/anaconda3  (writable)
      conda av data dir : /Users/s.veltkamp/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/s.veltkamp/anaconda3/pkgs
                          /Users/s.veltkamp/.conda/pkgs
       envs directories : /Users/s.veltkamp/anaconda3/envs
                          /Users/s.veltkamp/.conda/envs
               platform : osx-arm64
             user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.5 Darwin/23.5.0 OSX/14.5 aau/0.4.2 s/y5U9XdCd1VLdHcXC7fvMGQ e/QAbAFBS9vUGJ-3Ij57QFnA
                UID:GID : 744356191:1940801786
             netrc file : None
           offline mode : False
tlambert03 commented 1 month ago

hmm, nothing out of the ordinary there. looks mostly like mine. (I don't use the full anaconda3 dist though, but as long as you're absolutely sure they're creating a fresh environment, that shouldn't matter). Is the error you posted in the first post the entire text? Can you have them paste the output of cat ~/.condarc and maybe also run the following one-step command and paste the full output?

conda create -n ilpy-test -c conda-forge -c funkelab -c gurobi ilpy
tlambert03 commented 1 month ago

perhaps conda update -n base conda?

AnniekStok commented 1 month ago

Thank you for those suggestions, we will try it and let you know!

AnniekStok commented 1 month ago

Updating conda solved the problem, thanks again!

tlambert03 commented 1 month ago

glad to hear it!