Comments (7)
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
from music_led_strip_control.
Hi, it looks like Python 3 doesn't know numpy.
Have you installed numpy with the pip3
command?
sudo pip3 install -I numpy==1.17.0
You can see all installed packages with
sudo pip3 list
from music_led_strip_control.
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.
@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.
@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.
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.
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)
- [Feature] Editing Current Lighting Effect and seemless changes HOT 1
- Host wifi server on wlan1. Possible? HOT 1
- possible to activate effect_random_cycle through api? HOT 1
- Latest `dev_2.3` WIP commit introduces bugs HOT 5
- Normal (non individually addressable) LED strip HOT 4
- 2 led strips not working HOT 4
- Support for apa102/apa102c HOT 1
- Version for PC HOT 6
- Can you run server on esp8266 without pi? Pi alternative due to short supply? HOT 1
- Run as Docker image HOT 2
- [dev_2.3] config_adjuster misbehaves if `old_config` doesn't have any `device_groups` keys HOT 2
- not all music effects works
- compatible with alexa or home assistent? HOT 3
- Tuya Lighting Integration HOT 1
- Scipy 1.6.2 dosn´t existent HOT 3
- Master branch doesnt work - IndexError: list index out of range in init_audio_service: HOT 11
- need help , wierd bug ?! HOT 1
- Does this support 1gb ram rasp pis? HOT 1
- [Feature] Microphone pass through web GUI
- ALSA lib pcm_asym.c:105:(_snd_pcm_asym_open) capture slave is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music_led_strip_control.