Home › Evil Mad Scientist Forums › Egg-Bot › Cannot connect to eggbot – linux
Tagged: usb linux connect
- This topic has 5 replies, 2 voices, and was last updated 5 years, 12 months ago by Windell Oskay.
-
AuthorPosts
-
December 23, 2018 at 7:29 am #27024Mike KParticipant
Hi all,
I’m unable to use the eggbot on my Linux 16.04 laptop.
I’ve confirmed that the USB connection is working; when I uselsusb
I 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
`
$ id
uid=1000(mike) gid=1000(mike) groups=1000(mike),20(dialout)
`
i’m running inkscape 0.92.3.message:
`
Traceback (most recent call last):
File “eggbot.py”, line 1168, in <module>
e.affect()
File “/home/mike/snap/inkscape/4435/extensions/inkex.py”, line 285, in affect
self.effect()
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 #27025Mike KParticipantThe value for
self.usb_device_path
is/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6
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 #27028Mike KParticipantI’ve found that the error being generated is actually “Permission Denied”, but that error message is swallowed by
read_line
. However, inkscape runs as usermike
and that user is able to cat the file without any issue.December 23, 2018 at 12:06 pm #27030Windell OskayKeymasterYou might try logging out and logging back in.
December 23, 2018 at 4:31 pm #27031Mike KParticipanti switched to a windows machine and it worked without issue, so i am confident that my eggbot is working correctly
December 25, 2018 at 8:37 pm #27033Windell OskayKeymasterI would suggest trying logging out and back in — that has resolved permissions issues of this sort in the past.
-
AuthorPosts
- You must be logged in to reply to this topic.