Tagged: usb linux connect
December 23, 2018 at 7:29 am #27024
I’m unable to use the eggbot on my Linux 16.04 laptop.
I’ve confirmed that the USB connection is working; when I use
lsusbI see a new line:
Bus 002 Device 006: ID 04d8:fd92 Microchip Technology, Inc.
and I’ve confirmed that the device is there:
$ ls -l /dev/ttyACM*
crw-rw—- 1 root dialout 166, 0 Dec 23 07:16 /dev/ttyACM0
and I have dialout group
uid=1000(mike) gid=1000(mike) groups=1000(mike),20(dialout)
i’m running inkscape 0.92.3.
Traceback (most recent call last):
File “eggbot.py”, line 1168, in <module>
File “/home/mike/snap/inkscape/4435/extensions/inkex.py”, line 285, in affect
File “eggbot.py”, line 189, in effect
self.serialPort = ebb_serial.openPort()
File “/home/mike/snap/inkscape/4435/extensions/ebb_serial.py”, line 88, in openPort
foundPort = findPort()
File “/home/mike/snap/inkscape/4435/extensions/ebb_serial.py”, line 49, in findPort
comPortsList = list(comports())
File “/home/mike/snap/inkscape/4435/extensions/serial/tools/list_ports_linux.py”, line 77, in comports
for info in [SysFS(d) for d in devices]
File “/home/mike/snap/inkscape/4435/extensions/serial/tools/list_ports_linux.py”, line 38, in __init__
self.vid = int(self.read_line(self.usb_device_path, ‘idVendor’), 16)
TypeError: int() can’t convert non-string with explicit base
`December 23, 2018 at 7:58 am #27025
The value for
mike@E7440:/sys/class/tty$ cat /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6 cat: '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6': Is a directory mike@E7440:/sys/class/tty$ ls /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6 2-6:1.0 bDeviceClass bNumConfigurations devnum ltm_capable quirks urbnum 2-6:1.1 bDeviceProtocol bNumInterfaces devpath manufacturer removable version authorized bDeviceSubClass busnum driver maxchild remove avoid_reset_quirk bmAttributes configuration ep_00 port speed bcdDevice bMaxPacketSize0 descriptors idProduct power subsystem bConfigurationValue bMaxPower dev idVendor product uevent mike@E7440:/sys/class/tty$ cat /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/idVendor 04d8
I’ve found that the error being generated is actually “Permission Denied”, but that error message is swallowed by read_line. However, inkscape runs as user mike and that user is able to cat the file without any issue.December 23, 2018 at 11:17 am #27028
I’ve found that the error being generated is actually “Permission Denied”, but that error message is swallowed by
read_line. However, inkscape runs as user
mikeand that user is able to cat the file without any issue.December 23, 2018 at 12:06 pm #27030Windell OskayKeymaster
You might try logging out and logging back in.December 23, 2018 at 4:31 pm #27031
i switched to a windows machine and it worked without issue, so i am confident that my eggbot is working correctlyDecember 25, 2018 at 8:37 pm #27033Windell OskayKeymaster
I would suggest trying logging out and back in — that has resolved permissions issues of this sort in the past.
- You must be logged in to reply to this topic.