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

Unsupported Numpy Version #104

Open
alekthegenius opened this issue Oct 20, 2024 · 0 comments
Open

Unsupported Numpy Version #104

alekthegenius opened this issue Oct 20, 2024 · 0 comments

Comments

@alekthegenius
Copy link

alekthegenius commented Oct 20, 2024

  • Platform/operating system: Raspberry Pi Zero Running Latest Raspberry Pi Bookworm 32-bit

  • Python version: Python 3.11.2

When manually installing the Pirate Audio drivers for Mopid, specifically running sudo pip3 install Mopidy-PiDi pidi-display-pil pidi-display-st7789 mopidy-raspberry-gpio --break-system-packages Pip would log Collecting numpy>=1.26.4, and try to install a newer version of Numpy than the one provided by Apt, which is 1.24, (this was also logged by Mopidy in pkg_resources.ContextualVersionConflict: (numpy 1.24.2 (/usr/lib/python3/dist-packages), Requirement.parse('numpy>=1.26.4'), {>. The problem is installing Numpy through Pip instead of Apt would cause the Pirate Audio display to be blank and give the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/numpy/_core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/usr/local/lib/python3.11/dist-packages/numpy/_core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/usr/local/lib/python3.11/dist-packages/numpy/_core/overrides.py", line 8, in <module>
    from numpy._core._multiarray_umath import (
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

The solution for that was to first uninstall the Numpy apt package, then run sudo apt-get install libopenblas-dev followed by sudo pip install numpy --break-system-packages, then re-run sudo pip3 install Mopidy-PiDi pidi-display-pil pidi-display-st7789 mopidy-raspberry-gpio which finally fixed the problem, and now the screen is working.

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

1 participant