Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apps:python:start [2023/03/12 22:00] – [Make sure all required packages and modules are existing and matching] enviadminapps:python:start [2023/03/12 22:15] (current) – [Python for ENVI-met] enviadmin
Line 1: Line 1:
 ====== Python for ENVI-met ====== ====== Python for ENVI-met ======
  
-Starting with Version 5, ENVI-met integrates scrpting and analysis using the powerful Python system.+Starting with Version 5, ENVI-met integrates scripting and analysis using the powerful Python system. This has become possible mainly thanks to the development of the excellent Python API header translation and wrappers  //Python for Delphi (P4D)// ([[https://github.com/pyscripter/python4delphi|GitHub Link]]).  P4D is licensed under the MIT license. ENVI-met Python Scripts are either MIT licensed or, like this manual, Creative Common BY-NC-SA 4.0, whichever is the less restrictive in use.  
  
-Over the last years, Python has established itself as universal scripting language for all thinkable use cases. Python covers an endless list of areas of expertise rangeing from data analysis and visiualision, application scripting or AI engineering. +Over the last years, Python has established itself as universal scripting language for all thinkable use cases. Python covers an endless list of areas of expertise ranging from data analysis and visualisation, application scripting or AI engineering. 
 To cut a long story short, there is almost no thinkable area of computer science where we might miss Python versions or Python integrations of the up-to-date code libraries or cutting edge technologies. To cut a long story short, there is almost no thinkable area of computer science where we might miss Python versions or Python integrations of the up-to-date code libraries or cutting edge technologies.
  
-From the perspecitve of ENVI-met, there are numerous ways we can benefit form the Python developements:+From the perspective of ENVI-met, there are numerous ways we can benefit form the Python developments:
   * Processing, Analysis and Visualisation of model data   * Processing, Analysis and Visualisation of model data
-  * Controlling and scripting the behaviour of ENVI-met applicatons+  * Controlling and scripting the behaviour of ENVI-met applications
   * Extending the data interfaces of applications using Python libraries and packages       * Extending the data interfaces of applications using Python libraries and packages    
  
Line 34: Line 34:
  
 Well, that's not possible.  Well, that's not possible. 
-Any script can use its own set of required modules and libraries and the libs between each other may have dependencies, sometimes there are (version) conflicts not resolvable. +Any script can use its own set of required modules and libraries and the libs between each other may have dependencies, sometimes there are (version) conflicts which are not resolvable. 
-This is issue related to programming in Python (or to programming in general) and it cannot be solved by ENVI-met.  This normally does not apply to scripts shipped with ENVI-met, but even here, updates to some packages can result in crushing default scripts or bad dependencies between scripts. +This is an issue related to programming in Python (or to programming in general) and it cannot be solved by ENVI-met.  This normally does not apply to scripts shipped with ENVI-met, but even here, updating single packages can result in crushing the command pipeline even in default scripts or bad dependencies between scripts may occure
  
-With BETA 3, you can add a list of required special modules in the script header and DataStudio will check, if they exists. If not (-and if selected as option-) DataStudio will automatically launch PIP and tries to install the missing modules and packages. We labelled these modules as //Special Modules// because modules which are not basically a part of Python, but are so basic that they need to exist on any system (such as NumPy or Pandas) will probably not be extra-listed in the Required Modules section.  +With BETA 3, you can add a list of required special modules in the script header and DataStudio will check, if they exist. If not (-and if selected as option-) DataStudio will automatically launch PIP and tries to install the missing modules and packages. We labelled these modules as //Special Modules// because modules which are not basically a part of Python, but are so basic that they need to exist on any system (such as NumPy or Pandas) will probably not be extra-listed in the Required Modules section.  
  
 However, there is no guarantee, that this install will be successful or that ALL of the required special modules have been listed in the header and that their versions will work together. If in doubt, you need to check the script in detail and go back to its sources to find out, what is missing. However, there is no guarantee, that this install will be successful or that ALL of the required special modules have been listed in the header and that their versions will work together. If in doubt, you need to check the script in detail and go back to its sources to find out, what is missing.