PyBoof icon indicating copy to clipboard operation
PyBoof copied to clipboard

Java 17 breaking PyBoof

Open j3r3mias opened this issue 4 years ago • 7 comments

Hi, I installed and tested PyBoof two times, one using pip and then other using the source (SNAPSHOT) to test qr-code and micro-qr-codes detection, but none of them worked. After the installation I ran microqr_detect.py and qrcode_detect.py that returned zero detections using all the images provided in data @ 526f3a9.

I'm using python 3.8.10 and open-jdk 17.0.3.

j3r3mias avatar May 06 '22 03:05 j3r3mias

thanks. Just verified it. A lot of other stuff is messed up also. I'm a little perplexed what went wrong as everything gets tested carefully before a release.

lessthanoptimal avatar May 06 '22 04:05 lessthanoptimal

something external to the PyBoof code base is now horribly broken. Java fields can no longer be accessed and lists are returned as empty. Most of the examples no longer work. Updating Py4j didn't fix it.

lessthanoptimal avatar May 06 '22 04:05 lessthanoptimal

This appears to be an issue with Java 17. Everything worked when I reverted to Java 15. Most likely caused by more restrictions. I'll work on this more when I have a chance.

lessthanoptimal avatar May 06 '22 05:05 lessthanoptimal

I have the same issue. QR code detector returns nothing for Java 17. Does anyone have a solution to this?

dogadogan avatar Jun 08 '22 15:06 dogadogan

Might be stuck until Py4J resolves this problem:

https://github.com/py4j/py4j/issues/485

ETA on the fix is end of July 2022

lessthanoptimal avatar Jul 05 '22 14:07 lessthanoptimal

@dogadogan Only fix I know is to revert to an older version of Java. I tried disabling some of the new security features in Java and that didn't fix it. Seems to be a more low level issue with Py4J and based on the comments there's no trivial fix.

lessthanoptimal avatar Jul 05 '22 14:07 lessthanoptimal

Updated Py4J and Java 17 is no longer an issue

lessthanoptimal avatar Sep 13 '22 18:09 lessthanoptimal