[jira] [Resolved] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-70. Resolution: Fixed fixed in rev 1916468. > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch, jcc_python.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17827808#comment-17827808 ] Petrus Hyvönen commented on PYLUCENE-70: Hi Andi, Confirmed, ran it through my test pipeline and it works (https://github.com/conda-forge/jcc-feedstock/pull/79/checks) BTW, Many thanks for the 3.14 release with --generate ! > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch, jcc_python.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17827781#comment-17827781 ] Andi Vajda commented on PYLUCENE-70: Hi Petrus, thank you for the bug report and patch. Please, test the attached jcc_python.patch file that handles more than just package_dir and switches to using r"strings" where \ chars are not a problem. I don't have access to Windows, your help in verifying this patch is appreciated ! > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch, jcc_python.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda updated PYLUCENE-70: --- Attachment: jcc_python.patch > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch, jcc_python.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17827780#comment-17827780 ] Petrus Hyvönen commented on PYLUCENE-70: Added suggested patch, there is probably some neater way to do this. > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-70: --- Attachment: issue_escape_package_dir.patch > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > Attachments: issue_escape_package_dir.patch > > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-70: --- Description: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: package_dir={"test1": "build\test1"}, But should be: package_dir={"test1": "build\\test1"}, was: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}test2"\{color}}, But should be: {{ package_dir}}{color}{{{}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color},{}}} {{ }} > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > >package_dir={"test1": "build\test1"}, > > But should be: > package_dir={"test1": "build\\test1"}, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-70: --- Description: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}test2"\{color}}, But should be: {{ package_dir}}{color}{{{}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color},{}}} {{ }} was: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}test2"\{color}}, But should be: package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > {color:#d4d4d4} > {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\{color}test2"\{color}}, > > But should be: > {{ > package_dir}}{color}{{{}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color},{}}} > {{ }} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-70: --- Description: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}{color:#d7ba7d}test2"{color}}, But should be: {color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, was: The --generate seems to be missing double \\ in package_dir parameter on windows platform In tests at JCC conda build feedstock (https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build{color}{color:#d7ba7d}\{color}{color:#ce9178}test2"{color}{color:#d4d4d4}},{color} But should be: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build{color}{color:#d7ba7d}\\{color}{color:#ce9178}test2"{color}{color:#d4d4d4}},{color} > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > {color:#d4d4d4} > {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\{color}{color:#d7ba7d}test2"{color}}, > > But should be: > > {color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-70) JCC --generate missing additional \ on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-70: --- Description: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}test2"\{color}}, But should be: package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, was: The --generate seems to be missing double in package_dir parameter on windows platform In tests at JCC conda build feedstock ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\{color}{color:#d7ba7d}test2"{color}}, But should be: {color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, > JCC --generate missing additional \ on windows > -- > > Key: PYLUCENE-70 > URL: https://issues.apache.org/jira/browse/PYLUCENE-70 > Project: PyLucene > Issue Type: Bug > Environment: Windows11, conda python package >Reporter: Petrus Hyvönen >Priority: Blocker > > The --generate seems to be missing double > in package_dir parameter on windows platform > In tests at JCC conda build feedstock > ([https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters]) > --generates gives a setup.py with row: > {color:#d4d4d4} > {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\{color}test2"\{color}}, > > But should be: > > package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: > {color}{color:#ce9178}"build\\{color}{color:#ce9178}test2"}{color}, > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-70) JCC --generate missing additional \ on windows
Petrus Hyvönen created PYLUCENE-70: -- Summary: JCC --generate missing additional \ on windows Key: PYLUCENE-70 URL: https://issues.apache.org/jira/browse/PYLUCENE-70 Project: PyLucene Issue Type: Bug Environment: Windows11, conda python package Reporter: Petrus Hyvönen The --generate seems to be missing double \\ in package_dir parameter on windows platform In tests at JCC conda build feedstock (https://github.com/conda-forge/jcc-feedstock/tree/main/recipe/test/java-example-test-parameters) --generates gives a setup.py with row: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build{color}{color:#d7ba7d}\{color}{color:#ce9178}test2"{color}{color:#d4d4d4}},{color} But should be: {color:#d4d4d4} {color}{color:#9cdcfe}package_dir{color}{color:#d4d4d4}={{color}{color:#ce9178}"test2"{color}{color:#d4d4d4}: {color}{color:#ce9178}"build{color}{color:#d7ba7d}\\{color}{color:#ce9178}test2"{color}{color:#d4d4d4}},{color} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-65) Support the default java on debian in `setup.py`.
[ https://issues.apache.org/jira/browse/PYLUCENE-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17815420#comment-17815420 ] Andi Vajda commented on PYLUCENE-65: on my rather old debian install and also on ubuntu 22.04, I get these packages when I search for default-java apt search default-java Sorting... Done Full Text Search... Done libplexus-container-default-java/jammy 2.1.0-1 all Plexus Inversion-of-control Container libplexus-container-default1.5-java/jammy 2.1.0-1 all Plexus Inversion-of-control Container (transitional package) which java are you referring to ? Does the fix you propose apply only to Debian and its derivatives ? > Support the default java on debian in `setup.py`. > - > > Key: PYLUCENE-65 > URL: https://issues.apache.org/jira/browse/PYLUCENE-65 > Project: PyLucene > Issue Type: Improvement >Reporter: A. Coady >Priority: Major > > On debian, the `default-java` package does not have `jre/lib/amd64` in its > path, so it breaks the `linux/x86_64` build. The `temurin` flags have the > correct paths, so one easy fix would be to change the [temurin > check|https://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/setup.py?revision=1900087=markup#l194] > to: > {code:python} > if 'temurin' in JDK['linux'] or 'default' in JDK['linux']: > {code} > That would also support `linux/aarch64` without any further changes. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-69) Linking libjvm seems to prevent PyPi upload
[ https://issues.apache.org/jira/browse/PYLUCENE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17815416#comment-17815416 ] Andi Vajda commented on PYLUCENE-69: Try with the latest but I doubt you'll be able to build a wheel that includes the JVM. > Linking libjvm seems to prevent PyPi upload > --- > > Key: PYLUCENE-69 > URL: https://issues.apache.org/jira/browse/PYLUCENE-69 > Project: PyLucene > Issue Type: Question >Reporter: Clément Jonglez >Priority: Major > > As mentioned in > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] , I am > trying to package the Orekit Python wrapper from [~petrush] (which uses JCC) > to PyPi. > I used the --wheel option to compile a wheel and not an egg, and I tried to > upload the wheel to PyPi. > But PyPi refuses my wheel with the answer : > {noformat} > Binary wheel 'orekit-11.3.3-cp312-cp312-linux_x86_64.whl' has an unsupported > platform tag 'linux_x86_64'. {noformat} > After reading about why this error occurs ( > [https://peps.python.org/pep-0513/#rationale] ) , I tried to convert the > wheel to a manylinux wheel by using: > > {code:java} > auditwheel repair dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned the following error: > > {noformat} > auditwheel: error: cannot repair > "dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl" to "manylinux_2_5_x86_64" > ABI because of the presence of too-recent versioned symbols. You'll need to > compile the wheel on an older toolchain.{noformat} > > I then ran the following command to get more information about which symbols > are problematic in the wheel: > > {code:java} > auditwheel-symbols --manylinux 2_34 > dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned: > > {noformat} > orekit/_orekit.cpython-312-x86_64-linux-gnu.so is not manylinux_2_34 > compliant because it links the following forbidden libraries: > libjvm.so{noformat} > > > I tried removing -ljvm from the LFLAGS list in jcc's config.py, but as > expected the Python program then fails on starting the JVM: > {noformat} > Traceback (most recent call last): > File "/media/ssd/git/orekit_python_artifacts/test/AbstractDetectorTest.py", > line 3, in > import orekit > File > "/home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/__init__.py", > line 7, in > from . import _orekit > ImportError: > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/_orekit.cpython-312-x86_64-linux-gnu.so: > undefined symbol: JNI_GetDefaultJavaVMInitArgs{noformat} > > I don't have any more clues... Alternatively, I could try to package the > Orekit Python wrapper as a source distribution (using > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-27] and > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] ), but > this would mean that a user would need to wait approx. 10 minutes for the > wheel to compile when running pip install... > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-68. Resolution: Fixed Fixed in HEAD. > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://github.com/pypa/setuptools/issues/917 for details. > > **** > !! > self.initialize_options() > > {noformat} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17815414#comment-17815414 ] Andi Vajda edited comment on PYLUCENE-68 at 2/7/24 7:51 PM: I looked into this issue a bit more now and setup.py is _not_ deprecated, see this [doc|https://packaging.python.org/en/latest/discussions/setup-py-deprecated/] for more about this topic. What is deprecated are _some_ of the commands usually passed to setup.py, such as install, which JCC uses, in some cases, when it invokes setup() directly (at the bottom of python.py). I fixed this now by adding support for a new --generate flag that supercedes --build and other such flags and, instead of calling setup() JCC produces a setup.py file for the extension. This setup.py file can then be used with modern python packaging tools such as build and pip. The pylucene build is being switched to this and the process to build PyLucene is then: - build and install jcc using the modern tools: - python -m build - python -m pip install --force - build pylucene: - set MODERN_PACKAGING to true in Makefile - make all which runs: - jcc is invoked with --generate - python -m build -nw - python -m pip install --force was (Author: vajda): I looked into this issue a bit more now and setup.py is _not_ deprecated, see this [doc|https://packaging.python.org/en/latest/discussions/setup-py-deprecated/] for more about this topic. What is deprecated are _some_ of the commands usually passed to setup.py, such as install, which JCC uses, in some cases, when it invokes setup() directly (at the bottom of python.py). I fixed this now by adding support for a new --generate flag that supercedes --build and other such flags and, instead of calling setup() JCC produces a setup.py file for the extension. This setup.py file can then be used with modern python packaging tools such as build and pip. The pylucene build is being switched to this and the process to build PyLucene is then: - build and install jcc using the modern tools: - python -m build - python -m pip install --force - build pylucene: - set MODERN_PACKAGING to true in Makefile - make all which runs: - jcc is invoked with --generate - python -m build -nw - python -m pip install --force > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. >
[jira] [Commented] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17815414#comment-17815414 ] Andi Vajda commented on PYLUCENE-68: I looked into this issue a bit more now and setup.py is _not_ deprecated, see this [doc|https://packaging.python.org/en/latest/discussions/setup-py-deprecated/] for more about this topic. What is deprecated are _some_ of the commands usually passed to setup.py, such as install, which JCC uses, in some cases, when it invokes setup() directly (at the bottom of python.py). I fixed this now by adding support for a new --generate flag that supercedes --build and other such flags and, instead of calling setup() JCC produces a setup.py file for the extension. This setup.py file can then be used with modern python packaging tools such as build and pip. The pylucene build is being switched to this and the process to build PyLucene is then: - build and install jcc using the modern tools: - python -m build - python -m pip install --force - build pylucene: - set MODERN_PACKAGING to true in Makefile - make all which runs: - jcc is invoked with --generate - python -m build -nw - python -m pip install --force > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://github.com/pypa/setuptools/issues/917 for details. > > **** > !! > self.initialize_options() > > {noformat} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-69) Linking libjvm seems to prevent PyPi upload
[ https://issues.apache.org/jira/browse/PYLUCENE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785302#comment-17785302 ] Clément Jonglez commented on PYLUCENE-69: - Thank you for the honest answer! I'll try uploading a source distribution to PyPi instead of binaries then. > Linking libjvm seems to prevent PyPi upload > --- > > Key: PYLUCENE-69 > URL: https://issues.apache.org/jira/browse/PYLUCENE-69 > Project: PyLucene > Issue Type: Question >Reporter: Clément Jonglez >Priority: Major > > As mentioned in > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] , I am > trying to package the Orekit Python wrapper from [~petrush] (which uses JCC) > to PyPi. > I used the --wheel option to compile a wheel and not an egg, and I tried to > upload the wheel to PyPi. > But PyPi refuses my wheel with the answer : > {noformat} > Binary wheel 'orekit-11.3.3-cp312-cp312-linux_x86_64.whl' has an unsupported > platform tag 'linux_x86_64'. {noformat} > After reading about why this error occurs ( > [https://peps.python.org/pep-0513/#rationale] ) , I tried to convert the > wheel to a manylinux wheel by using: > > {code:java} > auditwheel repair dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned the following error: > > {noformat} > auditwheel: error: cannot repair > "dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl" to "manylinux_2_5_x86_64" > ABI because of the presence of too-recent versioned symbols. You'll need to > compile the wheel on an older toolchain.{noformat} > > I then ran the following command to get more information about which symbols > are problematic in the wheel: > > {code:java} > auditwheel-symbols --manylinux 2_34 > dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned: > > {noformat} > orekit/_orekit.cpython-312-x86_64-linux-gnu.so is not manylinux_2_34 > compliant because it links the following forbidden libraries: > libjvm.so{noformat} > > > I tried removing -ljvm from the LFLAGS list in jcc's config.py, but as > expected the Python program then fails on starting the JVM: > {noformat} > Traceback (most recent call last): > File "/media/ssd/git/orekit_python_artifacts/test/AbstractDetectorTest.py", > line 3, in > import orekit > File > "/home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/__init__.py", > line 7, in > from . import _orekit > ImportError: > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/_orekit.cpython-312-x86_64-linux-gnu.so: > undefined symbol: JNI_GetDefaultJavaVMInitArgs{noformat} > > I don't have any more clues... Alternatively, I could try to package the > Orekit Python wrapper as a source distribution (using > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-27] and > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] ), but > this would mean that a user would need to wait approx. 10 minutes for the > wheel to compile when running pip install... > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Closed] (PYLUCENE-31) JCC Parallel/Multiprocess Compilation + Caching
[ https://issues.apache.org/jira/browse/PYLUCENE-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-31. -- Resolution: Fixed distutils is on its way out with Python 3.12 > JCC Parallel/Multiprocess Compilation + Caching > --- > > Key: PYLUCENE-31 > URL: https://issues.apache.org/jira/browse/PYLUCENE-31 > Project: PyLucene > Issue Type: Improvement > Environment: Linux 3.11.0-19-generic #33-Ubuntu SMP x86_64 GNU/Linux >Reporter: Lee Skillen >Priority: Minor > Labels: build, cache, ccache, distutils, jcc, parallel > Attachments: feature-parallel-build.patch > > > JCC utilises distutils.Extension() in order to build JCC itself and the > packages that it generates for Java wrapping - Unfortunately distutils > performs its build sequentially and doesn't take advantage of any additional > free cores for parallel building. As discussed on the list this is likely a > design decision due to potential issues that may arise when building projects > with awkward, cyclic or recursive dependencies. > These issues shouldn't appear within JCC-based projects because of the > generative nature of the build; i.e. all dependencies are resolved and > generated prior to building, and the build process itself is about > compilation and construction of the wrapper alone, of which the wrapper files > are contained to a sequence of flattened compilation units. > Enabling this requires monkey patching of distutils, which was also discussed > on the list as being a potential source of issues, although we feel that the > risk is likely lower than the current setuptools patching utilised. This > would be optional functionality that is also only enabled if the > monkey-patching succeeds. Distutils itself is also part of the standard > library and might be less susceptible to change than setuptools, and the area > of code monkey patched almost hasn't changed since 2002 (see: > http://hg.python.org/cpython/file/tip/Lib/distutils/ccompiler.py). > In addition to the distutils changes this patch also includes changes to the > wrapper class generation to make it more cache friendly, with the target > being that no changes in the wrapped code equals no changes in the wrapper > code. So any changes that minimally change the wrapped code mean that with a > tool such as ccache the rebuild time would be significantly reduced (almost > to a nth, where n is the number of files and only one has changed). > Obviously the maintainers would have to assess this risk and decide whether > they would like to accept the patch or not. Code has only been tested on > Linux with Python 2.7.5 but should gracefully fail and prevent > parallelisation if one of the requirements hasn't been met (not on linux, no > multiprocessing support, or monkey patching somehow fails). The change to > caching should still benefit everyone regardless. > Please note that an additional dependency on orderedset has been added to > achieve the more deterministic ordering - This may not be desirable (i.e. > another package might be desired, such as ordered-set, or the code might be > inlined into the package instead), as per maintainer comments. > --- [following repeated from mailing list] --- > Performance Statistics :- > The following are some quick and dirty statistics for building the jcc > pylucene itself (incl. java lucene which accounts for about 30-ish seconds > upfront) - The JCC files are split using --files 8, and each build is > preceded with a make clean: > Serial (unpatched): > real5m1.502s > user5m22.887s > sys 0m7.749s > Parallel (patched, 4 physical cores, 8 hyperthreads, 8 parallel jobs): > real1m37.382s > user7m16.658s > sys 0m8.697s > Furthermore, some additional changes were made to the wrapped file generation > to make the generated code more ccache friendly (additional deterministic > sorting for methods and some usage of an ordered set). With these in place > and the CC and CCACHE_COMPILERCHECK environment variables set to "ccache gcc" > and "content" respectively, and ensuring ccache is installed, subsequent > compilation time is reduced again as follows: > Parallel (patched, 4 physical cores, 8 hyperthreads, 8 parallel jobs, ccache > enabled): > real0m43.051s > user1m10.392s > sys 0m4.547s > This was a run in which nothing changed between runs, so a realistic run in > which changes occur it'll be a figure between 0m43.051s and 1m37.382s, > depending on how drastic the change was. If many
[jira] [Closed] (PYLUCENE-8) lucene.JCC_VERSION isn't set properly on Windows
[ https://issues.apache.org/jira/browse/PYLUCENE-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-8. - Resolution: Fixed > lucene.JCC_VERSION isn't set properly on Windows > > > Key: PYLUCENE-8 > URL: https://issues.apache.org/jira/browse/PYLUCENE-8 > Project: PyLucene > Issue Type: Bug > Environment: Windows XP, MinGW gcc 4.5, Python 2.6.6, PyLucene 3.0.2 >Reporter: Bill Janssen >Priority: Minor > > After installing 3.0.2 on Win XP with MinGW/msys, I see the following: > Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import lucene > >>> lucene.initVM(classpath=lucene.CLASSPATH) > > >>> lucene.JCC_VERSION > 'JCC_VER' > >>> quit() -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Closed] (PYLUCENE-18) Version 3.6.0 lacks readme
[ https://issues.apache.org/jira/browse/PYLUCENE-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-18. -- Resolution: Fixed > Version 3.6.0 lacks readme > -- > > Key: PYLUCENE-18 > URL: https://issues.apache.org/jira/browse/PYLUCENE-18 > Project: PyLucene > Issue Type: Bug >Reporter: Dion Gillard >Priority: Minor > > Hi, > It looks like pylucene version 3.6.0 lacks CHANGES in tarball. Also README > has followed content: > {code} > Please see doc/documentation/readme.html > {code} > At the same there is no docs directory in tarball at all. > These files are important for linux distributions (like Debian) where they > are usually installed to /usr/share/doc -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Closed] (PYLUCENE-64) ModuleNotFoundError: No module named 'lucene' when intalling PyLucene
[ https://issues.apache.org/jira/browse/PYLUCENE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-64. -- Resolution: Fixed seems to work fine > ModuleNotFoundError: No module named 'lucene' when intalling PyLucene > - > > Key: PYLUCENE-64 > URL: https://issues.apache.org/jira/browse/PYLUCENE-64 > Project: PyLucene > Issue Type: Bug >Reporter: anis amirouche >Priority: Major > > I'm trying to install Pylucene 8.11.0 on mac os. the jcc is built and > installed successfully, but from pylucene folder when running make test i'm > encountering the following error : ModuleNotFoundError: No module named > 'lucene', please note the make command is successfull. > please can anyone help me with solving this error. I don't even understand > what i'm doing wrong, it's like lucene is not installed, and i'm having this > error with all the files of pylucene. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Closed] (PYLUCENE-56) Can't build JCC on Mac
[ https://issues.apache.org/jira/browse/PYLUCENE-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-56. -- Resolution: Fixed building JCC on M2 mac works fine > Can't build JCC on Mac > -- > > Key: PYLUCENE-56 > URL: https://issues.apache.org/jira/browse/PYLUCENE-56 > Project: PyLucene > Issue Type: Bug > Environment: MacOSX 10.15.7, Intel Core i7, Python 3.8.2, gcc > (Homebrew GCC 10.2.0_3) 10.2.0 > following the instructions here: > http://lucene.apache.org/pylucene/jcc/install.html > svn co https://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc jcc > Checked out revision 1886645. >Reporter: Clem Wang >Priority: Major > Labels: build > > This is puzzling to me, as I can't figure out how the failing gcc command > line gets its arguments (mostly). I found one problem in the setup.py, but I > can't find the error causing strings anywhere in the files in the jcc > directory of sub directory. > > Steps: > > {code:java} > svn co https://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc jcc > Checked out revision 1886645. > cd jcc > python setup.py build > > {code} > ... > /opt/local/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code > -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall > {color:#ff}*-iwithsysroot/*{color}System/Library/Frameworks/System.framework/PrivateHeaders > > {color:#ff}*-iwithsysroot/*{color}Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers > {color:#ff}*-arch arm64*{color} -arch x86_64 > -I/usr/local/opt/libomp/include -Xpreprocessor -fopenmp -dynamiclib > -D_jcc_lib -DJCC_VER="3.8" > -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include > -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin > -I_jcc3 -Ijcc3/sources -I/Users/cwang/3.7/include > -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 > -c jcc3/sources/jcc.cpp -o > build/temp.macosx-10.14.6-x86_64-3.8/jcc3/sources/jcc.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings -mmacosx-version-min=10.9 -std=c++11 > {color:#ff}*-stdlib=libc++*{color} > > which generates 4 errors due to the parts marked above in red bold: > > *gcc:* *error:* this compiler does not support arm64 > *gcc:* *error:* unrecognized command-line option > '*-iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders*' > *gcc:* *error:* unrecognized command-line option > '*-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers*' > *gcc:* *error:* unrecognized command-line option '*-stdlib=libc++*' > error: command '/opt/local/bin/gcc' failed with exit status 1 > > Obviously, the contradictory > *-arch arm64* > needs to be removed but I can't find arm64 anywhere. > > The unnecessary > *-stdlib=libc++* > > can be removed from setup.py: > {code:java} > CFLAGS = { > 'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', > '-mmacosx-version-min=10.9', '-std=c++11', '-stdlib=libc++'],{code} > > After poking around, I figured out that gcc uses > {code:java} > -I {code} > not > {code:java} > -i {code} > for includes. > > Making these modifications (and adding > {code:java} > -Wno-attributes{code} > to remove warnings) > > I came up with this line that does successfully compile without errors: > /opt/local/bin/gcc -Wno-attributes -Wno-unused-result -Wsign-compare > -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall > -I/System/Library/Frameworks/System.framework/PrivateHeaders > -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers > -arch x86_64 -I/usr/local/opt/libomp/include -Xpreprocessor -fopenmp > -dynamiclib -D_jcc_lib -DJCC_VER="3.8" > -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include > -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin > -I_jcc3 -Ijcc3/sources -I/Users/cwang/3.7/include > -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 > -c jcc3/sources/jcc.cpp -o > build/temp.macosx-10.14.6-x86_64-3.8/jcc3/sources/jcc.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings -mmacosx-version-min=10.9 -std=c++11 > > But other than removing *'-stdlib=libc++'* from the setup.py file I have no > idea how to modify things to fix the compile errors by the line generated > some how by setup.py -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-27) JCC should be able to create sdist archives
[ https://issues.apache.org/jira/browse/PYLUCENE-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785231#comment-17785231 ] Andi Vajda commented on PYLUCENE-27: Yes, with the upcoming demise of setuptools/distutils, this issue may get resolution. Instead of invoking setuptools.setup() produce something that pypa/build can use as input, some yaml maybe ? > JCC should be able to create sdist archives > --- > > Key: PYLUCENE-27 > URL: https://issues.apache.org/jira/browse/PYLUCENE-27 > Project: PyLucene > Issue Type: Wish > Environment: jcc-svn-head >Reporter: Martin Scherer >Priority: Major > Attachments: createSetupScript.patch > > > I was not able to create a complete (in terms one is able to compile and > install the desired wrapper) source distribution. > I've tried following calls: > python -m jcc --jar foo --egg-info --extra-setup-arg sdist > and > python -m jcc --jar foo --extra-setup-arg sdist > Both create archives only containing the egg-info and setup.py but no source > code at all. > I really need this feature for my testing environment with tox, since this > heavily depends on the sdist feature. > thanks, > best, > Martin -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (PYLUCENE-69) Linking libjvm seems to prevent PyPi upload
[ https://issues.apache.org/jira/browse/PYLUCENE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785230#comment-17785230 ] Andi Vajda edited comment on PYLUCENE-69 at 11/11/23 10:54 PM: --- JCC is a python/c++ code generator for wrapping Java libraries using JNI. Any JCC-built Python extension embeds a Java Virtual Machine. If PyPI doesn't allow you to upload libjvm.so then you cannot ship JCC-produced binaries on PyPI. Only source distributions are then possible. And yes, building binaries can take time and requires that at least a C++ compiler be present as well. Knowledge how to operate a C++ compiler and linker is also useful. I think you should reset your expectation a bit here. Even _if_ you could do this, the wheel would be enormous: the number of Python * C++ * Java * OS versions possible makes for a lot of combos. There is a reason I don't ever ship binaries, it's just too much (!) was (Author: vajda): JCC is a python/c++ code generator for wrapping Java libraries using JNI. Any JCC-built Python extension embeds a Java Virtual Machine. If PyPI doesn't allow you to upload libjvm.so then you cannot ship JCC-produced binaries on PyPI. Only source distributions are then possible. And yes, building binaries can take time and requires that at least a C++ compiler be present as well. Knowledge how to operate a C++ compiler and linker is also useful. I think you should reset your expectation a bit here. Even _if_ could do this, the wheel would be enormous: the number of Python * C++ * Java * OS versions possible makes for a lot of combos. There is a reason I don't ever ship binaries, it's just too much (!) > Linking libjvm seems to prevent PyPi upload > --- > > Key: PYLUCENE-69 > URL: https://issues.apache.org/jira/browse/PYLUCENE-69 > Project: PyLucene > Issue Type: Question >Reporter: Clément Jonglez >Priority: Major > > As mentioned in > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] , I am > trying to package the Orekit Python wrapper from [~petrush] (which uses JCC) > to PyPi. > I used the --wheel option to compile a wheel and not an egg, and I tried to > upload the wheel to PyPi. > But PyPi refuses my wheel with the answer : > {noformat} > Binary wheel 'orekit-11.3.3-cp312-cp312-linux_x86_64.whl' has an unsupported > platform tag 'linux_x86_64'. {noformat} > After reading about why this error occurs ( > [https://peps.python.org/pep-0513/#rationale] ) , I tried to convert the > wheel to a manylinux wheel by using: > > {code:java} > auditwheel repair dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned the following error: > > {noformat} > auditwheel: error: cannot repair > "dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl" to "manylinux_2_5_x86_64" > ABI because of the presence of too-recent versioned symbols. You'll need to > compile the wheel on an older toolchain.{noformat} > > I then ran the following command to get more information about which symbols > are problematic in the wheel: > > {code:java} > auditwheel-symbols --manylinux 2_34 > dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned: > > {noformat} > orekit/_orekit.cpython-312-x86_64-linux-gnu.so is not manylinux_2_34 > compliant because it links the following forbidden libraries: > libjvm.so{noformat} > > > I tried removing -ljvm from the LFLAGS list in jcc's config.py, but as > expected the Python program then fails on starting the JVM: > {noformat} > Traceback (most recent call last): > File "/media/ssd/git/orekit_python_artifacts/test/AbstractDetectorTest.py", > line 3, in > import orekit > File > "/home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/__init__.py", > line 7, in > from . import _orekit > ImportError: > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/_orekit.cpython-312-x86_64-linux-gnu.so: > undefined symbol: JNI_GetDefaultJavaVMInitArgs{noformat} > > I don't have any more clues... Alternatively, I could try to package the > Orekit Python wrapper as a source distribution (using > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-27] and > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] ), but > this would mean that a user would need to wait approx. 10 minutes for the > wheel to compile when running pip install... > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-69) Linking libjvm seems to prevent PyPi upload
[ https://issues.apache.org/jira/browse/PYLUCENE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785230#comment-17785230 ] Andi Vajda commented on PYLUCENE-69: JCC is a python/c++ code generator for wrapping Java libraries using JNI. Any JCC-built Python extension embeds a Java Virtual Machine. If PyPI doesn't allow you to upload libjvm.so then you cannot ship JCC-produced binaries on PyPI. Only source distributions are then possible. And yes, building binaries can take time and requires that at least a C++ compiler be present as well. Knowledge how to operate a C++ compiler and linker is also useful. I think you should reset your expectation a bit here. Even _if_ could do this, the wheel would be enormous: the number of Python * C++ * Java * OS versions possible makes for a lot of combos. There is a reason I don't ever ship binaries, it's just too much (!) > Linking libjvm seems to prevent PyPi upload > --- > > Key: PYLUCENE-69 > URL: https://issues.apache.org/jira/browse/PYLUCENE-69 > Project: PyLucene > Issue Type: Question >Reporter: Clément Jonglez >Priority: Major > > As mentioned in > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] , I am > trying to package the Orekit Python wrapper from [~petrush] (which uses JCC) > to PyPi. > I used the --wheel option to compile a wheel and not an egg, and I tried to > upload the wheel to PyPi. > But PyPi refuses my wheel with the answer : > {noformat} > Binary wheel 'orekit-11.3.3-cp312-cp312-linux_x86_64.whl' has an unsupported > platform tag 'linux_x86_64'. {noformat} > After reading about why this error occurs ( > [https://peps.python.org/pep-0513/#rationale] ) , I tried to convert the > wheel to a manylinux wheel by using: > > {code:java} > auditwheel repair dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned the following error: > > {noformat} > auditwheel: error: cannot repair > "dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl" to "manylinux_2_5_x86_64" > ABI because of the presence of too-recent versioned symbols. You'll need to > compile the wheel on an older toolchain.{noformat} > > I then ran the following command to get more information about which symbols > are problematic in the wheel: > > {code:java} > auditwheel-symbols --manylinux 2_34 > dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} > > Which returned: > > {noformat} > orekit/_orekit.cpython-312-x86_64-linux-gnu.so is not manylinux_2_34 > compliant because it links the following forbidden libraries: > libjvm.so{noformat} > > > I tried removing -ljvm from the LFLAGS list in jcc's config.py, but as > expected the Python program then fails on starting the JVM: > {noformat} > Traceback (most recent call last): > File "/media/ssd/git/orekit_python_artifacts/test/AbstractDetectorTest.py", > line 3, in > import orekit > File > "/home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/__init__.py", > line 7, in > from . import _orekit > ImportError: > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/_orekit.cpython-312-x86_64-linux-gnu.so: > undefined symbol: JNI_GetDefaultJavaVMInitArgs{noformat} > > I don't have any more clues... Alternatively, I could try to package the > Orekit Python wrapper as a source distribution (using > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-27] and > [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] ), but > this would mean that a user would need to wait approx. 10 minutes for the > wheel to compile when running pip install... > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-69) Linking libjvm seems to prevent PyPi upload
Clément Jonglez created PYLUCENE-69: --- Summary: Linking libjvm seems to prevent PyPi upload Key: PYLUCENE-69 URL: https://issues.apache.org/jira/browse/PYLUCENE-69 Project: PyLucene Issue Type: Question Reporter: Clément Jonglez As mentioned in [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] , I am trying to package the Orekit Python wrapper from [~petrush] (which uses JCC) to PyPi. I used the --wheel option to compile a wheel and not an egg, and I tried to upload the wheel to PyPi. But PyPi refuses my wheel with the answer : {noformat} Binary wheel 'orekit-11.3.3-cp312-cp312-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. {noformat} After reading about why this error occurs ( [https://peps.python.org/pep-0513/#rationale] ) , I tried to convert the wheel to a manylinux wheel by using: {code:java} auditwheel repair dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} Which returned the following error: {noformat} auditwheel: error: cannot repair "dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl" to "manylinux_2_5_x86_64" ABI because of the presence of too-recent versioned symbols. You'll need to compile the wheel on an older toolchain.{noformat} I then ran the following command to get more information about which symbols are problematic in the wheel: {code:java} auditwheel-symbols --manylinux 2_34 dist/orekit-11.3.3-cp312-cp312-linux_x86_64.whl{code} Which returned: {noformat} orekit/_orekit.cpython-312-x86_64-linux-gnu.so is not manylinux_2_34 compliant because it links the following forbidden libraries: libjvm.so{noformat} I tried removing -ljvm from the LFLAGS list in jcc's config.py, but as expected the Python program then fails on starting the JVM: {noformat} Traceback (most recent call last): File "/media/ssd/git/orekit_python_artifacts/test/AbstractDetectorTest.py", line 3, in import orekit File "/home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/__init__.py", line 7, in from . import _orekit ImportError: /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/orekit-12.0-py3.12-linux-x86_64.egg/orekit/_orekit.cpython-312-x86_64-linux-gnu.so: undefined symbol: JNI_GetDefaultJavaVMInitArgs{noformat} I don't have any more clues... Alternatively, I could try to package the Orekit Python wrapper as a source distribution (using [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-27] and [https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-68] ), but this would mean that a user would need to wait approx. 10 minutes for the wheel to compile when running pip install... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785226#comment-17785226 ] Clément Jonglez commented on PYLUCENE-68: - Thanks for the swift answer! My use case only involves calling jcc (for building the Orekit Python wrapper project by [~petrush] ) and not building jcc itself indeed. A solution would be to make the {code:java} setup(**args){code} call at the end of python.py optional via a new parameter, and instead leave it to a Python package build system (such as setuptools for instance, but there are others like hatch) to build the C++ extensions when installing the Python package. I saw that Pylucene uses a Makefile for compilation so it's different from my use case though, as I am trying to package the Orekit Python wrapper for PyPi. I already adapted Petrus' bash script to a Python script, and I am trying to integrate it to setuptools or hatch. I will post more information if I manage to make it work. > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://github.com/pypa/setuptools/issues/917 for details. > > **** > !! > self.initialize_options() > > {noformat} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17785219#comment-17785219 ] Andi Vajda commented on PYLUCENE-68: I was afraid of that... I did try to build jcc with pypa/build and it seems to work just fine: {code:java} $ cd jcc $ python3 -m build $ python3 -m pip install dist/JCC-3.13-cp312-cp312-macosx_13_0_arm64.whl{code} worked fine. Then, I get the warnings you reported when running "jcc ... --install" from pylucene's Makefile are due to jcc's calling setuptools.setup() function to build the extension it generated. Do you know of a migration guide from setuptools.setup() to calling similar stuff in pypa/build ? > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://github.com/pypa/setuptools/issues/917 for details. > > > !! > self.initialize_options() > > {noformat} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clément Jonglez updated PYLUCENE-68: Issue Type: Improvement (was: Task) > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Improvement >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the following warnings (see > below). > This is still working but eventually the `setup.py` installation and > `easy_install` command will be removed. > It would be nice to adapt JCC to modern pypa build tools, but I don't know > enough about JCC to do these changes. > > {noformat} > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > SetuptoolsDeprecationWarning: setup.py install is deprecated. > !! > > > Please avoid running ``setup.py`` directly. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html > for details. > > > !! > self.initialize_options() > /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: > EasyInstallDeprecationWarning: easy_install command is deprecated. > !! > > > Please avoid running ``setup.py`` and ``easy_install``. > Instead, use pypa/build, pypa/installer or other > standards-based tools. > See https://github.com/pypa/setuptools/issues/917 for details. > > **** > !! > self.initialize_options() > > {noformat} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-68) setup.py install and easy_install command are deprecated
Clément Jonglez created PYLUCENE-68: --- Summary: setup.py install and easy_install command are deprecated Key: PYLUCENE-68 URL: https://issues.apache.org/jira/browse/PYLUCENE-68 Project: PyLucene Issue Type: Task Reporter: Clément Jonglez When compiling with jcc to create a wheel, I get the following warnings (see below). This is still working but eventually the `setup.py` installation and `easy_install` command will be removed. It would be nice to adapt JCC to modern pypa build tools, but I don't know enough about JCC to do these changes. ``` /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! self.initialize_options() /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !! Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. !! self.initialize_options() ``` -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-68) setup.py install and easy_install command are deprecated
[ https://issues.apache.org/jira/browse/PYLUCENE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clément Jonglez updated PYLUCENE-68: Description: When compiling with jcc to create a wheel, I get the following warnings (see below). This is still working but eventually the `setup.py` installation and `easy_install` command will be removed. It would be nice to adapt JCC to modern pypa build tools, but I don't know enough about JCC to do these changes. {noformat} /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! self.initialize_options() /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !! Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. !! self.initialize_options() {noformat} was: When compiling with jcc to create a wheel, I get the following warnings (see below). This is still working but eventually the `setup.py` installation and `easy_install` command will be removed. It would be nice to adapt JCC to modern pypa build tools, but I don't know enough about JCC to do these changes. ``` /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/dist.py:947: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. !! self.initialize_options() /home/yzokras/Documents/orekit-pip/orekit312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !! Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. !! self.initialize_options() ``` > setup.py install and easy_install command are deprecated > > > Key: PYLUCENE-68 > URL: https://issues.apache.org/jira/browse/PYLUCENE-68 > Project: PyLucene > Issue Type: Task >Reporter: Clément Jonglez >Priority: Major > > When compiling with jcc to create a wheel, I get the
[jira] [Commented] (PYLUCENE-28) JCC reuses JVM instances in impl, if compile() is called twice.
[ https://issues.apache.org/jira/browse/PYLUCENE-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17736851#comment-17736851 ] Andi Vajda commented on PYLUCENE-28: I see 2 things: - if a constructor takes no arguments, like org.apache.lucene.document.Document(), then anything passed to it is ignored. - all constructor wrappers have a kwds parameter but it's ignored. Both could be fixed at the cost of extra code that raises an error if kwds is not empty. Also, extra code would have to be generated for checking that args is empty for contructores not taking any args. Is it worth it ? > JCC reuses JVM instances in impl, if compile() is called twice. > --- > > Key: PYLUCENE-28 > URL: https://issues.apache.org/jira/browse/PYLUCENE-28 > Project: PyLucene > Issue Type: Improvement > Environment: jcc-svn-head (2.18-pre) >Reporter: Martin Scherer >Priority: Blocker > Labels: patch > Attachments: jvm_instance_check.patch > > > If you import jcc.cpp to call compile yourself (a wrapped setup.py script to > generate a wrapper on the fly, which seems to be a common use case), the > current version complains about the JVM already being initialized before. > The patch first checks for a running instance and creates one, if none is > being found. > For myself, this is a blocker, since it raises otherwise. > Best, > Martin -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-67) keyword arguments are silently ignored on wrapped constructors
Petrus Hyvönen created PYLUCENE-67: -- Summary: keyword arguments are silently ignored on wrapped constructors Key: PYLUCENE-67 URL: https://issues.apache.org/jira/browse/PYLUCENE-67 Project: PyLucene Issue Type: Improvement Environment: Tested on Linux Reporter: Petrus Hyvönen In using a JCC wrapped library, it is possible that a user uses keyword arguments instead of positional arguments for constructor / methods. These are silently ignored which may be confusing for the user. For example Constructor(param1=1, param2=2) gives same as Constructor() without warning. I think the expected behaviour would be to raise some error. Regards! -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17629184#comment-17629184 ] Andi Vajda edited comment on PYLUCENE-66 at 11/4/22 7:52 PM: - See code for installType() function in this file: [https://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/jcc3/sources/functions.cpp] was (Author: vajda): The installType function in jcc/jcc3/sources/functions.cpp is supposed to be {{ void installType(PyTypeObject **type, PyType_Def *def, PyObject *module, char *name, int isExtension) { if (*type == NULL) { *type = makeType(def); if (isExtension) { #if PY_VERSION_HEX >= 0x030b Py_SET_TYPE(*type, PY_TYPE(FinalizerClass)); #else Py_TYPE(*type) = PY_TYPE(FinalizerClass); #endif Py_INCREF(PY_TYPE(FinalizerClass)); } PyObject *module_name = PyModule_GetNameObject(module); if (module_name != NULL) { PyDict_SetItemString((*type)->tp_dict, "__module__", module_name); Py_DECREF(module_name); } PyModule_AddObject(module, name, (PyObject *) *type); } } }} > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17629184#comment-17629184 ] Andi Vajda edited comment on PYLUCENE-66 at 11/4/22 7:50 PM: - The installType function in jcc/jcc3/sources/functions.cpp is supposed to be {{ void installType(PyTypeObject **type, PyType_Def *def, PyObject *module, char *name, int isExtension) { if (*type == NULL) { *type = makeType(def); if (isExtension) { #if PY_VERSION_HEX >= 0x030b Py_SET_TYPE(*type, PY_TYPE(FinalizerClass)); #else Py_TYPE(*type) = PY_TYPE(FinalizerClass); #endif Py_INCREF(PY_TYPE(FinalizerClass)); } PyObject *module_name = PyModule_GetNameObject(module); if (module_name != NULL) { PyDict_SetItemString((*type)->tp_dict, "__module__", module_name); Py_DECREF(module_name); } PyModule_AddObject(module, name, (PyObject *) *type); } } }} was (Author: vajda): The installType function in jcc/jcc3/sources/functions.cpp is supposed to be ``` void installType(PyTypeObject **type, PyType_Def *def, PyObject *module, char *name, int isExtension) { if (*type == NULL) { *type = makeType(def); if (isExtension) { #if PY_VERSION_HEX >= 0x030b Py_SET_TYPE(*type, PY_TYPE(FinalizerClass)); #else Py_TYPE(*type) = PY_TYPE(FinalizerClass); #endif Py_INCREF(PY_TYPE(FinalizerClass)); } PyObject *module_name = PyModule_GetNameObject(module); if (module_name != NULL) { PyDict_SetItemString((*type)->tp_dict, "__module__", module_name); Py_DECREF(module_name); } PyModule_AddObject(module, name, (PyObject *) *type); } } ``` > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17629184#comment-17629184 ] Andi Vajda commented on PYLUCENE-66: The installType function in jcc/jcc3/sources/functions.cpp is supposed to be ``` void installType(PyTypeObject **type, PyType_Def *def, PyObject *module, char *name, int isExtension) { if (*type == NULL) { *type = makeType(def); if (isExtension) { #if PY_VERSION_HEX >= 0x030b Py_SET_TYPE(*type, PY_TYPE(FinalizerClass)); #else Py_TYPE(*type) = PY_TYPE(FinalizerClass); #endif Py_INCREF(PY_TYPE(FinalizerClass)); } PyObject *module_name = PyModule_GetNameObject(module); if (module_name != NULL) { PyDict_SetItemString((*type)->tp_dict, "__module__", module_name); Py_DECREF(module_name); } PyModule_AddObject(module, name, (PyObject *) *type); } } ``` > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17629183#comment-17629183 ] Andi Vajda commented on PYLUCENE-66: Use the JCC in the 9.4.1 release candidate or get the diff for rev 1904960. > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17628825#comment-17628825 ] Luc Bastiaenssen commented on PYLUCENE-66: -- Hi Andi, Is there a patch available ? (We are using version 8.9.0) Thanks, Luc > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17627368#comment-17627368 ] A. Coady commented on PYLUCENE-66: -- (/) Verified build on python:3.11 docker image. > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17626895#comment-17626895 ] Andi Vajda edited comment on PYLUCENE-66 at 11/1/22 1:12 AM: - I switched that line to use Py_SET_TYPE() and that should fix this bug. I have not yet upgrade to Python 3.11 yet, could you please try this fix and see if there are other issues with Python 3.11 ? Thanks ! (The fix is in rev 1904960) was (Author: vajda): I switched that line to use Py_SET_TYPE() and that should fix this bug. I have not yet upgrade to Python 3.11 yet, could you please try this fix and see if there are other issues with Python 3.11 ? Thanks ! (The fix is in rev 1904960) > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17626895#comment-17626895 ] Andi Vajda commented on PYLUCENE-66: I switched that line to use Py_SET_TYPE() and that should fix this bug. I have not yet upgrade to Python 3.11 yet, could you please try this fix and see if there are other issues with Python 3.11 ? Thanks ! (The fix is in rev 1904960) > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-66. Resolution: Fixed fixed in rev 1904960. > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (PYLUCENE-66) JCC doesn't build with Python 3.11.
[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] A. Coady updated PYLUCENE-66: - Environment: Python 3.11, PyLucene 9.4.1-rc (was: Python 3.11) > JCC doesn't build with Python 3.11. > --- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc >Reporter: A. Coady >Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-66) JCC doesn't build with Python 3.11.
A. Coady created PYLUCENE-66: Summary: JCC doesn't build with Python 3.11. Key: PYLUCENE-66 URL: https://issues.apache.org/jira/browse/PYLUCENE-66 Project: PyLucene Issue Type: Bug Environment: Python 3.11 Reporter: A. Coady {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} {{#10 10.86 from jcc3/sources/functions.cpp:23:}} {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue required as left operand of assignment}} {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} {{#10 10.86 | ~{~}{{~}}^{{~}}{~}~}} {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro ‘Py_TYPE’}} {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} {{#10 10.86 | ^~~}} {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (PYLUCENE-65) Support the default java on debian in `setup.py`.
A. Coady created PYLUCENE-65: Summary: Support the default java on debian in `setup.py`. Key: PYLUCENE-65 URL: https://issues.apache.org/jira/browse/PYLUCENE-65 Project: PyLucene Issue Type: Improvement Reporter: A. Coady On debian, the `default-java` package does not have `jre/lib/amd64` in its path, so it breaks the `linux/x86_64` build. The `temurin` flags have the correct paths, so one easy fix would be to change the [temurin check|https://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/setup.py?revision=1900087=markup#l194] to: {code:python} if 'temurin' in JDK['linux'] or 'default' in JDK['linux']: {code} That would also support `linux/aarch64` without any further changes. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (PYLUCENE-64) ModuleNotFoundError: No module named 'lucene' when intalling PyLucene
[ https://issues.apache.org/jira/browse/PYLUCENE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17545615#comment-17545615 ] Andi Vajda commented on PYLUCENE-64: I believe there is an issue with running 'make test' in PyLucene 8.x. This is hopefully solved in PyLucene 9.1.0, which was released on 4/27/22. To see if your PyLucene install works, you can try these steps in Python: >>> import lucene >>> lucene.initVM() >>> from org.apache.lucene.document import Document If you need more help, please include the portion of the PyLucene Makefile you edited before you ran 'make' and 'make install'. > ModuleNotFoundError: No module named 'lucene' when intalling PyLucene > - > > Key: PYLUCENE-64 > URL: https://issues.apache.org/jira/browse/PYLUCENE-64 > Project: PyLucene > Issue Type: Bug >Reporter: anis amirouche >Priority: Major > > I'm trying to install Pylucene 8.11.0 on mac os. the jcc is built and > installed successfully, but from pylucene folder when running make test i'm > encountering the following error : ModuleNotFoundError: No module named > 'lucene', please note the make command is successfull. > please can anyone help me with solving this error. I don't even understand > what i'm doing wrong, it's like lucene is not installed, and i'm having this > error with all the files of pylucene. -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Updated] (PYLUCENE-64) ModuleNotFoundError: No module named 'lucene' when intalling PyLucene
[ https://issues.apache.org/jira/browse/PYLUCENE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] anis amirouche updated PYLUCENE-64: --- Description: I'm trying to install Pylucene 8.11.0 on mac os. the jcc is built and installed successfully, but from pylucene folder when running make test i'm encountering the following error : ModuleNotFoundError: No module named 'lucene', please note the make command is successfull. please can anyone help me with solving this error. I don't even understand what i'm doing wrong, it's like lucene is not installed, and i'm having this error with all the files of pylucene. > ModuleNotFoundError: No module named 'lucene' when intalling PyLucene > - > > Key: PYLUCENE-64 > URL: https://issues.apache.org/jira/browse/PYLUCENE-64 > Project: PyLucene > Issue Type: Bug >Reporter: anis amirouche >Priority: Major > > I'm trying to install Pylucene 8.11.0 on mac os. the jcc is built and > installed successfully, but from pylucene folder when running make test i'm > encountering the following error : ModuleNotFoundError: No module named > 'lucene', please note the make command is successfull. > please can anyone help me with solving this error. I don't even understand > what i'm doing wrong, it's like lucene is not installed, and i'm having this > error with all the files of pylucene. -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Created] (PYLUCENE-64) ModuleNotFoundError: No module named 'lucene' when intalling PyLucene
anis amirouche created PYLUCENE-64: -- Summary: ModuleNotFoundError: No module named 'lucene' when intalling PyLucene Key: PYLUCENE-64 URL: https://issues.apache.org/jira/browse/PYLUCENE-64 Project: PyLucene Issue Type: Bug Reporter: anis amirouche -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17532651#comment-17532651 ] lisa.shi commented on PYLUCENE-63: -- thank you for your help. your answer is very helpful > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] > [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > > > how can i fix this bug? > i am sure the file ( > [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar) > is not exist -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529472#comment-17529472 ] Andi Vajda commented on PYLUCENE-63: The first 'make print-GENERATE' shows that you didn't follow the instructions at the top of the Makefile. You must uncomment one of the example groups so that PREFIX_PYTHON, PYTHON, JCC and NUM_FILES are set. And they must be set correctly for your environment. You then did this, apparently, and your next print-GENERATE is making more sense (!). The next issue then is that you didn't rebuild JCC (it shows you using version 3.10 but PyLucene 9.1.0 comes with 3.12) and the earlier JCC build you made was built with an incompatible version of Java. Please rebuild JCC so that you are using version 3.12. The last issue is that your java installation's layout (in particular its paths to libraries libjava and libjvm) is not covered in JCC's setup.py. This is a known issue, there are just so many different layouts that it's difficult to guess the correct one. You need to edit jcc's setup.py at line 172,173,174 and set the values for the -L flags to match your installation. I suspect that you don't need the final amd64 parts in there, ie, change -L%(linux)s/jre/lib/amd64 into -L%(linux)s/jre/lib, change -L%(linux)s/jre/lib/amd64/server to -L%(linux)s/jre/lib/server and '-Wl,-rpath=%(linux)s/jre/lib/amd64:%(linux)s/jre/lib/amd64/server to '-Wl,-rpath=%(linux)s/jre/lib:%(linux)s/jre/lib/server. Last but not least, you seem to be using python 2.7. It's still supported by PyLucene and JCC but not by the Python people anymore and it is not going to be supported by PyLucene and JCC much longer. I strongly recommend you install python3. Python 2.7 has been dead and deprecated for years now. If you are just getting started with Python now, please start with python 3. And finally, this entire conversation should be had on the pylucene-dev@lucene.apache.org mailing list instead of buried in JIRA. This issue is not a bug. > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) >
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529454#comment-17529454 ] lisa.shi commented on PYLUCENE-63: -- i also can not build jcc with java11. when i try to run "python setup.py build" x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-1x6jhf/python2.7-2.7.18~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-1x6jhf/python2.7-2.7.18~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC build/temp.linux-x86_64-2.7/jcc2/sources/jcc.o build/temp.linux-x86_64-2.7/jcc2/sources/JCCEnv.o -o build/lib.linux-x86_64-2.7/libjcc2.so -L/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64 -ljava -L/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64/server -ljvm -Wl,-rpath=/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64/server -Wl,-S -lpython2.7 /usr/bin/ld: cannot find -ljava /usr/bin/ld: cannot find -ljvm collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-g++' failed with exit status 1 > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] > [ivy:cachepath]
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529257#comment-17529257 ] lisa.shi commented on PYLUCENE-63: -- i have changed the prefix_python to "/usr/". the bug is changed to (cd lucene-java-9.1.0; ./gradlew collectRuntimeJars) > Task :errorProneSkipped WARNING: errorprone disabled (skipped on non-nightly runs, pass -Dtests.nightly=true to run) BUILD SUCCESSFUL in 2s 121 actionable tasks: 2 executed, 119 up-to-date /usr//bin/python -m jcc --shared --jar lucene-java-9.1.0/lucene/core/build/runtimeJars/lucene-core-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/common/build/runtimeJars/lucene-analysis-common-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/backward-codecs/build/runtimeJars/lucene-backward-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/classification/build/runtimeJars/lucene-classification-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/codecs/build/runtimeJars/lucene-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/expressions/build/runtimeJars/lucene-expressions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/extensions/build/runtimeJars/lucene-extensions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/facet/build/runtimeJars/lucene-facet-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/grouping/build/runtimeJars/lucene-grouping-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/highlighter/build/runtimeJars/lucene-highlighter-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/join/build/runtimeJars/lucene-join-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/kuromoji/build/runtimeJars/lucene-analysis-kuromoji-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/memory/build/runtimeJars/lucene-memory-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/misc/build/runtimeJars/lucene-misc-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/nori/build/runtimeJars/lucene-analysis-nori-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queries/build/runtimeJars/lucene-queries-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queryparser/build/runtimeJars/lucene-queryparser-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/sandbox/build/runtimeJars/lucene-sandbox-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/spatial3d/build/runtimeJars/lucene-spatial3d-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/stempel/build/runtimeJars/lucene-analysis-stempel-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/suggest/build/runtimeJars/lucene-suggest-9.1.0-SNAPSHOT.jar --use_full_names --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/antlr4-runtime-4.5.1-1.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-7.2.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-commons-7.2.jar --include lucene-java-9.1.0/lucene/facet/build/runtimeJars/hppc-0.9.0.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.function --package java.util.regex --package java.io java.io.StringReader --package java.nio.file java.nio.file.Path java.nio.file.Files java.nio.file.Paths --package org.antlr.v4.runtime --package org.antlr.v4.runtime.atn --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.misc.store.WindowsDirectory --exclude org.apache.lucene.misc.store.NativePosixUtil --exclude 'module-info' --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence java.util.AbstractCollection 'size:()I' '-:-' --sequence java.util.AbstractList '-:-' 'get:(I)Ljava/lang/Object;' org.apache.lucene.index.IndexWriter:getReader org.apache.lucene.analysis.Tokenizer:input --version 9.1.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --resources lucene-java-9.1.0/lucene/analysis/icu/src/resources --files 16 --build While loading org/apache/lucene/search/ConstantScoreScorer Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/JCC-3.10-py2.7-linux-x86_64.egg/jcc/_
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529247#comment-17529247 ] lisa.shi commented on PYLUCENE-63: -- PREFIX_PYTHON=/opt/apache/pylucene/_install 72 PYTHON=$(PREFIX_PYTHON)/bin/python 73 JCC=$(PYTHON) -m jcc --shared 74 NUM_FILES=16 > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] > [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > > > how can i fix this bug? > i am sure the file ( > [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar) > is not exist -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529246#comment-17529246 ] lisa.shi commented on PYLUCENE-63: -- make print-GENERATE GENERATE = --jar lucene-java-9.1.0/lucene/core/build/runtimeJars/lucene-core-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/common/build/runtimeJars/lucene-analysis-common-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/backward-codecs/build/runtimeJars/lucene-backward-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/classification/build/runtimeJars/lucene-classification-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/codecs/build/runtimeJars/lucene-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/expressions/build/runtimeJars/lucene-expressions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/extensions/build/runtimeJars/lucene-extensions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/facet/build/runtimeJars/lucene-facet-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/grouping/build/runtimeJars/lucene-grouping-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/highlighter/build/runtimeJars/lucene-highlighter-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/join/build/runtimeJars/lucene-join-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/kuromoji/build/runtimeJars/lucene-analysis-kuromoji-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/memory/build/runtimeJars/lucene-memory-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/misc/build/runtimeJars/lucene-misc-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/nori/build/runtimeJars/lucene-analysis-nori-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queries/build/runtimeJars/lucene-queries-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queryparser/build/runtimeJars/lucene-queryparser-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/sandbox/build/runtimeJars/lucene-sandbox-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/spatial3d/build/runtimeJars/lucene-spatial3d-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/stempel/build/runtimeJars/lucene-analysis-stempel-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/suggest/build/runtimeJars/lucene-suggest-9.1.0-SNAPSHOT.jar --use_full_names --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/antlr4-runtime-4.5.1-1.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-7.2.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-commons-7.2.jar --include lucene-java-9.1.0/lucene/facet/build/runtimeJars/hppc-0.9.0.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.function --package java.util.regex --package java.io java.io.StringReader --package java.nio.file java.nio.file.Path java.nio.file.Files java.nio.file.Paths --package org.antlr.v4.runtime --package org.antlr.v4.runtime.atn --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.misc.store.WindowsDirectory --exclude org.apache.lucene.misc.store.NativePosixUtil --exclude module-info --python lucene --mapping org.apache.lucene.document.Document get:(Ljava/lang/String;)Ljava/lang/String; --mapping java.util.Properties getProperty:(Ljava/lang/String;)Ljava/lang/String; --sequence java.util.AbstractCollection size:()I -:- --sequence java.util.AbstractList -:- get:(I)Ljava/lang/Object; org.apache.lucene.index.IndexWriter:getReader org.apache.lucene.analysis.Tokenizer:input --version 9.1.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --resources lucene-java-9.1.0/lucene/analysis/icu/src/resources --files > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529212#comment-17529212 ] Andi Vajda commented on PYLUCENE-63: What does 'make print-GENERATE' return for you ? Also, please include the values you uncommmented in Makefile for: PREFIX_PYTHON, PYTHON, JCC, NUM_FILES > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] > [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > > > how can i fix this bug? > i am sure the file ( > [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar) > is not exist -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Commented] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17529193#comment-17529193 ] lisa.shi commented on PYLUCENE-63: -- thank you for your reply . i have download the pylucene9.1.0. and install java11. but there are still something wrong when i try to install pylucene. jar lucene-java-9.1.0/lucene/core/build/runtimeJars/lucene-core-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/common/build/runtimeJars/lucene-analysis-common-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/backward-codecs/build/runtimeJars/lucene-backward-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/classification/build/runtimeJars/lucene-classification-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/codecs/build/runtimeJars/lucene-codecs-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/expressions/build/runtimeJars/lucene-expressions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/extensions/build/runtimeJars/lucene-extensions-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/facet/build/runtimeJars/lucene-facet-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/grouping/build/runtimeJars/lucene-grouping-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/highlighter/build/runtimeJars/lucene-highlighter-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/join/build/runtimeJars/lucene-join-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/kuromoji/build/runtimeJars/lucene-analysis-kuromoji-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/memory/build/runtimeJars/lucene-memory-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/misc/build/runtimeJars/lucene-misc-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/nori/build/runtimeJars/lucene-analysis-nori-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queries/build/runtimeJars/lucene-queries-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/queryparser/build/runtimeJars/lucene-queryparser-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/sandbox/build/runtimeJars/lucene-sandbox-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/spatial3d/build/runtimeJars/lucene-spatial3d-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/analysis/stempel/build/runtimeJars/lucene-analysis-stempel-9.1.0-SNAPSHOT.jar --jar lucene-java-9.1.0/lucene/suggest/build/runtimeJars/lucene-suggest-9.1.0-SNAPSHOT.jar --use_full_names --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/antlr4-runtime-4.5.1-1.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-7.2.jar --include lucene-java-9.1.0/lucene/expressions/build/runtimeJars/asm-commons-7.2.jar --include lucene-java-9.1.0/lucene/facet/build/runtimeJars/hppc-0.9.0.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.function --package java.util.regex --package java.io java.io.StringReader --package java.nio.file java.nio.file.Path java.nio.file.Files java.nio.file.Paths --package org.antlr.v4.runtime --package org.antlr.v4.runtime.atn --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.misc.store.WindowsDirectory --exclude org.apache.lucene.misc.store.NativePosixUtil --exclude 'module-info' --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence java.util.AbstractCollection 'size:()I' '-:-' --sequence java.util.AbstractList '-:-' 'get:(I)Ljava/lang/Object;' org.apache.lucene.index.IndexWriter:getReader org.apache.lucene.analysis.Tokenizer:input --version 9.1.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --resources lucene-java-9.1.0/lucene/analysis/icu/src/resources --files --build Illegal option: l Try `jar --help' for more information. Makefile:270: recipe for target 'compile' failed make: [compile] Error 1 (ignored) build of pylucene 9.1.0 complete > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have al
[jira] [Resolved] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-63. Resolution: Information Provided I cannot help you with proxy issues and this bug is obsolete by now as Lucene is now at version 9.1.0 and is no longer using Ant nor Ivy but switched its build to Gradle. Just 10 minutes ago, I released [PyLucene 9.1.0|https://lucene.apache.org/pylucene/index.html] which also switched to using Gradle for building the Lucene part. If you have issues with building the Lucene part of PyLucene with Gradle, please contact the Lucene project at java-u...@lucene.apache.org. Thank you ! > can not install pylucene on linux with proxy > - > > Key: PYLUCENE-63 > URL: https://issues.apache.org/jira/browse/PYLUCENE-63 > Project: PyLucene > Issue Type: Bug > Environment: ubuntu 2020.4 >Reporter: lisa.shi >Priority: Major > > i try to install pyylucene on linux with proxy. i have already set > http_proxy on linux . i have change Makefile . > from > cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) > to > cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) > ivy-bootstrap -autoproxy) > then i can get ivy-2.4.0.jar in ~/.ant/lib/ > when i try to make pyluence. i meet a bug. > > > ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom > [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 > .17!groovy-all.jar: > [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] > bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar > [ivy:cachepath] > :: > [ivy:cachepath] :: UNRESOLVED DEPENDENCIES > :: > [ivy:cachepath] > :: > [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : > not found > [ivy:cachepath] > :: > [ivy:cachepath] ERRORS > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repo1.maven.o|https://repo1.maven.o/] > rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j > ava.net.ConnectException: Connection timed out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://oss.sonatype|https://oss.sonatype/]. > org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ > groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( > Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] Server access error at url > [https://repository.cl|https://repository.cl/] > oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all > /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed > out (Connection timed out)) > [ivy:cachepath] > [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > > > how can i fix this bug? > i am sure the file ( > [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar) > is not exist -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Updated] (PYLUCENE-63) can not install pylucene on linux with proxy
[ https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] lisa.shi updated PYLUCENE-63: - Description: i try to install pyylucene on linux with proxy. i have already set http_proxy on linux . i have change Makefile . from cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) to cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) ivy-bootstrap -autoproxy) then i can get ivy-2.4.0.jar in ~/.ant/lib/ when i try to make pyluence. i meet a bug. ivy:cachepath] [https://repository.cloudera.com/artifactory/li] bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4 .17!groovy-all.jar: [ivy:cachepath] [https://repository.cloudera.com/artifactory/li] bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar [ivy:cachepath] :: [ivy:cachepath] :: UNRESOLVED DEPENDENCIES :: [ivy:cachepath] :: [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : not found [ivy:cachepath] :: [ivy:cachepath] ERRORS [ivy:cachepath] Server access error at url [https://repo1.maven.o|https://repo1.maven.o/] rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j ava.net.ConnectException: Connection timed out (Connection timed out)) [ivy:cachepath] Server access error at url [https://repo1.maven.o|https://repo1.maven.o/] rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j ava.net.ConnectException: Connection timed out (Connection timed out)) [ivy:cachepath] Server access error at url [https://oss.sonatype|https://oss.sonatype/]. org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( Connection timed out)) [ivy:cachepath] Server access error at url [https://oss.sonatype|https://oss.sonatype/]. org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( Connection timed out)) [ivy:cachepath] Server access error at url [https://repository.cl|https://repository.cl/] oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed out (Connection timed out)) [ivy:cachepath] Server access error at url [https://repository.cl|https://repository.cl/] oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed out (Connection timed out)) [ivy:cachepath] [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS BUILD FAILED how can i fix this bug? i am sure the file ( [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar) is not exist was: i try to install pyylucene on linux with proxy. i have already set http_proxy on linux . i have change Makefile . from cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) to cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) ivy-bootstrap -autoproxy) then i can get ivy-2.4.0.jar in ~/.ant/lib/ when i try to make pyluence. i meet a bug. ivy:cachepath] https://repository.cloudera.com/artifactory/li bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom [ivy:cachepath] -- artifact org.codehaus.groovy#groovy-all;2.4 .17!groovy-all.jar: [ivy:cachepath] https://repository.cloudera.com/artifactory/li bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar [ivy:cachepath] :: [ivy:cachepath] :: UNRESOLVED DEPENDENCIES :: [ivy:cachepath] :: [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : not found [ivy:cachepath] :: [ivy:cachepath] ERRORS [ivy:cachepath] Server access error at url https://repo1.maven.o rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j ava.net.ConnectException: Connection timed out (Connection timed out)) [ivy:cachepath] Server access error at url https://repo1.maven.o rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j ava.net.ConnectException: Connection timed out
[jira] [Created] (PYLUCENE-63) can not install pylucene on linux with proxy
lisa.shi created PYLUCENE-63: Summary: can not install pylucene on linux with proxy Key: PYLUCENE-63 URL: https://issues.apache.org/jira/browse/PYLUCENE-63 Project: PyLucene Issue Type: Bug Environment: ubuntu 2020.4 Reporter: lisa.shi i try to install pyylucene on linux with proxy. i have already set http_proxy on linux . i have change Makefile . from cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap ) to cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT) ivy-bootstrap -autoproxy) then i can get ivy-2.4.0.jar in ~/.ant/lib/ when i try to make pyluence. i meet a bug. ivy:cachepath] https://repository.cloudera.com/artifactory/li bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom [ivy:cachepath] -- artifact org.codehaus.groovy#groovy-all;2.4 .17!groovy-all.jar: [ivy:cachepath] https://repository.cloudera.com/artifactory/li bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar [ivy:cachepath] :: [ivy:cachepath] :: UNRESOLVED DEPENDENCIES :: [ivy:cachepath] :: [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 : not found [ivy:cachepath] :: [ivy:cachepath] ERRORS [ivy:cachepath] Server access error at url https://repo1.maven.o rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j ava.net.ConnectException: Connection timed out (Connection timed out)) [ivy:cachepath] Server access error at url https://repo1.maven.o rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j ava.net.ConnectException: Connection timed out (Connection timed out)) [ivy:cachepath] Server access error at url https://oss.sonatype. org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out ( Connection timed out)) [ivy:cachepath] Server access error at url https://oss.sonatype. org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/ groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out ( Connection timed out)) [ivy:cachepath] Server access error at url https://repository.cl oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed out (Connection timed out)) [ivy:cachepath] Server access error at url https://repository.cl oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed out (Connection timed out)) [ivy:cachepath] [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS BUILD FAILED how can i fix this bug? -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Resolved] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-62. Resolution: Fixed > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17523433#comment-17523433 ] Andi Vajda commented on PYLUCENE-62: Thank you for having verified the changes again. The 'import jcc' case, as you say, is not very useful but can be made to work by calling os.add_dll_directory(jvm_dll_path) manually first. If one is import the jcc package this way, they must know what they're up to. I can't connect the %PREFIX%\lib\site-packages\jcc3\jcc3.lib issue to code in jcc other than the extra_link_args being set in python.py around line 1843. I don't see, at first glance, where %prefix% would be coming from. I think this bug can now be marked fixed, please reopen if you think it needs more work. Thank you again for all your work on this ! > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17523248#comment-17523248 ] Andi Vajda commented on PYLUCENE-62: Thank you for the fixes and explanations. I think I integrated your changes and even simplified things a bit more in python.py, now that we're including windows.py when --find-jvm-dll is set. I committed the changes to HEAD. Please, try this out again by setting --find-jvm-dll server and let me know if it all works. Thank you ! > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17523051#comment-17523051 ] Petrus Hyvönen commented on PYLUCENE-62: Hi Again, If including the windows.py module in the target package it works, as JCC is then not imported and default settings activated. I would find this model good from the perspective that the target code will not have JCC as a requirement and can be installed stand-alone. Attached [^fixes_with_inclusion _of_windows_module.patch] , to illustrate, you have seen this in a previous patch as well. Regards /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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: fixes_with_inclusion _of_windows_module.patch > 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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: small_fixes.patch > 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, 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17522949#comment-17522949 ] Petrus Hyvönen commented on PYLUCENE-62: Hi Andy, I have done some testing and I do not get it to work as expected with --find-jvm-dll server yet. Or simplest case is "python setup.py install" and then from python prompt "import jcc" that ends with a "ValueError: jvm.dll could not be found". Here there is no obvious possiblity to sett server/client and same applies for the library when wrapped as I understand. I probably haven't reflected much on the server/client duality, and just added path's in the environment that covered as much as possible.. As I don't know for sure the details of the jdk users use I would prefer if it searches both... with this I get it to work with my test scripts without problems. There seems to be a missing section under the non-shared mode code generated, here I think also the add_jvm_dll_directory_to_path is needed. I submit a patch with the stuff I have identified so far but it still has issues and will continue to work on it to see if I can get it to work without adding both server and client. The thing now sems to be that when the jcc.windows is imported it goes through the __init__.py of jcc which does not have the argument of --find-jvm-dll and thus defaults to client and fails. I thought the windows.py could also be included in the wrapped code, avoiding the dependency on jcc there? All the best, /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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17522433#comment-17522433 ] Andi Vajda commented on PYLUCENE-62: Does it work as expected if you pass --find-jvm-dll server to your command line ? > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17522078#comment-17522078 ] Petrus Hyvönen commented on PYLUCENE-62: Hi Andi, Thanks for the ping, got involved in other stuff but was planning to revisit this one. Got some time now over easter and will work on it coming days. Let me revisit it before commenting more but, yes I think there is some modifications needed - the line: python -c "import jcc; print(jcc._{_}file{_}{_})"{_} did not work for me in the test cases as I think the default java I use is having the server jvm.dll and with the default on client in JCC this would fail as I remember. 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17521968#comment-17521968 ] Andi Vajda commented on PYLUCENE-62: Hi Petrus, this issue seems to have stalled. Is it actually solved by the latest jvm_dll.diff patch attached here ? I'm preparing to release PyLucene 9.1.0 and it'd be nice to know if it still works on Windows ! (thanks) Andi.. > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17495042#comment-17495042 ] Andi Vajda commented on PYLUCENE-62: I'd like which kind of jvm.dll is used to not be random with regards to client or server kind. But if you prefer both to be searchable as well, we can add support for a "both" --find_jvm_dll value, that searches "client", then "server" (or the opposite, but again, not random)The default should remain "client" since that is what it's been doing for years. Also, it would be good to emit a log statement of some sort that says what jvm.dll (its full path) was found and added to the DLL path. Bullet 2: I can't bet that people wouldn't copy source code around. It's also easier to debug if the same code is emitted everywhere, regardless of platform, using conditional code as necessary. The stuff after SHARED is unchanged, your patch didn't touch it, nor did my changes. I'm wondering what to do about it, though, as it is also messing with PATH. Are you using --shared mode ? About "it doesn't work": I can't debug this as I don't have access to Windows. Here, on mac, the following works fine, of course: python -c "import jcc; print(jcc.__file__)". Could you please take the current patch and "make it work" or, if you'd like my help with debugging it, tell me more details about what doesn't actually work ? In particular, please, add print statements in the __init__.py and windows.py files as to what is going on until it eventually fails and send me the output. Thanks ! > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17494930#comment-17494930 ] Petrus Hyvönen commented on PYLUCENE-62: Hi, Thanks for the update - looks much cleaner! I would however really prefer that it searches both client and server directories, maybe if there is a need to select one could have that one as the first search choice? As it is now it gives an error if just "import jcc" on the python prompt (which I partly use as a test and could be unintuitive to the user). Default in my installation I'm having jvm in the server path. Just for my future understanding, on the bullet 2, to keep it unconditional on machine - as the target wrapped library is compiled I thought this was a safe bet that it wouldn't be moved around? The stuff in the SHARED must be an error when I made the patch, I initially modified each case but went for a joint thing in the start instead. something like in windows.py {color:#d4d4d4} {color}{color:#c586c0}for{color}{color:#d4d4d4} {color}{color:#9cdcfe}location{color}{color:#d4d4d4} {color}{color:#c586c0}in{color}{color:#d4d4d4} (({color}{color:#ce9178}'bin'{color}{color:#d4d4d4}, {color}{color:#9cdcfe}client_or_server{color}{color:#d4d4d4}),{color} {color:#d4d4d4} ({color}{color:#ce9178}'jre'{color}{color:#d4d4d4}, {color}{color:#ce9178}'bin'{color}{color:#d4d4d4}, {color}{color:#9cdcfe}client_or_server{color}{color:#d4d4d4}),{color} {color:#d4d4d4} ({color}{color:#ce9178}'bin'{color}{color:#d4d4d4}, 'server' if {color}{color:#9cdcfe}client_or_server=='client' else 'client'{color}{color:#d4d4d4}),{color} {color:#d4d4d4} ({color}{color:#ce9178}'jre'{color}{color:#d4d4d4}, {color}{color:#ce9178}'bin'{color}{color:#d4d4d4}, {color}{color:#d4d4d4}'server' if {color}{color:#9cdcfe}client_or_server=='client' else 'client'{color}{color:#d4d4d4}),{color} {color:#d4d4d4}){color} > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492230#comment-17492230 ] Andi Vajda commented on PYLUCENE-62: I also not sure what to about the code in __init__.py, after line 28, in the SHARED case ? Should the eggpath be added via os.add_dll_directory() as well ? Are you using shared mode ? > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492229#comment-17492229 ] Andi Vajda commented on PYLUCENE-62: I took a look at your patch and attached a version that should be less intrusive and work, hopefully, too: - you do not need to add windows.py to modules, it is already included and installed - you do need to keep code conditional to windows, you can't assume people are not going to carry code around between machines - in windows.py, I renamed get_jvm_dll_directory() to get_jvm_dll_directory_from_registry() and otherwise kept it unchanged - in windows.py, I added get_jvm_dll_directory_from_env() based on your code. - in windows.py, I also changed add_jvm_dll_directory_to_path() to do the right thing, like you did - I changed the --find-jvm-dll command line flag from a boolean to a string that must be one of "client" or "server" and made it default to "client" for python >= 3.8, None otherwise. Please, try the attached patch out by passing it --find-jvm-dll client (or server), I have no access to Windows, so I could not try it out myself. I verified that it didn't break on Mac. Thank you ! > 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, jvm_dll.diff > > > 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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda updated PYLUCENE-62: --- Attachment: jvm_dll.diff > 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, jvm_dll.diff > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492096#comment-17492096 ] Petrus Hyvönen commented on PYLUCENE-62: Did an attempt to use the add_jvm_dll_directory_to_path() approach, seems to work fine in the test environments I have. I took the order of picking up java from: JCC_JDK, JAVA_HOME and then registry. As it is now, the python3.8+ on windows does not care about the PATH at all. It could be added to scrape around in PATH as well, but hesitant to have too many places for it? Also added windows.py to the modules to be embedded to avoid the need of also installing JCC on the target package. > 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 > > > 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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: add_dll_win-1.patch > 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 > > > 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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491669#comment-17491669 ] Andi Vajda commented on PYLUCENE-62: As is, --find-jvm-dll shouldn't solve the issue because it modifies PATH and doesn't use the new os.add_dll_directory() function. If, on the other hand, you modify windows.py's add_jvm_dll_directory_to_path() to call os.add_dll_directory() instead of messing with Path, does --find-jvm-dll then solve the problem ? I have no access to Windows so I can't test any fix myself. Currently, windows.py's get_jvm_dll_directory() does not look on JAVA_HOME. I think that it's reasonable that it should do so, as well as looking in the Windows registry like it does already. Maybe it should look at JAVA_HOME first, then continue looking in the registry if nothing is found ? Your JAVA_HOME traversal code should be added to get_jvm_dll_directory() so that all this logic is in one place. > 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.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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491608#comment-17491608 ] Petrus Hyvönen commented on PYLUCENE-62: Hi! The current --find-jvm-dll does not solve the issue. I need to look into what --find-jvm-dll would do if using same logic and not JAVA_HOME, I am running several environments (conda) and would like to be sure that it accesses the right jvm, JAVA_HOME would seem like a way to ensure that it does indeed use the specified jvm? But the location of jvm within JAVA_HOME seems to vary a bit.. :) > 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.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)
[jira] [Comment Edited] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491471#comment-17491471 ] Andi Vajda edited comment on PYLUCENE-62 at 2/12/22, 11:34 PM: --- It looks like finding the jvm.dll is an old problem on Windows and python 3.8 just made it a bit worse. If you look in jcc3/__init__.py, which you modified in this patch, you can see that something similar is done when the --find-jvm-dll command line flag is set. The code in jcc3/windows.py has something a bit more involved than just relying on JAVA_HOME to locate this DLL. I think you should update the add_jvm_dll_directory_to_path() to use the new python 3.8 add_dll_directory() function instead of its current messing with the Path environment variable. If you think of making --find-jvm-dll the default on Windows/python3.8, then the add_jvm_dll_directory_to_path() function in windows.py should verify that jvm.dll isn't already findable, before adding another DLL path if necessary. Same issue with the changes in jcc3/python.py: you should not depend on JAVA_HOME but share the same logic in jcc3/windows.py (assuming that logic is still correct, of course). In other words, does --find-jvm-dll work for you ? (without your patch). was (Author: vajda): It looks like finding the jvm.dll is an old problem on Windows and python 3.8 just made it a bit worse. If you look in jcc3/__init__.py, which you modified in this patch, you can see that something similar is done when the --find-jvm-dll command line flag is set. The code in jcc3/windows.py has something a bit more involved than just relying on JAVA_HOME to locale this DLL. I think you should update the add_jvm_dll_directory_to_path() to use the new python 3.8 add_dll_directory() function instead of its current messing with the Path environment variable. If you think of making --find-jvm-dll the default on Windows/python3.8, then the add_jvm_dll_directory_to_path() function in windows.py should verify that jvm.dll isn't already findable, before adding a DLL path if necessary. Same issue with the changes in jcc3/python.py: you should not depend on JAVA_HOME but share the same logic in jcc3/windows.py (assuming that logic is still correct, of course). In other words, does --find-jvm-dll work for you ? (without your patch). > 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.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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491471#comment-17491471 ] Andi Vajda commented on PYLUCENE-62: It looks like finding the jvm.dll is an old problem on Windows and python 3.8 just made it a bit worse. If you look in jcc3/__init__.py, which you modified in this patch, you can see that something similar is done when the --find-jvm-dll command line flag is set. The code in jcc3/windows.py has something a bit more involved than just relying on JAVA_HOME to locale this DLL. I think you should update the add_jvm_dll_directory_to_path() to use the new python 3.8 add_dll_directory() function instead of its current messing with the Path environment variable. If you think of making --find-jvm-dll the default on Windows/python3.8, then the add_jvm_dll_directory_to_path() function in windows.py should verify that jvm.dll isn't already findable, before adding a DLL path if necessary. Same issue with the changes in jcc3/python.py: you should not depend on JAVA_HOME but share the same logic in jcc3/windows.py (assuming that logic is still correct, of course). In other words, does --find-jvm-dll work for you ? (without your patch). > 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.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)
[jira] [Closed] (PYLUCENE-53) JCC Default implementations from Interfaces not exposed
[ https://issues.apache.org/jira/browse/PYLUCENE-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen closed PYLUCENE-53. -- Resolution: Workaround Workaround identified in discussion. > JCC Default implementations from Interfaces not exposed > --- > > Key: PYLUCENE-53 > URL: https://issues.apache.org/jira/browse/PYLUCENE-53 > Project: PyLucene > Issue Type: Bug >Reporter: Petrus Hyvönen >Priority: Major > Attachments: Test_default_implementation.zip, update.zip > > > Hi, > This may be related to PYLUCENE-27 but not sure. > Default implementations of methods in an interface does not seem to be > exposed currently. > For example: > The interface: > interface Being { > public void printName(); > default int getFeets() > { > return 4; > } > } > Implemented in the class: > public class Cat extends Feline implements Being { > public void printName() { > System.out.println("Cat"); > } > public int getJavaFeets() > { > return this.getFeets(); > } > } > When wrapped in Python, the getJavaFeets is exposed to the Python side, but > not the getFeets method. > > > -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: add_dll_win.patch > 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.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)
[jira] [Commented] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17491402#comment-17491402 ] Petrus Hyvönen commented on PYLUCENE-62: Updates patch as the location of the fix was incorrect. > 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.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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: (was: add_dll_win.patch) > 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 > > 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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: (was: add_dll_win.patch) > 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.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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: add_dll_win.patch > 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.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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Description: 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. :) was: On recent versions of Python, the dll's needs 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. :) > 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.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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Attachment: add_dll_win.patch > 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.patch > > > On recent versions of Python, the dll's needs 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)
[jira] [Updated] (PYLUCENE-62) Not finding jvm.dll on windows
[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Petrus Hyvönen updated PYLUCENE-62: --- Description: On recent versions of Python, the dll's needs 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. :) > 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 > > On recent versions of Python, the dll's needs 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)
[jira] [Created] (PYLUCENE-62) Not finding jvm.dll on windows
Petrus Hyvönen created PYLUCENE-62: -- Summary: 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 -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Resolved] (PYLUCENE-52) JCC build fails with Python 3.8.
[ https://issues.apache.org/jira/browse/PYLUCENE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] A. Coady resolved PYLUCENE-52. -- Resolution: Fixed > JCC build fails with Python 3.8. > > > Key: PYLUCENE-52 > URL: https://issues.apache.org/jira/browse/PYLUCENE-52 > Project: PyLucene > Issue Type: Bug > Environment: linux >Reporter: A. Coady >Priority: Major > Attachments: pylucene-lpython.patch > > > JCC build fails with > {{/usr/bin/ld: cannot find -lpython3.8m}} > because 3.8 dropped the m flag. > https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Resolved] (PYLUCENE-61) `adoptopenjdk` succeeded by `temurin` on macOS.
[ https://issues.apache.org/jira/browse/PYLUCENE-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-61. Resolution: Fixed Committed revision 1895796. > `adoptopenjdk` succeeded by `temurin` on macOS. > --- > > Key: PYLUCENE-61 > URL: https://issues.apache.org/jira/browse/PYLUCENE-61 > Project: PyLucene > Issue Type: Bug > Environment: macOS >Reporter: A. Coady >Priority: Major > > {code:java} > % brew info adoptopenjdk > adoptopenjdk: 16.0.1,9 > https://adoptopenjdk.net/ > /usr/local/Caskroom/adoptopenjdk/16.0.1,9 (196.9MB) > From: > https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/adoptopenjdk.rb > ==> Name > AdoptOpenJDK Java Development Kit > ==> Description > JDK from the Java User Group (JUG) > ==> Artifacts > OpenJDK16U-jdk_x64_mac_hotspot_16.0.1_9.pkg (Pkg) > ==> Caveats > Temurin is the official successor to this software: > brew install --cask temurin > adoptopenjdk has been officially discontinued upstream. > It may stop working correctly (or at all) in recent versions of macOS. > {code} > The support for `darwin/adoptopenjdk` in `setup.py` is based on checking > whether `adoptopenjdk` is in `JAVAHOME`. Under `temurin`, the check defaults > to `darwin/home`, breaking the paths for `INCLUDES` and `LFLAGS`. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (PYLUCENE-52) JCC build fails with Python 3.8.
[ https://issues.apache.org/jira/browse/PYLUCENE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Allouche updated PYLUCENE-52: --- Attachment: pylucene-lpython.patch > JCC build fails with Python 3.8. > > > Key: PYLUCENE-52 > URL: https://issues.apache.org/jira/browse/PYLUCENE-52 > Project: PyLucene > Issue Type: Bug > Environment: linux >Reporter: A. Coady >Priority: Major > Attachments: pylucene-lpython.patch > > > JCC build fails with > {{/usr/bin/ld: cannot find -lpython3.8m}} > because 3.8 dropped the m flag. > https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (PYLUCENE-52) JCC build fails with Python 3.8.
[ https://issues.apache.org/jira/browse/PYLUCENE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17445964#comment-17445964 ] David Allouche commented on PYLUCENE-52: Apply this patch to compile lucene with python>=3.8. [^pylucene-lpython.patch] > JCC build fails with Python 3.8. > > > Key: PYLUCENE-52 > URL: https://issues.apache.org/jira/browse/PYLUCENE-52 > Project: PyLucene > Issue Type: Bug > Environment: linux >Reporter: A. Coady >Priority: Major > Attachments: pylucene-lpython.patch > > > JCC build fails with > {{/usr/bin/ld: cannot find -lpython3.8m}} > because 3.8 dropped the m flag. > https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Created] (PYLUCENE-61) `adoptopenjdk` succeeded by `temurin` on macOS.
A. Coady created PYLUCENE-61: Summary: `adoptopenjdk` succeeded by `temurin` on macOS. Key: PYLUCENE-61 URL: https://issues.apache.org/jira/browse/PYLUCENE-61 Project: PyLucene Issue Type: Bug Environment: macOS Reporter: A. Coady {code:java} % brew info adoptopenjdk adoptopenjdk: 16.0.1,9 https://adoptopenjdk.net/ /usr/local/Caskroom/adoptopenjdk/16.0.1,9 (196.9MB) From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/adoptopenjdk.rb ==> Name AdoptOpenJDK Java Development Kit ==> Description JDK from the Java User Group (JUG) ==> Artifacts OpenJDK16U-jdk_x64_mac_hotspot_16.0.1_9.pkg (Pkg) ==> Caveats Temurin is the official successor to this software: brew install --cask temurin adoptopenjdk has been officially discontinued upstream. It may stop working correctly (or at all) in recent versions of macOS. {code} The support for `darwin/adoptopenjdk` in `setup.py` is based on checking whether `adoptopenjdk` is in `JAVAHOME`. Under `temurin`, the check defaults to `darwin/home`, breaking the paths for `INCLUDES` and `LFLAGS`. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Closed] (PYLUCENE-60) we are providing the projects for mtech and btech students.
[ https://issues.apache.org/jira/browse/PYLUCENE-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda closed PYLUCENE-60. -- Resolution: Invalid This is spam, right ? > we are providing the projects for mtech and btech students. > --- > > Key: PYLUCENE-60 > URL: https://issues.apache.org/jira/browse/PYLUCENE-60 > Project: PyLucene > Issue Type: Blog - New Blog Request > Environment: python >Reporter: Nasima Takeoff >Priority: Trivial > Labels: btech, final, mtech, projects, python > Attachments: Python projects.png > > > h4. Python has been within the top 10 popular programming languages for an > extended time because the community of Python programmers has grown tons > thanks to its easy syntax and library support. during this article, Takeoff > will be able to introduce you to 60 amazing Python projects with ASCII text > files solved and explained by experts in [Takeoff > Projects|https://takeoffprojects.com/]. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (PYLUCENE-60) we are providing the projects for mtech and btech students.
Nasima Takeoff created PYLUCENE-60: -- Summary: we are providing the projects for mtech and btech students. Key: PYLUCENE-60 URL: https://issues.apache.org/jira/browse/PYLUCENE-60 Project: PyLucene Issue Type: Blog - New Blog Request Environment: python Reporter: Nasima Takeoff Attachments: Python projects.png h4. Python has been within the top 10 popular programming languages for an extended time because the community of Python programmers has grown tons thanks to its easy syntax and library support. during this article, Takeoff will be able to introduce you to 60 amazing Python projects with ASCII text files solved and explained by experts in [Takeoff Projects|https://takeoffprojects.com/]. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Resolved] (PYLUCENE-59) Python warns about missing __module__, but means that type names have no '.' in them.
[ https://issues.apache.org/jira/browse/PYLUCENE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andi Vajda resolved PYLUCENE-59. Resolution: Workaround > Python warns about missing __module__, but means that type names have no '.' > in them. > - > > Key: PYLUCENE-59 > URL: https://issues.apache.org/jira/browse/PYLUCENE-59 > Project: PyLucene > Issue Type: Improvement >Reporter: Erik Groeneveld >Priority: Trivial > > When starting JCC, Python emits warnings such as > {code:java} > DeprecationWarning: builtin type Object has no __module__ attribute > {code} > It does this because, early in de process of creating types, it does not find > a '.' in de name of the type. The warning is somewhat misleading. The code > from Python is (fragment from typeobject.c): > {code:java} > /* Set type.__module__ */ > s = strrchr(spec->name, '.'); > if (s != NULL) { > int err; > modname = PyUnicode_FromStringAndSize( > spec->name, (Py_ssize_t)(s - spec->name)); > if (modname == NULL) { > goto fail; > } > err = _PyDict_SetItemId(type->tp_dict, ___module__, modname); > Py_DECREF(modname); > if (err != 0) > goto fail; > } else { > if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, > "builtin type %.200s has no __module__ attribute", > spec->name)) > goto fail; > } > {code} > The name of the types in JCC do not include a package name and hence no dot. > Python 3.10 still does it like this. > The __module__ is set correctly later on in the JCC code! > Maybe you could add a package name (and a dot) to the typename to avoid these > warning? > I am just reporting this for your convenience and maybe it helps others > seeing these warnings. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PYLUCENE-59) Python warns about missing __module__, but means that type names have no '.' in them.
[ https://issues.apache.org/jira/browse/PYLUCENE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17383336#comment-17383336 ] Andi Vajda commented on PYLUCENE-59: I did 'fix' that as much as possible by setting it later as you saw in the code already. The warning is harmless and a proper fix to workaround what looks like a kludge in Python is more involved than the problem is worth. > Python warns about missing __module__, but means that type names have no '.' > in them. > - > > Key: PYLUCENE-59 > URL: https://issues.apache.org/jira/browse/PYLUCENE-59 > Project: PyLucene > Issue Type: Improvement >Reporter: Erik Groeneveld >Priority: Trivial > > When starting JCC, Python emits warnings such as > {code:java} > DeprecationWarning: builtin type Object has no __module__ attribute > {code} > It does this because, early in de process of creating types, it does not find > a '.' in de name of the type. The warning is somewhat misleading. The code > from Python is (fragment from typeobject.c): > {code:java} > /* Set type.__module__ */ > s = strrchr(spec->name, '.'); > if (s != NULL) { > int err; > modname = PyUnicode_FromStringAndSize( > spec->name, (Py_ssize_t)(s - spec->name)); > if (modname == NULL) { > goto fail; > } > err = _PyDict_SetItemId(type->tp_dict, ___module__, modname); > Py_DECREF(modname); > if (err != 0) > goto fail; > } else { > if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, > "builtin type %.200s has no __module__ attribute", > spec->name)) > goto fail; > } > {code} > The name of the types in JCC do not include a package name and hence no dot. > Python 3.10 still does it like this. > The __module__ is set correctly later on in the JCC code! > Maybe you could add a package name (and a dot) to the typename to avoid these > warning? > I am just reporting this for your convenience and maybe it helps others > seeing these warnings. -- This message was sent by Atlassian Jira (v8.3.4#803005)