-
Notifications
You must be signed in to change notification settings - Fork 6
Issue with python3 unicode vs string and pyjnius #1
Comments
If the variable being passed in as "text" is a unicode_literal, I bet JNIus Going to take a wild guess that the line: Can be replaced with: I'm going to look at JNIus autocast code and try to make the real fix. On Fri, Nov 29, 2013 at 8:06 PM, Kovak [email protected] wrote:
|
The error is related to the find_javaclass method invoked in autocast it expects bytes but receives a unicode string. I haven't been successful in converting the unicode_literal to bytes using the documented 'encode' method or the shorthand b'string' method. |
Sounds like the change is needed in jnius. A lot of our jnius modules will On Sat, Nov 30, 2013 at 7:44 PM, Kovak [email protected] wrote:
|
Took a look at this issue again and I was too tired to notice last night that I missed some problematic instances and that is why I was having trouble. This works fine with pyjnius in python2 when done like this:
Should help anyone perhaps preparing for the jump to python3 using the |
I got into the jnius source but was on the wrong trail. I'll close this On Sun, Dec 1, 2013 at 9:12 PM, Kovak [email protected] wrote:
|
Hey Knappador,
I have been using kivy toaster in a project, however they are wanting to prepare for python3, so we are doing
at the beginning of all our files.
This is resulting in a crash when trying to use a toast on Android with this error:
I am looking into a fix for this, but I'm a little out of my depth and was hoping you might have an idea.
Thanks,
Kovak
The text was updated successfully, but these errors were encountered: