-
Notifications
You must be signed in to change notification settings - Fork 257
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
Strings Encoding Issues in Python 3 due to latest Cython updates #300
Comments
The same issue on Cython (0.27.1) Python 3.6 macos 10.13 JDK 1.8. Stack = autoclass('java.util.Stack') output: world |
The issue is resolved by modifying |
There's also #285 to resolve this. |
This is a problem with pyjnius and the most recent versions of cython which corrupt Python strings passed to Java methods. Explicitly constructing a Java string to pass to Java does work, so this is the solution used here.
This is a problem with pyjnius and the most recent versions of cython which corrupt Python strings passed to Java methods. Explicitly constructing a Java string to pass to Java does work, so this is the solution used here.
Should this be closed now that PR ( #285 ) is merged or is this still outstanding? |
one workaround from @Ariel-Lieberman using
|
Resolved by #285. If the issue still persists, open a new issue and reference old ones if they are related. This one is rather messy together with the references. |
Also upgrade pyjnius to the latest release which fixes the long-standing Python 3 string conversion bug (kivy/pyjnius#300). This seems to have changed how interfaces/subclasses behave, so some new casts and alternative BioFormats API use was needed. Nothing was needed specifically for the BioFormats 6 change itself, though.
Also upgrade pyjnius to the latest release which fixes the long-standing Python 3 string conversion bug (kivy/pyjnius#300). This seems to have changed how interfaces/subclasses behave, so some new casts and alternative BioFormats API use was needed. Nothing was needed specifically for the BioFormats 6 change itself, though. The pyjnius update supports newer Java versions than 8, so we might as well upgrade to Java 11.
The latest release version of Cython (0.27.1) is causing pyjnius issues related to string encoding. I have experienced this issue in Python 3.5 for Ubuntu 16.04 (fresh installation).
The issue is as follows.
When I install pyjnius using Cython 0.25.2, this issue is resolved.
Also, this issue does not occur with Python 2.7.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: