GithubHelp home page GithubHelp logo

Comments (5)

LucVV avatar LucVV commented on September 28, 2024

Hi @julian-irwin-tfs,

Thank you for this report. Am I correct in assuming you are using Python.NET 3.0?
I ran into the same problem when updating to pythonnet 3.0. I started recoding several parts of the package but ran into similar problems with other calls to the API that were not fixable on the ZosPy side. Furthermore, the Zemax Staff recommended not using pythonnet 3.0.

Since I ran into things I could not fix, I decided to wait until further updates from Zemax OpticStudio or Python.Net before changing the code and rather made Python.Net 2.5.2 required.

Could you let me know which Python.Net version you are on?

from zospy.

julian-irwin-tfs avatar julian-irwin-tfs commented on September 28, 2024

I am indeed using pythonnet 3.0.1.

I will work harder to get an older version of pythonnet up and running. Thanks so much for letting me know that Zemax Staff believe 3.0 is not supported.

Also, thanks for the very nice python wrapper of ZOS API. It is a rather confusing API and I can tell that ZOSpy is going to get me up and running very quickly!

from zospy.

julian-irwin-tfs avatar julian-irwin-tfs commented on September 28, 2024

There is only pythonnet==2.5.2 support up through Python 3.8. I had only tried down to 3.9 when I submitted these issues. Everything seems to be working now. Sorry to bother you even though you had this exact advice posted on the front page!

from zospy.

LucVV avatar LucVV commented on September 28, 2024

No worries! I hope the use of 3.8 does not hamper you too much! I'll update the readme to state this requirement more specifically for now

from zospy.

crnh avatar crnh commented on September 28, 2024

The Int to Enum conversion issue is already fixed in most of the code base, and will be fully fixed in an upcoming version of ZOSPy.

We updated the documentation to point to a more relevant problem caused by Python.NET 3.x (which we also hope to fix soon).

from zospy.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.