-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JayDeBeApi throws AttributeError: '_jpype.PyJPField' object has no attribute 'getStaticAttribute' #99
Comments
See section "Direct access to private fields" here: |
Had the exact same issue — confirmed that pinning JPype (0.6.3) resolved for me as well. |
Pinning JPype worked for me too |
Hello, just a note that I've tested with current master (52a7da5) and the issue is fixed for me. |
This - pip install JPype1==0.6.3 --force-reinstall worked. |
I am using Python 3.7 through Anaconda. I am unable to force the Jpype1 to 0.6.3. In Jupyter I get the following: C:\Users\ab7y91\AppData\Local\Continuum\anaconda3\lib\site-packages\jpype1-0.7.0-py3.7-win-amd64.egg\jpype_core.py:210: UserWarning:Deprecated: convertStrings was not specified when starting the JVM. The default
|
Oracle integration uses jaydebeapi==1.1.1 and jpype1==0.7.0 python packages that are uncompatible. jaydebeapi==1.1.2 release address this issue. - baztian/jaydebeapi#99 - https://github.com/baztian/jaydebeapi#changelog
Oracle integration uses jaydebeapi==1.1.1 and jpype1==0.7.0 python packages that are uncompatible. jaydebeapi==1.1.2 release address this issue. - baztian/jaydebeapi#99 - https://github.com/baztian/jaydebeapi#changelog
I just ran into this too after installation, I was able to downgrade JPype1 this way: |
I used the “pip install JPype1==0.6.3 --force-reinstall” solution EmileSonneveld mentioned and it resolved my issue when I ran the code locally. However, I was trying to deploy my code to AWS Lambda using Jenkins. When I installed JayDeBeApi it relied on JPype1 and installed the 0.7.1 version. I then did a pip installed JPype1 version 0.6.3 using EmileSonneveld’s solution. When my code ran on Lambda it utilized the 0.7.1 version of JPype1. I was able to resolve this issue by putting the JPype1 install ahead of the JayDeBeApi install in my requirements.txt file as: |
i have same question, btw, i hope use python 3.8 in my test,but JayDeBeApi is not support as well, follow this issue. wish this problem sovled quickly. |
Installed jaydebeapi two days ago, I had the same incompatibility issue with jpype 0.7.0, I had to downgrade jpype to 0.6.3. And jpype 0.6.3 is incompatible with latest python 3.8.1, so also had to downgrade python to 3.7.6. |
i ues this version on Windows 10 ,but i have fatal exception
|
In the def of
|
@hunnifer's solution worked for me too. However, instead of restoring the whole code block I just corrected the incorrect call. Should work fine unless JPype ver < 0.7. \jaydebeapi\init.py (~ Line 183)
|
I too got things working with this workaround. Is a proper fix for this issue available? |
Forcing a reinstall of the old version How to fix this, without downgrading JPype1? |
Should be fixed in the current version |
This error is returned when JayDeBeApi is used with the latest version of JPype (0.7.0).
With the previous version of JPype (0.6.3) no problem.
We use JayDeBeApi in our Databricks environment which installs by default the latest JPype version. Overriding this with 0.6.3 version solves the problem.
The text was updated successfully, but these errors were encountered: