-
Notifications
You must be signed in to change notification settings - Fork 45
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
NoneType #81
Comments
Can you please provide more info on how this error is generated and steps to reproduce it? |
I've been getting the same issue. I'm running Debian with a low horse power system. Got ~248 MB of memory. Just for the record, the results of the "Free command"
I regularily get errors when executing the "openxc-control version", and "openxc-control id". The full Errors are:
In both cases the interpreter doesn't seem to recognize an imported module, this may be due to limited hardware, I can't replicate this issue when running from a PC. |
I'm also seeing these errors about 50% to 70% of the time. What's more, it sometimes only shows the first few lines of the exception before spitting me out to the shell.
From what I'm gathering, this seems to be the result of threads not exiting cleanly. I can't say why this would be different between platforms (it strikes me as funny that there are so few Linux OpenXC tinkerers), but For instance, "/usr/local/lib/python2.7/dist-packages/openxc-0.12.0-py2.7.egg/openxc/sources/usb.py", line 88 is the catching of an exception, but at this point, it seams, usb.core is turned into nothing (probably unloaded because the thread was told to exit). The first google result for the "Exception in thread" line suggests this is improper use of the daemon threads, but I don't have enough info or knowledge to corroborate or contradict that claim. Anyway, I'll keep poking at it and come back with further info if I glean anything. Just for reference:
|
FYI, the MAC showing as all FF:FF was a bug. It is fixed in current vi-firmware master (this PR: openxc/vi-firmware#361). Not in the pre-compiled ones yet though. Working on a few other things before release. |
Additionally
However, when I locked the screen on the phone with OpenXC Enabler still running there were additional errors reported:
|
I have the exact same problem as @kylewludwig. Did you manage to solve it? Every command I sent, I do get the answer, but also a "Can't read logs from data source -- stopping: ("USB device couldn't be read", USBError(60, 'Operation timed out'))" I am also using a Mac and mine is with Sierra Version 10.12 |
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
File "/usr/local/lib/python2.7/dist-packages/openxc/sources/base.py", line 195, in run
File "/usr/local/lib/python2.7/dist-packages/openxc/sources/usb.py", line 72, in read
File "/usr/local/lib/python2.7/dist-packages/openxc/sources/usb.py", line 88, in _read
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'core'
The text was updated successfully, but these errors were encountered: