from pypolyhedron.polyhedron import Vrep, Hrep
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.13/_pyrepl/__main__.py", line 10, in <module>
__pyrepl_interactive_console()
File "/usr/lib/python3.13/_pyrepl/main.py", line 59, in interactive_console
run_multiline_interactive_console(console)
File "/usr/lib/python3.13/_pyrepl/simple_interact.py", line 154, in run_multiline_interactive_console
more = console.push(_strip_final_indent(statement), filename=input_name, _symbol="single") # type: ignore[call-arg]
File "/usr/lib/python3.13/code.py", line 314, in push
more = self.runsource(source, filename, symbol=_symbol)
File "/usr/lib/python3.13/_pyrepl/console.py", line 226, in runsource
result = self.runcode(code)
File "/usr/lib/python3.13/_pyrepl/console.py", line 181, in runcode
exec(code, self.locals)
File "<python-input-1>", line 1, in <module>
from pypolyhedron.polyhedron import Vrep, Hrep
File "/home/brannon/Documents/Research/venv11/lib/python3.13/site-packages/pypolyhedron/__init__.py", line 1, in <module>
from .polyhedron import *
File "/home/brannon/Documents/Research/venv11/lib/python3.13/site-packages/pypolyhedron/polyhedron.py", line 21, in <module>
from . import _cdd
Traceback (most recent call last):
File "/home/brannon/Documents/Research/venv11/lib/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
from pypolyhedron.polyhedron import Vrep, Hrep
File "/home/brannon/Documents/Research/venv11/lib/python3.13/site-packages/pypolyhedron/__init__.py", line 1, in <module>
from .polyhedron import *
File "/home/brannon/Documents/Research/venv11/lib/python3.13/site-packages/pypolyhedron/polyhedron.py", line 21, in <module>
from . import _cdd
ImportError: numpy.core.multiarray failed to import
I get the following error when attempting to run an example: