Python 3.10 not recommended to use for ZOSAPI-Python Interactive or Standalone application

  • 25 August 2022
  • 2 replies
  • 280 views

Userlevel 4
Badge +1

Hello,

Python's latest version 3.10 was released a few days back. Our ZOSAPI- Python User updated Python's older version to 3.10 which is not recommendable for Python Interactive and Standalone ZOSAPI -Python. The Pythonnet library which connects CLR of ZOS API dll to Python has not been updated for Python 3.10. So, if you find customers using Python 3.10 or Python 3.9. It would be better to use python 3.7 or Python3.8. As Pythonnet works well with these versions.

As you can see after installing Pythonnet getting Attribute error Addrefrence.

Attribute Error

Thanks

Sahil


2 replies

Userlevel 5
Badge +3

Update~

PythonNET 3.x is "Fixed" | Zemax Community

Userlevel 3

If your application/client require the use of a more modern version of Python, you could consider using ZOSPy, which resolved the issues with the .NET library and has been tested with Python 3.10 (and 3.11)

Reply