You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; Without changing import-mode, I get a ClassNotFoundException. Changing import-mode to importlib, all tests pass successfully and no error is logged.
JPype has a JImport module that adds an additional module loader for java packages and classes: https://jpype.readthedocs.io/en/latest/imports.html#jimport . This module is used with OptaPy, so there is a chance the standard import-mode of Pytest does not like it.
Thanks for the hint, but this option does not change anything. However, while reading through the JPype documentation, I found the section Errors reported by Python fault handler. It suggests to deactivate the Python fault handler when working with the JVM.
When I add the suggested fixture, my test runs without any error. Maybe OptaPy also makes use of this or something similar? Feel free to close this issue as it works for me now.
Without pytest, everything works like a charm. However, when running some tests with pytest, I get the following error:
The stack trace shown here is shortened for readability. I was able to reproduce the issue with the following code and command:
Python
Command
It seems that starting the JVM fails somehow. Let me know if I can add anything more to help, I am no Java expert though.
The text was updated successfully, but these errors were encountered: