Python Error

39 views
Skip to first unread message

John Schmotzer

unread,
Aug 25, 2016, 11:07:01 PM8/25/16
to ope...@googlegroups.com
Has anyone seen the following error working with the python library in Linux?

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'

--
John W. Schmotzer

Zac

unread,
Aug 26, 2016, 12:40:42 AM8/26/16
to OpenXC
Hi John,

Maybe USB isn't detected or USB backend isn't installed? What python command were you using?

- Zac

John Schmotzer

unread,
Aug 26, 2016, 12:47:06 AM8/26/16
to ope...@googlegroups.com
eh I can see it when I do openxc-dashboard so its detecting the VI - and the backend is "installed"......

openxc-control write --bus 1 --id 0x580 --data 0x8FFFFFFF80FFFFFF

--
You received this message because you are subscribed to the Google Groups "OpenXC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxc+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/openxc.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxc/b19501c4-1927-4a20-92fd-c464ac9e4773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
John W. Schmotzer

Eric Marsman

unread,
Aug 26, 2016, 1:43:41 PM8/26/16
to OpenXC
Do simpler (e.g. openxc-control version) commands work for you? 

One thought I had is if you don't have raw_writeable turned on in the VI config, are you getting a timeout and an empty response? So I'm suggesting a simpler test first.

Regards,
Eric

John Schmotzer

unread,
Aug 26, 2016, 1:45:42 PM8/26/16
to ope...@googlegroups.com

Good question, simpler tests seem to work, I'll look at it again when I get a chance but the version one worked last I remember.

Raw writable is enabled, and I'm connected via USB.

John

John


Reply all
Reply to author
Forward
0 new messages