Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Python modules version



The pythonModule.py and pythonUtils.py scripts must change when the communication between Java and Python is upgraded.

The Python modules version is provided by the Framework as a launch argument when starting the Python process. The pythonModule.py script check if its own version is compatible with the version proviced by Java. This means that you normally should replace the pythonModule.py and pythonUtils.py scripts if the Python modules version changes.

For the moment, there are several possible version to choose only for Python socket modules. Python http modules only have one possible version.

Using a lower Python module version

It is possible to use a previous version for a Python module by setting the compatibility attribute:
  • Setting to value to 14 or 1.4 use the 1.4 Python version
  • Setting to value to 15 or 1.5 use the 1.5 Python version


For example:
      <pythonModule name="module1">
         <pythonImplementation path="pythonAppli" compatibility="13" />
      ...
      </pythonModule>

Version history

The following table presents the versions of the communication protocol (and of the pythonModule.py and pythonUtils.py scripts) for each framework release.
Release Python Modules version Comment
0.6.27.1 1.6 Allow to communicate with a TCP protocol
0.6.21 1.5 Allow to use any class name for the Python module
0.6.18 1.4 Allow to use properties in Python modules
The "ignorePythonWarnings" property now also ignore user warnings
0.6.13 1.3 -
0.6.10 1.2 Support arbitrary level of structures and arrays
0.6.9 1.1 Allow to subscribe to more than one service
0.6.10 1.2 -
0.6.13 1.3 -

See also


Categories: concepts | python

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence