-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Hello guys,
For using RESTful API, I had to install and use requests package.
So, for building the app, I had to do:
./distribute.sh -m "kivy requests==2.1.0 urllib3"
After making and installing the app, it would not open on my HTC.
Debugging it using adb logcat I noticed an error related to my problem:
SyntaxError: Non-ASCII character '\xa3' in file when function returns...
in the file:
/data/data/a.b.c/files/lib/python2.7/site-packages/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py
Taking a look at the packages within the path, I noticed all files have the extension pyo but this one was in py. I changed the extension to pyo and it solved my problem. The app opened successfully.
So I guess there is a bug or something with the converter for not distributing it in pyo?