Skip to content
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

Can not build APK file with buildozer. UnicodeDecodeError #746

Closed
TheOldSailor opened this issue Nov 17, 2018 · 2 comments
Closed

Can not build APK file with buildozer. UnicodeDecodeError #746

TheOldSailor opened this issue Nov 17, 2018 · 2 comments

Comments

@TheOldSailor
Copy link

When I am packing with buildozer my app for android, I get UnicodeDecodeError. Log2 is attached together with buildozer build.py. I will be very appreciate if somebody could help me. OS: UBUNTU 16.04. I am trying on python 2.7 and 3.5, get same error. Link with files: https://yadi.sk/d/F76tP019ZAKRLA

@AndreMiras
Copy link
Member

Hi @TheOldSailor thanks for the bug report.
The tool you used for uploading your debug info is not so convenient for the developers, because we need to download the file and cannot check it on place.

The problem comes from the app name Verbos irregulares en Españo change the ñ by a n and it should be fine. But yes that's a bug. Here's the relevant info for record:

Could not find hostpython, will not compile to .pyo (this is normal with python3)
No compiled python is present to zip, skipping.
this should only be the case if you are using the CrystaX python
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/santos16/Compile1/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/santos16/Compile1/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/santos16/Compile1/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/santos16/Compile1/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 150, in wrapper_func
    func(self, args)
  File "/home/santos16/Compile1/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 754, in apk
    build_args = build.parse_args(args.unknown_args)
  File "/home/santos16/Compile1/.buildozer/android/platform/build/dists/verbosirregulares/build.py", line 567, in parse_args
    make_package(args)
  File "/home/santos16/Compile1/.buildozer/android/platform/build/dists/verbosirregulares/build.py", line 374, in make_package
    private_version=str(time.time()))
  File "/home/santos16/Compile1/.buildozer/android/platform/build/dists/verbosirregulares/build.py", line 77, in render
    text = template.render(**kwargs)
  File "/home/santos16/.local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/home/santos16/.local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/santos16/Compile1/.buildozer/android/platform/build/dists/verbosirregulares/templates/strings.tmpl.xml", line 6, in top-level template code
    <string name="urlScheme">{{ url_scheme }}</string>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128)
# Command failed: /usr/bin/python -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name verbosirregulares --name 'Verbos irregulares en Españo' --version 1.0 --package com.seafarershobby.verbosirregulares --android_api 19 --minsdk 9 --private /home/santos16/Compile1/.buildozer/android/app --orientation sensor --copy-libs --arch armeabi-v7a --color=always --storage-dir="/home/santos16/Compile1/.buildozer/android/platform/build"

@TheOldSailor
Copy link
Author

Thank you very much for your patience and professionalism!!! Now it is working and I got my first apk! Great!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants