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

Error while runing oversteer #233

Open
zekemx opened this issue Sep 2, 2024 · 4 comments
Open

Error while runing oversteer #233

zekemx opened this issue Sep 2, 2024 · 4 comments

Comments

@zekemx
Copy link

zekemx commented Sep 2, 2024

Hello,

Any ideas on how to fix this?

$ oversteer

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.0 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/bin/oversteer", line 53, in
sys.exit(app.run(sys.argv))
File "/usr/lib/python3.12/site-packages/oversteer/application.py", line 131, in run
from oversteer.gui import Gui
File "/usr/lib/python3.12/site-packages/oversteer/gui.py", line 20, in
from .combined_chart import CombinedChart
File "/usr/lib/python3.12/site-packages/oversteer/combined_chart.py", line 2, in
import matplotlib.pyplot as plt
File "/usr/lib64/python3.12/site-packages/matplotlib/init.py", line 161, in
from . import _api, _version, cbook, _docstring, rcsetup
File "/usr/lib64/python3.12/site-packages/matplotlib/rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "/usr/lib64/python3.12/site-packages/matplotlib/colors.py", line 57, in
from matplotlib import _api, _cm, cbook, scale
File "/usr/lib64/python3.12/site-packages/matplotlib/scale.py", line 22, in
from matplotlib.ticker import (
File "/usr/lib64/python3.12/site-packages/matplotlib/ticker.py", line 143, in
from matplotlib import transforms as mtransforms
File "/usr/lib64/python3.12/site-packages/matplotlib/transforms.py", line 49, in
from matplotlib._path import (
Traceback (most recent call last):
File "/usr/lib64/python3.12/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.0 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/bin/oversteer", line 53, in
sys.exit(app.run(sys.argv))
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/oversteer/application.py", line 131, in run
from oversteer.gui import Gui
File "/usr/lib/python3.12/site-packages/oversteer/gui.py", line 20, in
from .combined_chart import CombinedChart
File "/usr/lib/python3.12/site-packages/oversteer/combined_chart.py", line 2, in
import matplotlib.pyplot as plt
File "/usr/lib64/python3.12/site-packages/matplotlib/init.py", line 161, in
from . import _api, _version, cbook, _docstring, rcsetup
File "/usr/lib64/python3.12/site-packages/matplotlib/rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "/usr/lib64/python3.12/site-packages/matplotlib/colors.py", line 57, in
from matplotlib import _api, _cm, cbook, scale
File "/usr/lib64/python3.12/site-packages/matplotlib/scale.py", line 22, in
from matplotlib.ticker import (
File "/usr/lib64/python3.12/site-packages/matplotlib/ticker.py", line 143, in
from matplotlib import transforms as mtransforms
File "/usr/lib64/python3.12/site-packages/matplotlib/transforms.py", line 49, in
from matplotlib._path import (
ImportError: numpy.core.multiarray failed to import

@berarma
Copy link
Owner

berarma commented Sep 2, 2024

Which distro are you using? This issue seems to be related to your distro, and I don't think I can help much with it, but maybe someone will.

@zekemx
Copy link
Author

zekemx commented Sep 11, 2024

Hello Berarma

I am using Mageia 10 Cauldron (dev), I did some test on mageia 9 and it works so I also guess this is a distro problem. Today I confirmed on another mageia 9 and 10 and it also fails on 10.

I sent you a message because of this part of the error:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.0 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'.

Regards and thanks for your great job. I actually packaged Oversteer for blogdrake unofficial mageia repos.

@berarma
Copy link
Owner

berarma commented Sep 11, 2024

It seems your distribution has a mix of modules compiled using NumPy 1.x and 2.1. An application using a module compiled for 1.x can't use at the same time a module compiled for 2.1. Normally, a distribution will compile all modules using the same NumPy version or at least offer the modules compiled using both and the user can choose which version to install.

@IcePanorama
Copy link

Experiencing this exact same issue on Fedora Linux 40 (Linux 6.10.9-200.fc40.x86_64).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants