-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Python3 Branch: jinja2 traceback on buildozer --verbose android debug #322
Comments
Fixed by running: sudo pip3 install markupsafe Recommend add dependency for install of markupsafe. |
Next Traceback: Traceback (most recent call last):
File "build.py", line 506, in <module>
make_package(args)
File "build.py", line 286, in make_package
manifest_extra=manifest_extra,
File "build.py", line 72, in render
text = template.render(**kwargs)
File "buildlib/jinja2-py3.egg/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "buildlib/jinja2-py3.egg/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "buildlib/jinja2-py3.egg/jinja2/_compat.py", line 36, in reraise
raise value.with_traceback(tb)
File "templates/AndroidManifest.tmpl.xml", line 14, in <module>
{% if args.min_sdk_version >= 9 %}
TypeError: unorderable types: str() >= int() Patch to Fix is: {% if args.min_sdk_version|int >= 9 %} |
Next Traceback:
Patch to Fix is:
Both of this error and the last are solved by casting the str to int. |
Fixes committed here: https://github.com/FeralBytes/python-for-android |
So, basicly with these changes we can run and execute Python3 code; syntax. But not any new Python 3 features. This was enough for me, that I only had to change 2 lines of code to do things the Python 2 way, but all of my code is written using Python 3 syntax. |
Markupsafe issue has been fixed in master |
This issue is specific to inclement's Python3 branch of Kivy Py4A.
The text was updated successfully, but these errors were encountered: