You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError when importing files containing \N{name} escape sequence #1060
Attempting to run an apk that imports a module using a unicode string with a \N{name} escape sequence will result in an ImportError. Inspecting the apk will show that the relevant files are indeed missing from the installation. This occurs when attempting to use httplib2 (someone filed a Kivy bug for this at kivy/kivy#2499, but apparently never filed one for p4a), as well as for BeautifulSoup. The apk is built successfully; however, for whatever reason, the affected files are omitted entirely. This is easily reproducible.
For anyone interested, the relevant httplib2 file is httplib2.iri2uri, and the relevant BeautifulSoup is bs4.builder._htmlparser.
I'm assuming this is a bug, rather than the result of some sort of flagged that I've missed.
Activity
VineethRaghavan commentedon Jul 7, 2017
I too had the same problem when I was using python 2.7. There is a link that has a solution regarding this:
kivy/buildozer#135
I don't know if it works since I switched to Python 3.6 to avoid unicode errors.
Julian-O commentedon Nov 18, 2023
Closing as stale because it seems to only apply to Python 2.7.
If you are still seeing this, please let us know.