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

Tests no longer work in Windows #375

Open
Dimosts opened this issue Jul 4, 2023 · 4 comments
Open

Tests no longer work in Windows #375

Dimosts opened this issue Jul 4, 2023 · 4 comments

Comments

@Dimosts
Copy link
Collaborator

Dimosts commented Jul 4, 2023

Tests do not work in windows machines any more. That is due to trying to import exact, which leads to an error.

Also, exact does not work in windows for the same reason.

@tias
Copy link
Collaborator

tias commented Jul 7, 2023

exact's supported() properly has a try/except, so that should be fine. Also all tests have a 'skipif' guard as they should

Which test is failing?

@Dimosts
Copy link
Collaborator Author

Dimosts commented Aug 30, 2023

If I remove all exact references from tests, + remove exact from base solvers, tests complete normally. So, it is a problem with exact.

Inspecting it a bit more, it seems that it fails everytime it tries to import exact, throwing the following errors:

  • Windows fatal exception: access violation
  • fatal error: 'new' file not found
  • fatal error: 'vcruntime.h' file not found

@Wout4
Copy link
Collaborator

Wout4 commented Sep 7, 2023

It is indeed exact that does not work on windows

@Dimosts
Copy link
Collaborator Author

Dimosts commented Sep 7, 2023

I have examined it a bit more.

So, exact imports cppyy. It needs cppyy version 2.4.1 and does not work with the newst version which is 3.0.0.

cppyy version 2.4.1 needs clang9. Newer versions of MSVC in windows stopped supporting clang9. Having this, it yields a windows fatal error which cannot be handled as an import error.

Thus, everoyne that has updated MSVC the last 2 years, will have this error.

Personally I solved it by going my MSVC back to a version of 2019, and now I can run tests. However, I still cannot use exact in windows, as there is now a conflict with another library (boost, c++ linrary this time), which however causes import error in exact, being hangled by try/except.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants