Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python API: "Unpack requires a buffer of 4 bytes"
#1
Hi,

最近我有蜜蜂n having a lot of issues with the RoboDK Python API. I have RoboDK v3.8.4 with a professional license. I have Python 3.7.4.

Whenever I try to send any command to the robot through the API, I get this:

Code:
Traceback (most recent call last):
File "c:\Users\david.murray\Downloads\programming\robot_controller.py", line 121, in run self.pick_object(obj)
File "c:\Users\david.murray\Downloads\programming\robot_controller.py", line 170, in pick_object self.run_robot_instruction("current_operation = 2")
File "c:\Users\david.murray\Downloads\programming\robot_controller.py", line 349, in run_robot_instruction self.robot.RunInstruction(instruction, robolink.INSTRUCTION_INSERT_CODE)
File "c:\Users\david.murray\Downloads\programming\RoboDK\robolink.py", line 4810, in RunInstruction self.link._check_status()
File "c:\Users\david.murray\Downloads\programming\RoboDK\robolink.py", line 485, in _check_status status = self._rec_int()
File "c:\Users\david.murray\Downloads\programming\RoboDK\robolink.py", line 641, in _rec_int num = struct.unpack('>i',buffer)
struct.error: unpack requires a buffer of 4 bytes
Is this a known issue? What can be done?

Best regards,
David


Messages In This Thread
Python API: "Unpack requires a buffer of 4 bytes" - bydavidmurray- 08-13-2019, 02:43 PM



Users browsing this thread:
1 Guest(s)