Closed Euraxluo closed 2 years ago
Did you follow the install instructions? https://github.com/scipopt/PySCIPOpt/blob/master/INSTALL.md#installation-from-pypi
ok but when i use conda install -c conda-forge pyscipopt
,that is success
I'm sure it's not available
I will create a dependent manager project that uses Conda installation dependencies
docker:python3.9
/root/.local/bin/pdm add -G opt pyscipopt -v
Adding packages to opt dependencies: pyscipopt
pdm.termui: ======== Start resolving requirements ========
pdm.termui: pyscipopt
pdm.termui: python>=3.9
pdm.termui: Adding requirement pyscipopt
pdm.termui: Adding requirement python>=3.9
pdm.termui: ======== Starting round 0 ========
pdm.termui: Pinning: python None
pdm.termui: ======== Ending round 0 ========
pdm.termui: ======== Starting round 1 ========
pdm.termui: Adding requirement wheel(from pyscipopt 4.2.0)
pdm.termui: Pinning: pyscipopt 4.2.0
pdm.termui: ======== Ending round 1 ========
pdm.termui: ======== Starting round 2 ========
pdm.termui: Pinning: wheel 0.37.1
pdm.termui: ======== Ending round 2 ========
pdm.termui: ======== Starting round 3 ========
pdm.termui: ======== Resolution Result ========
pdm.termui: Stable pins:
pdm.termui: python None
pdm.termui: pyscipopt 4.2.0
pdm.termui: wheel 0.37.1
🔒 Lock successful
Changes are written to pdm.lock.
Changes are written to pyproject.toml.
Synchronizing working set with lock file: 1 to add, 0 to update, 0 to remove
unearth: Downloading <Link https://files.pythonhosted.org/packages/1c/0a/47d81ada5d00285ba1f7ab1443624e7cdce7a1e620510129e832eaa9b789/PySCIPOpt-4.2.0.tar.gz (from None)> to /tmp/pdm-download-swwta_ju/PySCIPOpt-4.2.0.tar.gz
pdm.termui: Preparing isolated env for PEP 517 build...
pdm.termui: Saving wheel to cache: <Link https://files.pythonhosted.org/packages/1c/0a/47d81ada5d00285ba1f7ab1443624e7cdce7a1e620510129e832eaa9b789/PySCIPOpt-4.2.0.tar.gz (from None)>
pdm.termui: Running PEP 517 backend to build a wheel for <Link https://files.pythonhosted.org/packages/1c/0a/47d81ada5d00285ba1f7ab1443624e7cdce7a1e620510129e832eaa9b789/PySCIPOpt-4.2.0.tar.gz (from None)>
pdm.termui: Using pip 22.2.2 from /root/.local/share/pdm/venv/lib/python3.9/site-packages/pip (python 3.9)
pdm.termui: Collecting setuptools>=40.8.0
pdm.termui: Using cached setuptools-65.1.0-py3-none-any.whl (1.2 MB)
pdm.termui: Collecting wheel
pdm.termui: Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
pdm.termui: Installing collected packages: wheel, setuptools
pdm.termui: Creating /tmp/pdm-build-env-9imqx3rq-shared/bin
pdm.termui: changing mode of /tmp/pdm-build-env-9imqx3rq-shared/bin/wheel to 755
pdm.termui: Successfully installed setuptools-65.1.0 wheel-0.37.1
pdm.termui: Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
pdm.termui:
pdm.termui: running egg_info
pdm.termui: writing PySCIPOpt.egg-info/PKG-INFO
pdm.termui: writing dependency_links to PySCIPOpt.egg-info/dependency_links.txt
pdm.termui: writing requirements to PySCIPOpt.egg-info/requires.txt
pdm.termui: writing top-level names to PySCIPOpt.egg-info/top_level.txt
pdm.termui: reading manifest file 'PySCIPOpt.egg-info/SOURCES.txt'
pdm.termui: adding license file 'LICENSE'
pdm.termui: writing manifest file 'PySCIPOpt.egg-info/SOURCES.txt'
pdm.termui: Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
pdm.termui:
pdm.termui: running bdist_wheel
pdm.termui: running build
pdm.termui: running build_py
pdm.termui: creating build
pdm.termui: creating build/lib.linux-x86_64-cpython-39
pdm.termui: creating build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/Multidict.py -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/__init__.py -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/scip.pyx -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/scip.pxd -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/conshdlr.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/benderscut.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/expr.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/reader.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/propagator.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/branchrule.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/presol.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/benders.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/event.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/lp.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/pricer.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/cutsel.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/relax.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/nodesel.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/sepa.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: copying src/pyscipopt/heuristic.pxi -> build/lib.linux-x86_64-cpython-39/pyscipopt
pdm.termui: running build_ext
pdm.termui: building 'pyscipopt.scip' extension
pdm.termui: creating build/temp.linux-x86_64-cpython-39
pdm.termui: creating build/temp.linux-x86_64-cpython-39/src
pdm.termui: creating build/temp.linux-x86_64-cpython-39/src/pyscipopt
pdm.termui: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I. -I/root/.local/share/pdm/venv/include -I/usr/local/include/python3.9 -c src/pyscipopt/scip.c -o build/temp.linux-x86_64-cpython-39/src/pyscipopt/scip.o
pdm.termui: src/pyscipopt/scip.c:710:10: fatal error: scip/scip.h: No such file or directory
pdm.termui: 710 | #include "scip/scip.h"
pdm.termui: | ^~~~~~~~~~~~~
pdm.termui: compilation terminated.
pdm.termui: error: command '/usr/bin/gcc' failed with exit code 1
✖ Install pyscipopt 4.2.0 failed
pdm.termui: Error occurs:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 217, in install_candidate
self.manager.install(can)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/manager.py", line 39, in install
installer(str(prepared.build()), self.environment, prepared.direct_url())
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/models/candidates.py", line 374, in build
builder.build(build_dir, metadata_directory=self._metadata_dir)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/wheel.py", line 28, in build
filename = self._hook.build_wheel(out_dir, config_settings, metadata_directory)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/wrappers.py", line 209, in build_wheel
return self._call_hook('build_wheel', {
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/wrappers.py", line 309, in _call_hook
self._subprocess_runner(
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/base.py", line 245, in subprocess_runner
return log_subprocessor(cmd, cwd, extra_environ=env)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/base.py", line 84, in log_subprocessor
raise BuildError(
pdm.exceptions.BuildError: Call command ['/root/.local/share/pdm/venv/bin/python', '/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/in_process/_in_process.py', 'build_wheel', '/tmp/tmpzziyx_i8'] return non-zero status(1). Make sure the package is PEP 517-compliant, or you can add `--no-isolation` to the command.
Retry failed jobs
pdm.termui: Preparing isolated env for PEP 517 build...
pdm.termui: Saving wheel to cache: <Link https://files.pythonhosted.org/packages/1c/0a/47d81ada5d00285ba1f7ab1443624e7cdce7a1e620510129e832eaa9b789/PySCIPOpt-4.2.0.tar.gz (from None)>
pdm.termui: Running PEP 517 backend to build a wheel for <Link https://files.pythonhosted.org/packages/1c/0a/47d81ada5d00285ba1f7ab1443624e7cdce7a1e620510129e832eaa9b789/PySCIPOpt-4.2.0.tar.gz (from None)>
pdm.termui: Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
pdm.termui:
pdm.termui: running egg_info
pdm.termui: writing PySCIPOpt.egg-info/PKG-INFO
pdm.termui: writing dependency_links to PySCIPOpt.egg-info/dependency_links.txt
pdm.termui: writing requirements to PySCIPOpt.egg-info/requires.txt
pdm.termui: writing top-level names to PySCIPOpt.egg-info/top_level.txt
pdm.termui: reading manifest file 'PySCIPOpt.egg-info/SOURCES.txt'
pdm.termui: adding license file 'LICENSE'
pdm.termui: writing manifest file 'PySCIPOpt.egg-info/SOURCES.txt'
pdm.termui: Assuming that SCIP is installed globally, because SCIPOPTDIR is undefined.
pdm.termui:
pdm.termui: running bdist_wheel
pdm.termui: running build
pdm.termui: running build_py
pdm.termui: running build_ext
pdm.termui: building 'pyscipopt.scip' extension
pdm.termui: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I. -I/root/.local/share/pdm/venv/include -I/usr/local/include/python3.9 -c src/pyscipopt/scip.c -o build/temp.linux-x86_64-cpython-39/src/pyscipopt/scip.o
pdm.termui: src/pyscipopt/scip.c:710:10: fatal error: scip/scip.h: No such file or directory
pdm.termui: 710 | #include "scip/scip.h"
pdm.termui: | ^~~~~~~~~~~~~
pdm.termui: compilation terminated.
pdm.termui: error: command '/usr/bin/gcc' failed with exit code 1
✖ Install pyscipopt 4.2.0 failed
pdm.termui: Error occurs:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 217, in install_candidate
self.manager.install(can)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/manager.py", line 39, in install
installer(str(prepared.build()), self.environment, prepared.direct_url())
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/models/candidates.py", line 374, in build
builder.build(build_dir, metadata_directory=self._metadata_dir)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/wheel.py", line 28, in build
filename = self._hook.build_wheel(out_dir, config_settings, metadata_directory)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/wrappers.py", line 209, in build_wheel
return self._call_hook('build_wheel', {
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/wrappers.py", line 309, in _call_hook
self._subprocess_runner(
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/base.py", line 245, in subprocess_runner
return log_subprocessor(cmd, cwd, extra_environ=env)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/builders/base.py", line 84, in log_subprocessor
raise BuildError(
pdm.exceptions.BuildError: Call command ['/root/.local/share/pdm/venv/bin/python', '/root/.local/share/pdm/venv/lib/python3.9/site-packages/pep517/in_process/_in_process.py', 'build_wheel', '/tmp/tmpzpfqt4e2'] return non-zero status(1). Make sure the package is PEP 517-compliant, or you can add `--no-isolation` to the command.
Traceback (most recent call last):
File "/root/.local/bin/pdm", line 8, in <module>
sys.exit(main())
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/core.py", line 254, in main
return Core().main(args)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/core.py", line 187, in main
raise cast(Exception, err).with_traceback(traceback)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/core.py", line 182, in main
f(options.project, options)
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/cli/commands/add.py", line 58, in handle
actions.do_add(
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/cli/actions.py", line 292, in do_add
do_sync(
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/cli/actions.py", line 220, in do_sync
handler.synchronize()
File "/root/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 402, in synchronize
raise InstallationError("Some package operations are not complete yet")
pdm.exceptions.InstallationError: Some package operations are not complete yet
What I meant is: did you actually install the requirements? https://github.com/scipopt/PySCIPOpt/blob/master/INSTALL.md#requirements If the SCIP Optimization Suite is not installed, you won't be able to compile pyscipopt. It works with Conda because Conda downloads prebuilt distributions.
Environment Information
WINDOWS
output: