[
https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523325#comment-17523325
]
Petrus Hyvönen commented on PYLUCENE-62:
----------------------------------------
Hi Andi,
Yes, I can confirm that HEAD is working with my wrapping test cases and main
project (non-shared mode).
I am not using shared mode, did a quick test (windows) of adding --shared and
it failed when wrapping in the test case with "LINK : fatal error LNK1181:
cannot open input file '%PREFIX%\lib\site-packages\jcc3\jcc3.lib". The file
jcc3.lib is in the package. But I haven't looked more into it.
In my test case suite, I removed the test of "import jcc" on windows as this
standalone does not work if server is used and py>3.8 (directly gives dll not
found). This is a bit unexpected behavour from the user I would expect, but
most acutal usage is likely from the command line. The solutions to this, if
needed, is as I see either to introduce another environment variable or to
search both server & client. But practically it works as is now.
Many thanks
/Petrus
> Not finding jvm.dll on windows
> ------------------------------
>
> Key: PYLUCENE-62
> URL: https://issues.apache.org/jira/browse/PYLUCENE-62
> Project: PyLucene
> Issue Type: Bug
> Reporter: Petrus Hyvönen
> Priority: Major
> Attachments: add_dll_win-1.patch, add_dll_win.patch,
> fixes_with_inclusion _of_windows_module.patch, jvm_dll.diff, small_fixes.patch
>
>
> On recent versions of Python, the dll's seems to require to be added via the
> os.add_dll_directory() function.
>
> Apparently something changed in Python 3.8 regarding this, "Python 3.8
> changed the DLL resolution order
> [https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew]"
> Thanks to:
> [https://github.com/conda-forge/python-feedstock/issues/552]
>
> Proposed fix in a patch below. It can likely be rewritten in some more neat
> way. :)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)