ModuleNotFoundError when using import datalayer

Hello, colleague;

I am very intereasting in python with ctrlX. I have already installed the python app in my virtual controller.

some guys show me a example write by python,

the first line is " import Datalayer"

when I try to import Datalayer, it will throw out "ModuleNotFoundError".

Is this module have already installed in the Virtal control?  Or should I do something special seeting?

Thank you very much!

 

Best reply by CodeShepherd

Please first of all update your system to the release RM21.03 version (1.8) and also use the first official release 1.8 of the IDE app (former known as TIGER). The older version are prototypes including some known issues.

Further more there are two ways of running a script in the textual coding editor in the IDE app:

1) Run the script directly in the browser:

  • The signatures of the system functions are available and can be imported for programming purposes, like syntax highlighting and auto completion.


  • The interpreter integrated in the IDE app is used.


  • But the functions that should be called by the signatures are not available so this cannot run at the moment.

2) Run the script on the ctrlX CORE:

  • The signatures of the system functions are available and can be imported for programming purposes, like syntax highlighting and auto completion. Like above.

  • The interpreter of the python runtime on the ctrlX CORE is used.

     

  • Here the functions used in the code are part of and known by the python runtime in the system. So the import lines should be commented.


P.S.: The link in your post isn't working.

View original
9 replies