09-27-2022, 09:04 PM
Hello folks,
I am currently using the Kinova post processor to generate code for the robot from the program in RoboDK. The program generates fine, without any issues (a python file).
However, when I run the program, I get this error:-
连接到抢ot 192.168.1.10:12345
Using TCP connection
Logging as admin on device 192.168.1.10
Traceback (most recent call last):
File "c:/Users/ssonawan/OneDrive - MathWorks/Desktop/prog.py", line 399, in
KinovaGen3.connect('192.168.1.10', 12345)
File "c:/Users/ssonawan/OneDrive - MathWorks/Desktop/prog.py", line 112, in connect
self.base = BaseClient(self.router)
File "C:\RoboDK\Python\kortex_api\autogen\client_stubs\BaseClientRpc.py", line 171, in __init__
self.router.registerNotificationCallback(self.serviceId, callback)
AttributeError: 'DeviceConnection' object has no attribute 'registerNotificationCallback'
Failed to properly disconnect
I can confirm that the robot IP and username and password are correct. I am also able to connect to the robot through RoboDK (Using Connect ->Connect Robot).
I wonder if this issue is due to some library being outdated, but I am not sure. The python version I am using is 3.7.3. I have also attached the generated code, prog.py, to provide more insights.
Please let me know if you need more information from my side.Look forward to hearing from you
I am currently using the Kinova post processor to generate code for the robot from the program in RoboDK. The program generates fine, without any issues (a python file).
However, when I run the program, I get this error:-
连接到抢ot 192.168.1.10:12345
Using TCP connection
Logging as admin on device 192.168.1.10
Traceback (most recent call last):
File "c:/Users/ssonawan/OneDrive - MathWorks/Desktop/prog.py", line 399, in
KinovaGen3.connect('192.168.1.10', 12345)
File "c:/Users/ssonawan/OneDrive - MathWorks/Desktop/prog.py", line 112, in connect
self.base = BaseClient(self.router)
File "C:\RoboDK\Python\kortex_api\autogen\client_stubs\BaseClientRpc.py", line 171, in __init__
self.router.registerNotificationCallback(self.serviceId, callback)
AttributeError: 'DeviceConnection' object has no attribute 'registerNotificationCallback'
Failed to properly disconnect
I can confirm that the robot IP and username and password are correct. I am also able to connect to the robot through RoboDK (Using Connect ->Connect Robot).
I wonder if this issue is due to some library being outdated, but I am not sure. The python version I am using is 3.7.3. I have also attached the generated code, prog.py, to provide more insights.
Please let me know if you need more information from my side.Look forward to hearing from you