Giter Club home page Giter Club logo

Comments (7)

TobKra96 avatar TobKra96 commented on July 28, 2024 1

Can you check your installed python version?
sudo python3 --version
The version should be Python 3.7.3.
Try sudo python3.7 main.py.

Edit:
Maybe pip3 is not linked to python3. Try:
sudo python3 -m pip install -I numpy==1.17.0

numpy/numpy#15424

from music_led_strip_control.

TobKra96 avatar TobKra96 commented on July 28, 2024

Hi, it looks like Python 3 doesn't know numpy.
Have you installed numpy with the pip3command?
sudo pip3 install -I numpy==1.17.0
You can see all installed packages with
sudo pip3 list

from music_led_strip_control.

Loxitation avatar Loxitation commented on July 28, 2024

Checked that, pip3 list finds numpy, got 1.20.0, downgraded to 1.17.0, same issue. Will try a fresh clean install on a clean pi and report back in the evening wether that worked or not.

from music_led_strip_control.

Teraskull avatar Teraskull commented on July 28, 2024

@Loxitation Can you try to install the following:

sudo apt-get install python3-numpy python3-scipy

And then retry running main.py?

from music_led_strip_control.

Loxitation avatar Loxitation commented on July 28, 2024

@Teraskull tried that just now, same issue. Sorry for the late reply, haven't got earlier to testing again.

@TobKra96 The clean install also throws the same error, no module named numpy. Error is still the following:

pi@raspberrypi:~/s2lled/music_led_strip_control/server $ sudo su
root@raspberrypi:/home/pi/s2lled/music_led_strip_control/server# python3 main.py
Traceback (most recent call last):
File "main.py", line 8, in
from libs.device_manager import DeviceManager
File "/home/pi/s2lled/music_led_strip_control/server/libs/device_manager.py", line 1, in
from libs.device import Device # pylint: disable=E0611, E0401
File "/home/pi/s2lled/music_led_strip_control/server/libs/device.py", line 3, in
from libs.effect_service import EffectService
File "/home/pi/s2lled/music_led_strip_control/server/libs/effect_service.py", line 5, in
from libs.effects.effect_bars import EffectBars # pylint: disable=E0611, E04 01
File "/home/pi/s2lled/music_led_strip_control/server/libs/effects/effect_bars. py", line 1, in
from libs.effects.effect import Effect # pylint: disable=E0611, E0401
File "/home/pi/s2lled/music_led_strip_control/server/libs/effects/effect.py", line 1, in
from libs.color_service import ColorService # pylint: disable=E0611, E0401
File "/home/pi/s2lled/music_led_strip_control/server/libs/color_service.py", l ine 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'

from music_led_strip_control.

Loxitation avatar Loxitation commented on July 28, 2024

pi@raspberrypi:~ $ sudo python3 --version
Python 3.7.0

@TobKra96 saved my night. pip3 was not linked to python3 as it seems. Sorry for bothering you with such stuff, still learning :D Thanks you verry verry much for your help! :)

from music_led_strip_control.

Loxitation avatar Loxitation commented on July 28, 2024

So for all out there, to sum it up, @TobKra96 s last answer solved the issue. Pip3 was not linked to python3.

sudo python3 -m pip install -I numpy==1.17.0

solved the issue.

from music_led_strip_control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.