Skip to main content

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

  • August 25, 2022
  • 2 replies
  • 346 views

Sahil
Forum|alt.badge.img+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

yuan.chen
Zemax Staff
Forum|alt.badge.img+3
  • Zemax Staff
  • 278 replies
  • June 13, 2023

jwbeenakker
  • Visible
  • 28 replies
  • June 13, 2023

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)