I’m failing to run the Jpype wrapper on a Windows machine.
I have a .venv on Pycharm with orekit-jpype installed
When I run the following script:
import orekit_jpype as orekit
orekit.initVM()
if __name__ == '__main__':
pass
I get the following error:
Error occurred during initialization of VM
Could not find agent library instrument on the library path, with error: La proc�dure sp�cifi�e est introuvable
Module java.instrument may be missing from runtime image.
Process finished with exit code 1
I’ve got Java 21 on my machine and if I do jpype.getDefaultJVMPath() it’s giving its location.
A new version of orekit-jpype, 12.2.1.1, was pushed to PyPi (thanks Petrus!). It now depends on jpype version 1.5.0 while waiting for a new jpype release containing the fix.
Thanks for the information, I updated the corresponding ticket in the orekit jpype gitlab: Jpype 1.5.1 does not work on Windows (#12) · Issues · Orekit / orekit_jpype · GitLab
We’ll have to wait until a new jpype version (probably 1.5.3) is released indeed until we can release a new orekit jpype version with the updated jpype version.