Dear fluka experts,
while trying to run flair on terminal(ubuntu OS), we encountered the following error.
"A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 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 “/usr/local/flair/flair.py”, line 112, in
import MPPlot
File “/usr/local/flair/MPPlot.py”, line 21, in
import matplotlib
File “/usr/lib/python3/dist-packages/matplotlib/init.py”, line 109, in
from . import _api, _version, cbook, docstring, rcsetup
File “/usr/lib/python3/dist-packages/matplotlib/rcsetup.py”, line 27, in
from matplotlib.colors import Colormap, is_color_like
File “/usr/lib/python3/dist-packages/matplotlib/colors.py”, line 56, in
from matplotlib import _api, cbook, scale
File “/usr/lib/python3/dist-packages/matplotlib/scale.py”, line 23, in
from matplotlib.ticker import (
File “/usr/lib/python3/dist-packages/matplotlib/ticker.py”, line 136, in
from matplotlib import transforms as mtransforms
File “/usr/lib/python3/dist-packages/matplotlib/transforms.py”, line 46, in
from matplotlib._path import (
AttributeError: _ARRAY_API not found
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 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 “/usr/local/flair/flair.py”, line 112, in
import MPPlot
File “/usr/local/flair/MPPlot.py”, line 34, in
import Matplotlib
File “/usr/local/flair/lib/Matplotlib.py”, line 16, in
import matplotlib
File “/usr/lib/python3/dist-packages/matplotlib/init.py”, line 109, in
from . import _api, _version, cbook, docstring, rcsetup
File “/usr/lib/python3/dist-packages/matplotlib/rcsetup.py”, line 27, in
from matplotlib.colors import Colormap, is_color_like
File “/usr/lib/python3/dist-packages/matplotlib/colors.py”, line 56, in
from matplotlib import _api, cbook, scale
File “/usr/lib/python3/dist-packages/matplotlib/scale.py”, line 23, in
from matplotlib.ticker import (
File “/usr/lib/python3/dist-packages/matplotlib/ticker.py”, line 136, in
from matplotlib import transforms as mtransforms
File “/usr/lib/python3/dist-packages/matplotlib/transforms.py”, line 46, in
from matplotlib._path import (
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
File “/usr/local/flair/flair.py”, line 124, in
import DicomPage
File “/usr/local/flair/DicomPage.py”, line 47, in
import RTPlanTab
File “/usr/local/flair/RTPlanTab.py”, line 28, in
from scipy import interpolate
File “/usr/lib/python3/dist-packages/scipy/interpolate/init.py”, line 166, in
from ._interpolate import *
File “/usr/lib/python3/dist-packages/scipy/interpolate/_interpolate.py”, line 11, in
import scipy.special as spec
File “/usr/lib/python3/dist-packages/scipy/special/init.py”, line 649, in
from . import _ufuncs
File “_ufuncs.pyx”, line 1, in init scipy.special._ufuncs
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
"
we tried uninstalling and reinstalling flair, but to no avail. please suggest how do we solve this issue? we are currently running python3 version 3.10.12
Thank you