Unexpe"> Connection To Leica : python errorImport Error: No module named 'clr' - Printable Version - 英格兰vs伊朗谁会赢?
RoboDK Forum
Connection To Leica : python errorImport Error: No module named 'clr'可打印版本

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Connection To Leica : python errorImport Error: No module named 'clr' (/Thread-Connection-To-Leica-python-errorImport-Error-No-module-named-clr)



Connection To Leica : python errorImport Error: No module named 'clr'-cotegNRC-10-07-2021

Hi,

When I try to connect to leica I have the following message in log:

Unexpected error: Traceback (most recent call last):
Unexpected error: File "C:/RoboDK/api/Leica/LeicaTrackerPilot.py", line 694, in
Unexpected error: import clr
Unexpected error: ImportError: No module named 'clr'
Stopped

I tried to uninstall robodk and Python and reinstalled it. This seems a problem with python.net installation?
Thanks for the help


RE: Connection To Leica : python errorImport Error: No module named 'clr'-cotegNRC-10-07-2021

Problem solved :

It seems that when 'Install-Pythonnet.bat' was called by roboDK installer the path to python.exe was wrong. In the command prompt (cmd.exe) I ran 'python.exe -m pip install pythonnet“摇来摇去m directoryRoboDK\Python37.


RE: Connection To Leica : python errorImport Error: No module named 'clr'-Albert-10-07-2021

Perfect! Thank you for reporting this issue.

We'll update RoboDK to provide a better error message to point in the right direction.