pyjnius icon indicating copy to clipboard operation
pyjnius copied to clipboard

Conda installation: Unable to load native library

Open stachlewski opened this issue 5 years ago • 1 comments

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 avatar Aug 19 '19 13:08 stachlewski

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: Ş{Ć▒

stachlewski avatar Aug 19 '19 21:08 stachlewski

👋 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.

github-actions[bot] avatar Oct 28 '23 02:10 github-actions[bot]