jackw01 / led-control

Advanced WS2812/SK6812 RGB/RGBW LED controller with on-the-fly Python animation programming, web code editor/control interface, 1D, 2D, and 3D display support, and E1.31 sACN support
https://jackw01.github.io/led-control/
MIT License
162 stars 35 forks source link

Issue starting up #55

Closed Dad-Ju closed 10 months ago

Dad-Ju commented 10 months ago

Hello,

I fiddled around a lot, but did not get it working.

I want to setup this on my Raspberry Pi 3B (Zero W 1.1 in bestcase) to control some strips, sadly I don't get it to start up right...

I applied the fix from #53 and tried from master directly but no luck there. Maybe someone can help me get started :)

sudo ledcontrol --led_count 17
Traceback (most recent call last):
  File "/usr/local/bin/ledcontrol", line 33, in <module>
    sys.exit(load_entry_point('led-control', 'console_scripts', 'ledcontrol')())
  File "/usr/local/bin/ledcontrol", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/pi/led-control/ledcontrol/__init__.py", line 5, in <module>
    from ledcontrol.app import create_app
  File "/home/pi/led-control/ledcontrol/app.py", line 10, in <module>
    from flask import Flask, render_template, request, jsonify
  File "/home/pi/led-control/.eggs/Flask-2.2.2-py3.9.egg/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
  File "/home/pi/led-control/.eggs/Flask-2.2.2-py3.9.egg/flask/app.py", line 30, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/pi/led-control/.eggs/werkzeug-3.0.1-py3.9.egg/werkzeug/urls.py)
jackw01 commented 10 months ago

Try adding 'Werkzeug==2.2.2' to the requirements list in setup.py.

Dad-Ju commented 10 months ago

Thanks this seamed to help :)

adonaros commented 3 months ago

one more issue, that was fixed by doing.. sudo apt-get install libopenblas-base

error was root@raspberrypi:~/led-control# ledcontrol Traceback (most recent call last): File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/core/init.py", line 24, in from . import multiarray File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/core/multiarray.py", line 10, in from . import overrides File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/core/overrides.py", line 8, in from numpy.core._multiarray_umath import ( ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/init.py", line 130, in from numpy.config import show as show_config File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/config.py", line 4, in from numpy.core._multiarray_umath import ( File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/core/init.py", line 50, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: libopenblas.so.0: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/bin/ledcontrol", line 33, in sys.exit(load_entry_point('led-control', 'console_scripts', 'ledcontrol')()) File "/usr/local/bin/ledcontrol", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/root/led-control/ledcontrol/init.py", line 5, in from ledcontrol.app import create_app File "/root/led-control/ledcontrol/app.py", line 12, in from ledcontrol.ledcontroller import LEDController File "/root/led-control/ledcontrol/ledcontroller.py", line 6, in import numpy as np File "/root/led-control/.eggs/numpy-1.26.4-py3.9-linux-armv7l.egg/numpy/init.py", line 135, in raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. root@raspberrypi:~/led-control#