Skip to main content

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


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

Did this topic help you find an answer to your question?

2 replies

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

jwbeenakker
yuan.chen wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings