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

installation error #320

Open
AyachiOmarChaima opened this issue Mar 18, 2022 · 1 comment
Open

installation error #320

AyachiOmarChaima opened this issue Mar 18, 2022 · 1 comment
Labels
type/bug 🐛 Something isn't working

Comments

@AyachiOmarChaima
Copy link

AyachiOmarChaima commented Mar 18, 2022

Describe the bug

<-- when I install ecole, I got this error

Collecting ecole
  Using cached ecole-0.8.0.tar.gz (376 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.4 in ./lib-eco/lib-eco/lib/python3.9/site-packages (from ecole) (1.22.3)
Building wheels for collected packages: ecole
  Building wheel for ecole (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for ecole (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [92 lines of output]
      Not searching for unused variables given on the command line.
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_cmake_test_compile/build
      -- Ecole version 0.8.0
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- IPO enabled
      -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
      -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
      -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
      -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
      -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
      -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
      -- Downloading xtl
      -- Building xtl
      -- Downloading xsimd
      -- Building xsimd
      -- Downloading xtensor
      -- Building xtensor
      -- Performing Test arch_native_supported
      -- Performing Test arch_native_supported - Success
      -- Downloading span-lite
      -- Building span-lite
      -- Downloading range-v3
      -- Building range-v3
      -- Found fmt
      -- Downloading robin_hood
      -- Building robin_hood
      CMake Error at libecole/CMakeLists.txt:98 (find_package):
        Could not find a configuration file for package "SCIP" that is compatible
        with requested version "8".
        The following configuration files were considered but not accepted:
          /home/chaima/anaconda3/lib/cmake/scip/scip-config.cmake, version: 7.0.3
      
      
      
      -- Configuring incomplete, errors occurred!
      See also "/tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_skbuild/linux-x86_64-3.9/cmake-build/CMakeFiles/CMakeOutput.log".
        File "/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 588, in setup
          env = cmkr.configure(cmake_args,
        File "/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 289, in configure
          raise SKBuildError(
      
      
      --------------------------------------------------------------------------------
      -- Trying "Ninja" generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying "Ninja" generator - success
      --------------------------------------------------------------------------------
      
      Configuring Project
        Working directory:
          /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_skbuild/linux-x86_64-3.9/cmake-build
        Command:
          cmake /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_skbuild/linux-x86_64-3.9/cmake-install/python/ecole/src/ecole -DPYTHON_EXECUTABLE:FILEPATH=/home/chaima/lib-eco/lib-eco/bin/python -DPYTHON_VERSION_STRING:STRING=3.9.10 -DPYTHON_INCLUDE_DIR:PATH=/usr/local/include/python3.9 -DPYTHON_LIBRARY:FILEPATH=/usr/local/lib/libpython3.9.a -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include '-DECOLE_PY_EXT_INSTALL_LIBDIR='"'"'.'"'"'' '-DECOLE_PY_EXT_INSTALL_RPATH=\${ORIGIN}/lib' -DCMAKE_BUILD_TYPE:STRING=Release
      
      Traceback (most recent call last):
      
      An error occurred while configuring with CMake.
        Command:
          cmake /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_skbuild/linux-x86_64-3.9/cmake-install/python/ecole/src/ecole -DPYTHON_EXECUTABLE:FILEPATH=/home/chaima/lib-eco/lib-eco/bin/python -DPYTHON_VERSION_STRING:STRING=3.9.10 -DPYTHON_INCLUDE_DIR:PATH=/usr/local/include/python3.9 -DPYTHON_LIBRARY:FILEPATH=/usr/local/lib/libpython3.9.a -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-hsmppl6_/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include '-DECOLE_PY_EXT_INSTALL_LIBDIR='"'"'.'"'"'' '-DECOLE_PY_EXT_INSTALL_RPATH=\${ORIGIN}/lib' -DCMAKE_BUILD_TYPE:STRING=Release
        Source directory:
          /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a
        Working directory:
          /tmp/pip-install-n11psw03/ecole_8edeb1fd300841309626fab026bdaa1a/_skbuild/linux-x86_64-3.9/cmake-build
      Please see CMake's output for more information.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ecole
Failed to build ecole
ERROR: Could not build wheels for ecole, which is required to install pyproject.toml-based projects

I used different version of python but it shown me same error
PLz if can someone help me to know why this error and how can I resolved it
--->

Setting

  • OS: <--- Linux Ubuntu --->
  • Compiler: <!--- if applicable e.g. gcc, clang... with version --->
  • Python version: 3.8 && 3.9
  • Ecole version:0.8

To Reproduce

Expected behavior

Additional context

@AyachiOmarChaima AyachiOmarChaima added the type/bug 🐛 Something isn't working label Mar 18, 2022
@AntoinePrv
Copy link
Member

Hi @AyachiOmarChaima ,

The error you are looking for is here:

CMake Error at libecole/CMakeLists.txt:98 (find_package):
        Could not find a configuration file for package "SCIP" that is compatible
        with requested version "8".

The installation script (CMake in particular) cannot find SCIP8. Either you have SCIP7, or you installed SCIP in a non-standard location without telling the script where that is.
In the latter case, you need to play with a command like (from the install doc):

CMAKE_ARGS="-DSCIP_DIR=path/to/lib/cmake/scip -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON" python -m pip install ecole

This is a more complex way of installing Ecole, that's why we recommend using conda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants