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

Failed building wheel for pyfastnoisesimd #51

Closed WegnerDan closed 1 year ago

WegnerDan commented 1 year ago

I've tried following the steps under "Software Setup (Raspberry Pi)" on https://jackw01.github.io/led-control/

I have a raspberry pi zero w with most current raspberrypi os lite 32 bit image.

I get a lot of errors on step sudo python3 setup.py develop

command output.txt

jackw01 commented 1 year ago

Please try rebuilding with line 41 in setup.py commented out. The module that failed to build is only used for non-Raspberry Pi platforms, and if everything works properly without it, report the installation issue at the pyfastnoisesimd repository.

WegnerDan commented 1 year ago

Build seems to be successful with line 41 commented out, but it does not run.

thedoginthewok@led-raspi:~/led-control $ sudo ledcontrol --led_count 10 --led_pixel_order GRBW
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/thedoginthewok/led-control/ledcontrol/__init__.py", line 5, in <module>
    from ledcontrol.app import create_app
  File "/home/thedoginthewok/led-control/ledcontrol/app.py", line 11, in <module>
    from ledcontrol.animationcontroller import AnimationController
  File "/home/thedoginthewok/led-control/ledcontrol/animationcontroller.py", line 14, in <module>
    import ledcontrol.animationfunctions as animfunctions
  File "/home/thedoginthewok/led-control/ledcontrol/animationfunctions.py", line 7, in <module>
    import ledcontrol.driver as driver
  File "/home/thedoginthewok/led-control/ledcontrol/driver/__init__.py", line 17, in <module>
    from . driver_non_raspberry_pi import *
  File "/home/thedoginthewok/led-control/ledcontrol/driver/driver_non_raspberry_pi.py", line 5, in <module>
    import pyfastnoisesimd as fns
ModuleNotFoundError: No module named 'pyfastnoisesimd'
Build Details ``` thedoginthewok@led-raspi:~/led-control $ sudo python3 setup.py develop running develop preinstall running egg_info creating led_control.egg-info writing led_control.egg-info/PKG-INFO writing dependency_links to led_control.egg-info/dependency_links.txt writing entry points to led_control.egg-info/entry_points.txt writing requirements to led_control.egg-info/requires.txt writing top-level names to led_control.egg-info/top_level.txt writing manifest file 'led_control.egg-info/SOURCES.txt' reading manifest file 'led_control.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*' under directory 'ledcontrol/templates' writing manifest file 'led_control.egg-info/SOURCES.txt' running build_ext Creating /usr/local/lib/python3.9/dist-packages/led-control.egg-link (link to .) Adding led-control 2.0.0 to easy-install.pth file Installing ledcontrol script to /usr/local/bin Installed /home/thedoginthewok/led-control Processing dependencies for led-control==2.0.0 Searching for sacn==1.9.0 Best match: sacn 1.9.0 Processing sacn-1.9.0-py3.9.egg Adding sacn 1.9.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/sacn-1.9.0-py3.9.egg Searching for pyOpenSSL==22.1.0 Best match: pyOpenSSL 22.1.0 Processing pyOpenSSL-22.1.0-py3.9.egg Adding pyOpenSSL 22.1.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/pyOpenSSL-22.1.0-py3.9.egg Searching for numpy==1.25.1 Best match: numpy 1.25.1 Processing numpy-1.25.1-py3.9-linux-armv6l.egg Adding numpy 1.25.1 to easy-install.pth file Installing f2py script to /usr/local/bin Installing f2py3 script to /usr/local/bin Installing f2py3.9 script to /usr/local/bin Using /home/thedoginthewok/led-control/.eggs/numpy-1.25.1-py3.9-linux-armv6l.egg Searching for bjoern==3.2.2 Best match: bjoern 3.2.2 Processing bjoern-3.2.2-py3.9-linux-armv6l.egg Adding bjoern 3.2.2 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/bjoern-3.2.2-py3.9-linux-armv6l.egg Searching for RestrictedPython==6.1 Best match: RestrictedPython 6.1 Processing RestrictedPython-6.1-py3.9.egg Adding RestrictedPython 6.1 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/RestrictedPython-6.1-py3.9.egg Searching for HAP-python==4.4.0 Best match: HAP-python 4.4.0 Processing HAP_python-4.4.0-py3.9.egg Adding HAP-python 4.4.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/HAP_python-4.4.0-py3.9.egg Searching for Flask==2.2.2 Best match: Flask 2.2.2 Processing Flask-2.2.2-py3.9.egg Adding Flask 2.2.2 to easy-install.pth file Installing flask script to /usr/local/bin Using /home/thedoginthewok/led-control/.eggs/Flask-2.2.2-py3.9.egg Searching for cryptography==38.0.4 Best match: cryptography 38.0.4 Processing cryptography-38.0.4-py3.9-linux-armv6l.egg Adding cryptography 38.0.4 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/cryptography-38.0.4-py3.9-linux-armv6l.egg Searching for zeroconf==0.71.0 Best match: zeroconf 0.71.0 Processing zeroconf-0.71.0-py3.9-linux-armv6l.egg Adding zeroconf 0.71.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/zeroconf-0.71.0-py3.9-linux-armv6l.egg Searching for h11==0.14.0 Best match: h11 0.14.0 Processing h11-0.14.0-py3.9.egg Adding h11 0.14.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/h11-0.14.0-py3.9.egg Searching for itsdangerous==2.1.2 Best match: itsdangerous 2.1.2 Processing itsdangerous-2.1.2-py3.9.egg Adding itsdangerous 2.1.2 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/itsdangerous-2.1.2-py3.9.egg Searching for importlib-metadata==6.8.0 Best match: importlib-metadata 6.8.0 Processing importlib_metadata-6.8.0-py3.9.egg Adding importlib-metadata 6.8.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/importlib_metadata-6.8.0-py3.9.egg Searching for click==8.1.6 Best match: click 8.1.6 Processing click-8.1.6-py3.9.egg Adding click 8.1.6 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/click-8.1.6-py3.9.egg Searching for Werkzeug==2.3.6 Best match: Werkzeug 2.3.6 Processing Werkzeug-2.3.6-py3.9.egg Adding Werkzeug 2.3.6 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/Werkzeug-2.3.6-py3.9.egg Searching for Jinja2==3.1.2 Best match: Jinja2 3.1.2 Processing Jinja2-3.1.2-py3.9.egg Adding Jinja2 3.1.2 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/Jinja2-3.1.2-py3.9.egg Searching for cffi==1.15.1 Best match: cffi 1.15.1 Processing cffi-1.15.1-py3.9-linux-armv6l.egg Adding cffi 1.15.1 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/cffi-1.15.1-py3.9-linux-armv6l.egg Searching for ifaddr==0.2.0 Best match: ifaddr 0.2.0 Processing ifaddr-0.2.0-py3.9.egg Adding ifaddr 0.2.0 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/ifaddr-0.2.0-py3.9.egg Searching for async-timeout==4.0.2 Best match: async-timeout 4.0.2 Processing async_timeout-4.0.2-py3.9.egg Adding async-timeout 4.0.2 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/async_timeout-4.0.2-py3.9.egg Searching for zipp==3.16.2 Best match: zipp 3.16.2 Processing zipp-3.16.2-py3.9.egg Adding zipp 3.16.2 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/zipp-3.16.2-py3.9.egg Searching for MarkupSafe==2.1.3 Best match: MarkupSafe 2.1.3 Processing MarkupSafe-2.1.3-py3.9-linux-armv6l.egg Adding MarkupSafe 2.1.3 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/MarkupSafe-2.1.3-py3.9-linux-armv6l.egg Searching for pycparser==2.21 Best match: pycparser 2.21 Processing pycparser-2.21-py3.9.egg Adding pycparser 2.21 to easy-install.pth file Using /home/thedoginthewok/led-control/.eggs/pycparser-2.21-py3.9.egg Finished processing dependencies for led-control==2.0.0 ```
jackw01 commented 1 year ago

What does the output of the command cat /sys/firmware/devicetree/base/model say?

WegnerDan commented 1 year ago

It looks a little weird, this is the exact output:

thedoginthewok@led-raspi:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi Zero W Rev 1.1thedoginthewok@led-raspi:~ $

I've also attached the file (unchanged, only added .txt to the filename so github accepts it) model.txt

Notepad++ seems to interpret the last byte of the file as NUL: image

jackw01 commented 1 year ago

Try pulling the latest commit from Github and rebuilding, this should be fixed now.