Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

RoboDK searching for installed package in wrong place

#1
Using the default Python executable I have pip-installed the modbus-scale-client package, which now resides in the C:\RoboDK\Python-Embedded\Lib\site-packages directory. If I locate my Python program in the Python-Embedded directory and run it from the command line, it works as expected.

However, if I add the same Python program to the RoboDK station tree, when I right-click on the program and attempt to run it, RoboDK complains that it cannot find the modbus_scale_client package because it is looking for it in my ..\AppData\Local\Temp\ directory.

Why is this, and how do I stop this annoying behaviour?
#2
RoboDK adds the following folder to the Python path:
C:/RoboDK/Python

Runnin Python from RoboDK probably prioritized the Python packages found in that folder. So one option is to delete the contents of this folder.

You could optionally leave the robodk folder inside that folder to maintain the RoboDK API. Or you could simply install the RoboDK API by using "pip install robodk".
  




Users browsing this thread:
1 Guest(s)