Skip to main content
Solved

ZOS-API supporting Python 3.10 and python.Net 3.0?


Hans Martinsson

Hi,

The other day python.Net version 3.0.0, supporting Python 3.10, was released. Hence, I’m curious to hear when we can expect ZOS-API to support this very much appreciated combo.

Best regards,

Hans

Best answer by David.Nguyen

Hi Sandrine,

 

@svilches reported an issue with ZOS-API Standalone Example 2 in this post, and going from Python.net 3.0.0 to 2.5.2 solved the issue it seems. So, it could be that it doesn’t support .NET 4.8 yet.

Take care,

 

David

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

10 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • October 3, 2022

Hi Hans,

 

I kinda want to know as well now.

I’ve read about the match case statement in Python 3.10. What else are you interested in this combo?

Take care,

 

David


Hans Martinsson

Hi David,

Yes, match-case statement is very interesting.

But as someone who’s switching from 30 years with Matlab to Python, better error syntax and typing syntax is much appreciated. After all, 3.8 was released 3 years ago :)

/Hans


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • October 3, 2022

Hi Hans,

 

It makes sense.

Kudos to you for switching programming langage after 30 years. It speaks about your open-mindeness.

Good luck on your Python journey,

 

David


Forum|alt.badge.img+2

Hi David and Hans

I checked with our developers. The ZOS-API is a .NET 4.8-based library.
So if Python.net 3.0 supports .NET 4.8, then it should work without any issues. And Python.NET is compatible and tested with Python releases 3.7 - 3.10.

But we haven’t done any specific tests.


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • Answer
  • October 6, 2022

Hi Sandrine,

 

@svilches reported an issue with ZOS-API Standalone Example 2 in this post, and going from Python.net 3.0.0 to 2.5.2 solved the issue it seems. So, it could be that it doesn’t support .NET 4.8 yet.

Take care,

 

David


Hans Martinsson

Thanks Sandrine and David,

Seems like it’s best to wait a bit and let things converge first.

Cheers, Hans


Forum|alt.badge.img+2

Hi David! Thank you for pointing this. I had missed it.

All I can see that it says Python.NET gives “a nearly seamless integration with the .NET 4.0+ Common Language Runtime (CLR)”.


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • October 14, 2022

I’d like to add that @Asuku also had an issue with the most recent Pythonnet version in this thread with the FFT MTF diffraction data. Since this is the third user I see that had this problem, I think it would be good to have a note on the community somewhere visible to warn people against using Pythonnet 3.0 for now. What do you think @Allie and @Sandrine Auriol ?

Take care,

 

David


Forum|alt.badge.img+2

Hi @David.Nguyen ! Yes fully agree. I have done one below. I also had issues when testing last week with Pythonnet 3.0. 
Thank you all on this forum thread for starting this conversation.
 

 


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • December 15, 2022

One more thread with an issue using Pythonnet 3.0: 

Take care,


David


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