-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm currently unable to install sage-numerical-backends-cplex.
os: macOS 15.4.1
sagemath: 10.7.beta3
using Python 3.12
MAC-xxxxx:sage dcoudert$ ./sage -pip install sage-numerical-backends-cplex
Collecting sage-numerical-backends-cplex
Using cached sage_numerical_backends_cplex-10.4.tar.gz (28 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: sphinx in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sage-numerical-backends-cplex) (8.1.3)
Requirement already satisfied: sphinxcontrib-applehelp>=1.0.7 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.0.0)
Requirement already satisfied: sphinxcontrib-devhelp>=1.0.6 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.0.0)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.6 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.1.0)
Requirement already satisfied: sphinxcontrib-jsmath>=1.0.1 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (1.0.1)
Requirement already satisfied: sphinxcontrib-qthelp>=1.0.6 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.0.0)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.0.0)
Requirement already satisfied: Jinja2>=3.1 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (3.1.4)
Requirement already satisfied: Pygments>=2.17 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.18.0)
Requirement already satisfied: docutils<0.22,>=0.20 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (0.21.2)
Requirement already satisfied: snowballstemmer>=2.2 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.2.0)
Requirement already satisfied: babel>=2.13 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.14.0)
Requirement already satisfied: alabaster>=0.7.14 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (0.7.16)
Requirement already satisfied: imagesize>=1.3 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (1.4.1)
Requirement already satisfied: requests>=2.30.0 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (2.32.2)
Requirement already satisfied: packaging>=23.0 in /opt/homebrew/lib/python3.12/site-packages (from sphinx->sage-numerical-backends-cplex) (25.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from Jinja2>=3.1->sphinx->sage-numerical-backends-cplex) (2.1.5)
Requirement already satisfied: charset-normalizer<4,>=2 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from requests>=2.30.0->sphinx->sage-numerical-backends-cplex) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from requests>=2.30.0->sphinx->sage-numerical-backends-cplex) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages (from requests>=2.30.0->sphinx->sage-numerical-backends-cplex) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.12/site-packages (from requests>=2.30.0->sphinx->sage-numerical-backends-cplex) (2025.4.26)
Building wheels for collected packages: sage-numerical-backends-cplex
Building wheel for sage-numerical-backends-cplex (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for sage-numerical-backends-cplex (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [597 lines of output]
<string>:10: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!
********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
Using cplex_include_directories=['/Users/dcoudert/Applications/CPLEX_Studio2211/cplex/include/ilcplex'], libraries=['cplex2211'], library_dirs=['/Users/dcoudert/Applications/CPLEX_Studio2211/cplex/bin/arm64_osx']
Using compile_time_env: {'HAVE_SAGE_CPYTHON_STRING': True, 'HAVE_ADD_COL_UNTYPED_ARGS': True}
Error compiling Cython file:
------------------------------------------------------------
...
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************
from sage.numerical.backends.generic_backend cimport GenericBackend
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pxd:12:0: 'sage/numerical/backends/generic_backend.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************
from sage.numerical.backends.generic_backend cimport GenericBackend
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pxd:12:0: 'sage/numerical/backends/generic_backend/GenericBackend.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
struct cpxlp
ctypedef cpxenv c_cpxenv
ctypedef cpxlp c_cpxlp
cdef class CPLEXBackend(GenericBackend):
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pxd:25:24: First base of 'CPLEXBackend' is not an extension type
Error compiling Cython file:
------------------------------------------------------------
...
from sage.cpython.string cimport char_to_str, str_to_bytes
from sage.cpython.string import FS_ENCODING
from sage.numerical.mip import MIPSolverException
cdef class CPLEXBackend(GenericBackend):
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pyx:26:24: First base of 'CPLEXBackend' is not an extension type
Error compiling Cython file:
------------------------------------------------------------
...
self.set_sense(-1)
self.obj_constant_term = 0.0
self._logfilename = ''
cpdef int add_variable(self, lower_bound=0.0, upper_bound=None, binary=False, continuous=False, integer=False, obj=0.0, name=None) except -1:
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pyx:68:4: C method 'add_variable' not previously declared in definition part of extension type 'CPLEXBackend'
...
...
...
...
Error compiling Cython file:
------------------------------------------------------------
...
status = CPXgetx(self.env, self.lp, &value, variable, variable)
check(status)
status = CPXgetctype(self.env, self.lp, &ctype, variable, variable)
return value if (status == 3003 or ctype == 'C') else int(round(value))
^
------------------------------------------------------------
sage_numerical_backends_cplex/cplex_backend.pyx:1120:15: Unsafe C derivative of temporary Python reference used in conditional expression
Compiling sage_numerical_backends_cplex/cplex_backend.pyx because it changed.
[1/1] Cythonizing sage_numerical_backends_cplex/cplex_backend.pyx
Traceback (most recent call last):
File "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 435, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 423, in _build
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 90, in <module>
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
cythonize_one(*args)
File "/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/pip-build-env-bisqtt1a/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1289, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sage_numerical_backends_cplex/cplex_backend.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for sage-numerical-backends-cplex
Failed to build sage-numerical-backends-cplex
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (sage-numerical-backends-cplex)Metadata
Metadata
Assignees
Labels
No labels