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

DLL load failing for windows platform and python >=3.9.8 and 3.10 #552

Closed
1 task done
petrushy opened this issue Feb 7, 2022 · 2 comments
Closed
1 task done

DLL load failing for windows platform and python >=3.9.8 and 3.10 #552

petrushy opened this issue Feb 7, 2022 · 2 comments

Comments

@petrushy
Copy link

petrushy commented Feb 7, 2022

Issue:

JCC-feedstock tests are failing due to not finding DLL files in windows, when python version is 3.10 or 3.9.8 or higher. 3.9.7 works. This is related to orekit-feedstock as well, which uses JCC to build. With orekit (currently version on conda-forge) it can be seen that if manually downgrading python to 3.9.7 (no other packages) it works, while at 3.9.9 it does not. It work well on other platforms.

Issue for JCC: conda-forge/jcc-feedstock#58
PR for debugging: conda-forge/jcc-feedstock#58

Any help appriciated

@isuruf
Copy link
Member

isuruf commented Feb 7, 2022

Python 3.8 changed the DLL resolution order https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
We reverted this patch as many extensions were failing, but restored this behaviour in 3.9.9+ and 3.10.0+
as enough time had passed since this change in cpython upstream.
You should use os.add_dll_directory to add the path to the jvm.dll to the top of jcc\__init__.py.

@isuruf isuruf closed this as completed Feb 7, 2022
@petrushy
Copy link
Author

Many thanks! Works indeed!

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

2 participants