-
Notifications
You must be signed in to change notification settings - Fork 150
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
Can't find dependent libraries #517
Comments
It looks like you are using a virtual environment. Make sure your virtual environment is active before starting your java program. #513 may have some information that can help you. |
Hi, I have the same issue and none of the proposed solutions worked for me. @MrBlazer335, were you able to solve it? |
Got this issue running jep under Windows with Python 3.12 in a virtual environment. I was correctly adding the folder with jep.dll to PATH environment variable. But it was still complaining "Can't find dependent libraries". Turns out I also needed to add the folder containing python312.dll to the PATH as well. My final PATH environment variable ended being:
Then it worked |
Thanks for your quick response! There was indeed an issue with Python's DLL not being present in the PATH. To be more precise, the issue was that there was only Microsoft Store Python installed on my machine, which does not provide the DLL. The solution was to install Python from its website and the PATH was automatically updated accordingly. Having fixed the problem, I've got SharedInterpreter.setConfig(
new JepConfig()
.addIncludePaths(Paths.get("<path_to_venv>/Lib/site-packages/jep/").toString)
) to my code. That resolved into EDITThe last error was caused by pointing to the jep directory itself and not to the directory containing the jep directory, as stated here. With SharedInterpreter.setConfig(
new JepConfig()
.addIncludePaths(Paths.get("<path_to_venv>/Lib/site-packages/").toString)
) everything works now. |
I am having the same issue. The above suggestions of path setting and edits to JepConfig did not work. Has anyone tried anything else. My application ships with an embedded python for windows environments where python is not installed. When I unpack this and try to get a new SharedInterpreter() I get Java.lang.UnsatisfiedLinkError. I am correctly adding the jep.dll path for System.load(jepLibraryPath) call in MainInterpreter.initialize() via MainInterpreter.setJepLibraryPath(jepPath). I have tried the System PATH edit as well as add the JepConfig.addIncludePaths with all the paths in my python package (Lib, Scripts, libs, Lib\site-package, include, DLLs) I have tried this with a minimalist embedded .zip python and complete python312 build. Exception in thread "Thread-154" java.lang.UnsatisfiedLinkError: C:\vapData***.vap\py\vi_venv\Lib\site-packages\jep\jep.dll: Can't find dependent libraries Any thoughts? |
Describe the problem
Environment (please complete the following information):
Windows 10
3.12
21
4.2.0
numpy
The text was updated successfully, but these errors were encountered: