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

ImportError: DLL load failed while importing _jpype: The specified module could not be found. #1189

Closed
muhammedrinshid opened this issue May 27, 2024 · 2 comments

Comments

@muhammedrinshid
Copy link

Hi everyone,

I'm encountering an issue when trying to use the optapy library in my Python project. Specifically, I'm getting an ImportError related to JPype when I attempt to import optapy. Here are the details of the error:

File "", line 1, in
File "C:\Users\admin\Desktop\optapyTest\optapy-env\lib\site-packages\optapy_init_.py", line 11, in
from .annotations import *
File "C:\Users\admin\Desktop\optapyTest\optapy-env\lib\site-packages\optapy\annotations.py", line 1, in
import jpype
File "C:\Users\admin\Desktop\optapyTest\optapy-env\lib\site-packages\jpype_init_.py", line 18, in

import _jpypeImportError: DLL load failed while importing _jpype: The specified module could not be found.

Operating System: (e.g., Windows 11)
Python Version: ( Python 3.9.10)
Java Version: (openjdk 21.0.3 2024-04-)

@Thrameos
Copy link
Contributor

Your install of JPype is incomplete. Likely it was copied in such a way that it does not include the C++ based support module. Uninstall JPype and reinstall it again so that it can hopefully install the missing piece.

@ryanmkurtz
Copy link
Contributor

I reported a similar error in a ticket that is still open.

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