AR2 not connecting- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: AR2 not connecting (/Thread-AR2-not-connecting) |
AR2 not connecting-Julian Holcroft-09-27-2022 I am trying to program general moves for my AR2 using RoboDK when I try to connect to it I get this error. How do I fix this? Starting robot driver: C:/RoboDK/api/robot/AR2Driver.py Starting... Not started Sending command... Installing required module: pyserial ... Running command: C:\Users\Julian Holcroft\AppData\Local\Programs\Python\Python38\python.exe -m pip install serial ... Requirement already satisfied: serial in c:\users\julian holcroft\appdata\local\programs\python\python38\lib\site-packages (0.0.97) Requirement already satisfied: future>=0.17.1 in c:\users\julian holcroft\appdata\local\programs\python\python38\lib\site-packages (from serial) (0.18.2) Requirement already satisfied: iso8601>=0.1.12 in c:\users\julian holcroft\appdata\local\programs\python\python38\lib\site-packages (from serial) (1.0.2) Requirement already satisfied: pyyaml>=3.13 in c:\users\julian holcroft\appdata\local\programs\python\python38\lib\site-packages (from serial) (5.4.1) Unable to load or install pyserial. Make sure you have internet connection and administrator privileges Unexpected error: Traceback (most recent call last): Unexpected error: File "C:\RoboDK\Python\robodk\robolink.py", line 492, in import_install Unexpected error: exec('import ' + module_name, globals()) Unexpected error: File " Unexpected error: ModuleNotFoundError: No module named 'pyserial' Unexpected error: Unexpected error: During handling of the above exception, another exception occurred: Unexpected error: Unexpected error: Traceback (most recent call last): Unexpected error: File "C:\RoboDK\Python\robodk\robolink.py", line 526, in import_install Unexpected error: exec('import ' + module_name, globals()) Unexpected error: File " Unexpected error: ModuleNotFoundError: No module named 'pyserial' Unexpected error: Unexpected error: During handling of the above exception, another exception occurred: Unexpected error: Unexpected error: Traceback (most recent call last): Unexpected error: File "C:/RoboDK/api/robot/AR2Driver.py", line 26, in Unexpected error: exec("from v" + version_str + ".AR2Driver import *") Unexpected error: File " Unexpected error: File "C:\RoboDK\api\robot\AR2Driver.py", line 12, in Unexpected error: import os Unexpected error: File "C:\RoboDK\api\robot\AR3Driver.py", line 26, in Unexpected error: exec("from v" + version_str + ".AR3Driver import *") Unexpected error: File " Unexpected error: File "C:\RoboDK\api\robot\AR3Driver.py", line 67, in Unexpected error: File "C:\RoboDK\Python\robodk\robolink.py", line 534, in import_install Unexpected error: raise Exception(msg) Unexpected error: Exception: Unable to load or install pyserial. Make sure you have internet connection and administrator privileges Stopped Here are the connection settings I am using RE: AR2 not connecting-Albert-09-27-2022 Do you have internet connection when you try to connect to the robot? If so, can you try connecting to your AR robot again after starting RoboDK with Administrator privileges? It looks like the Pyserial module can't be installed for Python. RE: AR2 not connecting-Julian Holcroft-09-27-2022 i do have internet and I was also running in administrator I am on windows 10. RE: AR2 not connecting-smolloy-09-09-2023 I am hitting this exact same error, trying to connect via serial to an Annin AR4 - and I poked around in the python code a bit to see if there was an easy answer, but at least for me, there is not. Has anyone hit, and solved, this issue? I am not sure if it's directly related to the robot type or not, as it appears to be caused by some problem in the way libraries are called for and installed. Specifically, the "pyserial" module doesn't appear when the code runs a "pip install serial". I am also on Windows, and running as admin or not makes no difference it seems. |