INNO-MAKER / USB2CAN-X2

innomaker USB2CAN two channels device
7 stars 5 forks source link

innomaker x2 python usb2can.py fails #1

Open tobiokanobi opened 1 year ago

tobiokanobi commented 1 year ago

tobi@FLY-06:~/inno$ python3 usb2can.py Traceback (most recent call last): File "usb2can.py", line 44, in from gs_usb.gs_usb import ( ImportError: cannot import name 'GS_USB_MODE_NORMAL' from 'gs_usb.gs_usb' (/home/tobi/.local/lib/python3.8/site-packages/gs_usb/gs_usb.py)

Occured on Windows & also Ubuntu20.4 running in WSL2

spaceKelan commented 1 year ago

interesting, as I had the problem with the non-existent module gs_usb on CentO7 but my Ubuntu22.4 worked well. Former does not allow to install unsigned modules but you might try this https://github.com/HubertD/socketcan_gs_usb as workaround.

Also I worked with the c files, so I don't know that specific error but I assume it is due to the fact, that the WSL2 does not provide that module.

Note that the X2 is usb3. I had to go and use other hardware now that uses USB2 via cdc_acm module as I have to use CentOS7 but the Innomaker x2 works fine on my x86 Linux and my raspbian.