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

Conda installation: Unable to load native library #438

Closed
stachlewski opened this issue Aug 19, 2019 · 2 comments
Closed

Conda installation: Unable to load native library #438

stachlewski opened this issue Aug 19, 2019 · 2 comments
Labels

Comments

@stachlewski
Copy link

Trying to run the example from:
https://pyjnius.readthedocs.io/en/stable/packaging.html

The code runs correctly without pyinstaller.
With pyinstaller used (which otherwise works correctly), the resulting executable fails when run with:

Error occurred during initialization of VM Unable to load native library: �

(ASCII code 01 after the colon.)

Where do I go from here?

Env:
Windows Server 2019
Anaconda: Python 3.7.3, PyInstaller (conda-forge) 3.5, PyJnius (conda-forge) 1.2.0.
JAVA_HOME set to OpenJDK installed by conda <...>\Anaconda3\envs\fullconda\Library
PATH contains <...>\Anaconda3\envs\fullconda\Library\bin\server

@stachlewski
Copy link
Author

I've tried doing the same with an installation of JDK8 and JDK11 along with a 64bit Python3.7.4, installing dependencies by pip.
The result is mostly the same. I managed to run the example after processing with pyinstaller only after removing jvm.dll from the dist directory. Yet a larger program still crashes with what looks like a buffer overflow.
Unable to load native library: Ş{Ć▒�

@github-actions
Copy link

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants