FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
08-18-2023 04:15 PM
I was trying sevral examples for python scripts and tried running them in the IDE. In this purthicular example I am trying to run a mqqt broker code where the script calls the module 'paho'. I checked the paho module is in the scripts.bosch.libraries directory. I am saving the sample scripts in script folder. I am getting 'No module found error with most of the examples'.
what might be problem? thanks for your time
Solved! Go to Solution.
08-19-2023 09:38 AM
Just to be sure you are executing the script in your browser not on the ctrlX CORE (via F5 or debugger "Python: Current File")?
As library is no system one did you try to use:
from phao import mqttq.client as mqtt
08-21-2023 11:53 AM
Yes I am running the script in the IDE in the browser. I tried dirrferent imports like
08-23-2023 02:33 PM
Ciao,
Which version are you using (both python and IDE)? it is working super smootly
08-23-2023 08:29 PM
I reinstalled the ide and python and it seems to be working now. Thanks!