-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running flicklib demo I get NameError: name 'sys' is not defined #43
Comments
@lbilde Looks like its not picking up the board. Do you have anything else connected? Can you detect the board with |
Hmm seems I can't, using i2cdetect -y 1 results in this:
00: -- -- -- -- -- -- -- -- -- -- -- -- -- |
Tried to remove and reattach the hat and i2cdetect -y 1 results in this: However I am still getting the same error as above by the way .. |
Looks like there's two separate issues here. Line 479 in the library references sys.exit however we import it already as exit. I'll do a fix for this. #44 However it seems to be directly caused by the library not being able to read the firmware information which could indicate an i2c issue or such. |
Trying to reinstall my pi, can the flick-demo run with python 3.7? |
After reinstall and using python2.7 I am back and running, thx.. |
@lbilde @ryanteck Yes there is an other issue. |
Hi Flick :)
When I run flick demo on the pi I keep getting the following error:
pi@raspberrypiLars:~/Flick/bin $ flick-demo
Did not receive firmware info
Traceback (most recent call last):
File "/usr/local/bin/flick-demo", line 4, in
import('pkg_resources').run_script('flicklib==0.0.1', 'flick-demo')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1501, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python3.5/dist-packages/flicklib-0.0.1-py3.5.egg/EGG-INFO/scripts/flick-demo", line 4, in
import('pkg_resources').run_script('flicklib==0.0.1', 'flick-demo')
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/usr/local/lib/python3.5/dist-packages/flicklib-0.0.1-py3.5.egg/flicklib.py", line 479, in
NameError: name 'sys' is not defined
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flicklib-0.0.1-py3.5.egg/flicklib.py", line 462, in _exit
File "/usr/local/lib/python3.5/dist-packages/flicklib-0.0.1-py3.5.egg/flicklib.py", line 330, in _stop_poll
AttributeError: 'NoneType' object has no attribute 'stop'
Any help?
Thanks
The text was updated successfully, but these errors were encountered: