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

Error on a newly installed raspebrry pi 4 #14

Closed springjools closed 3 years ago

springjools commented 3 years ago

pi@uranian:~ $ /usr/local/bin/ledcontrol -h Traceback (most recent call last): File "/usr/local/bin/ledcontrol", line 11, in load_entry_point('led-control', 'console_scripts', 'ledcontrol')() File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2793, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2411, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2417, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/home/pi/led-control/ledcontrol/init.py", line 7, in from ledcontrol.app import create_app File "/home/pi/led-control/ledcontrol/app.py", line 24, in '', '', False, File "/home/pi/led-control/.eggs/recordclass-0.15.1-py3.7-linux-aarch64.egg/recordclass/recordclass.py", line 67, in recordclass fast_new=fast_new, gc=False) File "/home/pi/led-control/.eggs/recordclass-0.15.1-py3.7-linux-aarch64.egg/recordclass/dataclass.py", line 152, in make_dataclass cls = datatype(typename, bases, ns, gc=gc, fast_new=fast_new) File "/home/pi/led-control/.eggs/recordclass-0.15.1-py3.7-linux-aarch64.egg/recordclass/datatype.py", line 154, in new new = _make_new_function(typename, fields, defaults, annotations, use_dict) File "/home/pi/led-control/.eggs/recordclass-0.15.1-py3.7-linux-aarch64.egg/recordclass/datatype.py", line 257, in _make_new_function code = compile(new_func_def, "", "exec") File "", line 3 'Create new instance: FormItem(control='range', key='None', type=None, min=0, max=1, step=0.01, options=[], val=0, label='', unit='', hide=False)'

springjools commented 3 years ago

Using raspberry pi 4 with 64-bit version: Linux uranian 5.10.52-v8+ #1441 SMP PREEMPT Tue Aug 3 18:14:03 BST 2021 aarch64 GNU/Linux

jackw01 commented 3 years ago

That doesn't look like a complete Python error message. There should be a line at the end with the name of the exception that was thrown.

Update: was able to reproduce, this appears to be an issue with the latest version of recordclass. The exception thrown is SyntaxError: invalid syntax

jackw01 commented 3 years ago

Try again with the latest commit, it should work.

springjools commented 3 years ago

Thanks.