led-control icon indicating copy to clipboard operation
led-control copied to clipboard

Unable to start ledcontrol

Open iamashwin99 opened this issue 2 years ago • 3 comments

My installation from the master branch seems to have gone through (nothing to show otherwise) , however when I run the program I get the following error:

$ sudo ledcontrol --port 80 --led_count 200
Using default linear pixel mapping (200 LEDs)
Can't open device file
: No such device or address
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 "/home/lights/src/led-control/ledcontrol/__init__.py", line 43, in main
    app = create_app(args.led_count,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lights/src/led-control/ledcontrol/app.py", line 47, in create_app
    leds = LEDController(led_count,
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lights/src/led-control/ledcontrol/ledcontroller.py", line 90, in __init__
    raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -9 (Failed to create mailbox device)

Does anyone one have any idea what might be going wrong

iamashwin99 avatar Nov 21 '23 12:11 iamashwin99

What platform are you on?

jackw01 avatar Nov 22 '23 02:11 jackw01

Raspberry Pi 4B with Debian 11

iamashwin99 avatar Nov 22 '23 12:11 iamashwin99

Please search for your error message in the issues at https://github.com/jgarff/rpi_ws281x or report this over there - it looks like it may take some effort to get this library to work on non-Raspbian operating systems.

jackw01 avatar Nov 22 '23 16:11 jackw01