Cannot connect to eggbot – linux

Home Evil Mad Scientist Forums Egg-Bot Cannot connect to eggbot – linux

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27024
    Mike K
    Participant

    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 use lsusb 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
    `

    #27025
    Mike K
    Participant

    The 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.

    • This reply was modified 1 year, 11 months ago by Mike K.
    • This reply was modified 1 year, 11 months ago by Mike K.
    • This reply was modified 1 year, 11 months ago by Mike K.
    #27028
    Mike K
    Participant

    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.

    #27030
    Windell Oskay
    Keymaster

    You might try logging out and logging back in.

    #27031
    Mike K
    Participant

    i switched to a windows machine and it worked without issue, so i am confident that my eggbot is working correctly

    #27033
    Windell Oskay
    Keymaster

    I would suggest trying logging out and back in — that has resolved permissions issues of this sort in the past.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.