kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.74k stars 499 forks source link

Again: AttributeError: 'str' object has no attribute 'decode #1561

Closed alxd closed 1 year ago

alxd commented 1 year ago

I just did a pip install and had the same issue

Found a solution on stackoverflow as well: I had same issue, i just edited the error file and remove stdout. from : avdmanager('list', 'target').stdout.decode('utf-8').split('\n'). to : avdmanager('list', 'target').split('\n') https://stackoverflow.com/questions/75405703/python-for-android-attributeerror-avdmanager-bug-when-building-with-buildozer

Versions Python: 3.8 OS: Ubuntu 20.04.4 LTS on WSL Windows 10 Buildozer 1.5.0 - seems to be the latest: Releases 9 1.5.0 (2023-01-28)

buildozer android release

Search for Git (git) -> found at /usr/bin/git Search for Cython (cython) -> found at /home/alex/.local/bin/cython Search for Java compiler (javac) -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac Search for Java keytool (keytool) -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool Install platform Run ['git', 'config', '--get', 'remote.origin.url'] Cwd /mnt/c/Python38/share/kivy-examples/camera/.buildozer/android/platform/python-for-android https://github.com/kivy/python-for-android.git Run ['git', 'branch', '-vv'] Cwd /mnt/c/Python38/share/kivy-examples/camera/.buildozer/android/platform/python-for-android

Same previous bug: https://github.com/kivy/buildozer/issues/756

          Thanks for the bug report. Yes this is a bug recently introduced in https://github.com/kivy/python-for-android/pull/1475

Until this is fixed, you can edit pythonforandroid/recipes/android/__init__.py and remove decode('utf-8') part from the self.ctx.bootstrap.name.decode('utf-8') line

Originally posted by @AndreMiras in https://github.com/kivy/buildozer/issues/756#issuecomment-443350792

misl6 commented 1 year ago

Fixed via https://github.com/kivy/python-for-android/pull/2746

We also have made an emergency release to target this issue: https://github.com/kivy/python-for-android/releases/tag/v2023.02.10

Please delete your .buildozer folder and try again.

github-actions[bot] commented 1 year ago

👋 @alxd, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.