Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BrokenPipeError during remote connection to RoboDK API server

I am running RoboDK on my host machine (Windows 10) and trying to run a python script inside a Linux VM. I tried the following code:
RDK = robolink.Robolink(robodk_ip="")
item = RDK.Item('base')

When I run this, I get the following error:

    item = RDK.Item('base') 
File "/home/rshanor/venvs/lib/python3.10/site-packages/robodk/", line 1394, in Item
  File "/home/rshanor/venvs/lib/python3.10/site-packages/robodk/", line 801, in _send_line
    self.COM.send(bytes(string + '\n', 'utf-8'))  # Python 3.x only
BrokenPipeError: [Errno 32] Broken pipe

I do not think the issue is firewall related. Before opening the correct ports, the above code gives a different TimeoutError. Thanks for the help!
Did you activate the option to enable the external API?

Could you try a different port? The default port is 20500 but there could be another process is using this port and the API started in a different port.

You'll find these settings here:
  • Tools-Options
  • Select Other tab

Users browsing this thread:
1 Guest(s)