Skip to content
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

ImportError: cannot import name 'SUDDevice' from 'pyseneye.sud' #7

Closed
rjsears opened this issue Jan 4, 2020 · 3 comments
Closed

ImportError: cannot import name 'SUDDevice' from 'pyseneye.sud' #7

rjsears opened this issue Jan 4, 2020 · 3 comments

Comments

@rjsears
Copy link

rjsears commented Jan 4, 2020

Latest Raspian, RPI 3B+ Seneye SUD connected and visible via lsusb, I get the following error when attempting to use:

root tankpi: ~ # lsusb -v

Bus 001 Device 007: ID 24f7:2204
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 2
bMaxPacketSize0 64
idVendor 0x24f7
idProduct 0x2204
bcdDevice 1.25
iManufacturer 1 Seneye ltd
iProduct 2 Seneye SUD v 3.0.2
iSerial 3 F50020C55AC29B49AF298D090A006017
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0037
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 250mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 4 HID
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 33
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)

root tankpi: ~ # python3
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from pyseneye.sud import SUDDevice, Action
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'SUDDevice' from 'pyseneye.sud' (/usr/local/lib/python3.7/dist-packages/pyseneye/sud.py)

@mcclown
Copy link
Owner

mcclown commented Jan 5, 2020

There's a typo in the documentation. It should be SUDevice, not SUDDevice.

Sorry for the hassle, I need to update that doc.

@rjsears
Copy link
Author

rjsears commented Jan 6, 2020 via email

@mcclown
Copy link
Owner

mcclown commented Jan 6, 2020

No worries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants