Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTK dependency is very strict #94

Closed
RobPasMue opened this issue Aug 1, 2022 · 8 comments · Fixed by #99
Closed

VTK dependency is very strict #94

RobPasMue opened this issue Aug 1, 2022 · 8 comments · Fixed by #99
Assignees
Labels
question Further information is requested

Comments

@RobPasMue
Copy link
Member

I am currently working on the PyAnsys metarepo (ansys/pyansys#35) for allowing the import of all public PyAnsys libraries. I am having conflicts between this library and pyansys/pydpf-post(core), due to VTK requirements. Apart from the fact that we are imposing the use of an old version on DPF (which we should change if possible - see ansys/pydpf-post#107) I was also wondering why pyfluent-visualization imposes the use of VTK 9.1.0 exclusively. It seems like the use of any other version of VTK causes incompatibility problems with this library.

Is there any reason for strictly requesting version 9.1.0 in your pyproject.toml file?

Pinging @dnwillia-work and @seanpearsonuk for discussion.

@RobPasMue RobPasMue added the question Further information is requested label Aug 1, 2022
@dnwillia-work
Copy link
Collaborator

Yes, I'm not certain. Besides Sean @ajain-work might also know.

@ajain-work
Copy link
Collaborator

@RobPasMue I was getting random crashes. Frequency of crashes increased after I downgraded version. So I kept version to 9.1.0.

11 17:47:03.118 ( 2.222s) [ ]vtkWin32OpenGLRenderWin:713 ERR| vtkWin32OpenGLRenderWindow (000002B3289DCA00): failed to get valid pixel format.

However nobody else has reported this issue. It could be specific to my machine. May be we can remove strict VTK dependency.

@RobPasMue
Copy link
Member Author

I would suggest trying to loosen the requirement if possible. Setting a minimum VTK req is fine, but it should not be the latest version only. Again, if possible. I have opened a PR in https://github.com/pyansys/pyansys-landing (ansys/pyansys#38) for when this is solved. As I mentioned, problem right now is DPF forcing to be lower than 9.1.0. If you could manage to work from an earlier version (for example, >=9.0.3), that'd work.

@RobPasMue
Copy link
Member Author

And again, the problem is not strictly with you guys. It's just that strictly forcing a requirement typically leads to conflicts.

On the other hand, restricting dependencies on the upper range, that is <=, < (as DPF is doing), is also not a good practice, but we will have to solve that on their repo.

Lower range restrictions regarding dependencies, that is >=, >, should be set (if possible) at the minimum compatible version.

@ajain-work ajain-work linked a pull request Aug 8, 2022 that will close this issue
@RobPasMue
Copy link
Member Author

When the linked issue is solved, a new release would be needed. It can be a patch release if you prefer, since the involved changes are not that big. Thanks for taking care of it @ajain-work!

@RobPasMue
Copy link
Member Author

@dnwillia-work @ajain-work @mkundu1 @seanpearsonuk

In order to solve the issue we have to create a release taking into account this change. Would you be in favor of doing a patch release?

@RobPasMue RobPasMue reopened this Aug 9, 2022
@dnwillia-work
Copy link
Collaborator

Yes that makes sense to me.

@RobPasMue
Copy link
Member Author

Great. If you want me to do it, I'll go ahead and do so. It's fine by me! Happy to help

@RobPasMue RobPasMue self-assigned this Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants