Setting p4a.source_dir in buildozer causes AttributeError: module 'build' has no attribute 'parse_args_and_make_package'
See original GitHub issueVersions
- Python: 3.7.5
- OS: Linux
- Kivy: 1.11.1
- Cython: 0.29.16
Description
Setting a custom p4a source dir using a freshly cloned ‘develop’ branch and then building an APK results in a traceback mentioning an AttributeError:
Traceback (most recent call last):
File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/zedr/src/python-for-android/pythonforandroid/toolchain.py", line 1231, in <module>
main()
File "/home/zedr/src/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/zedr/src/python-for-android/pythonforandroid/toolchain.py", line 688, in __init__
getattr(self, command)(args)
File "/home/zedr/src/python-for-android/pythonforandroid/toolchain.py", line 155, in wrapper_func
func(self, args, **kw)
File "/home/zedr/src/python-for-android/pythonforandroid/toolchain.py", line 1099, in apk
output, build_args = self._build_package(args, package_type='apk')
File "/home/zedr/src/python-for-android/pythonforandroid/toolchain.py", line 1000, in _build_package
build_args = build.parse_args_and_make_package(
AttributeError: module 'build' has no attribute 'parse_args_and_make_package'
The error does not occur if I use the master branch instead.
buildozer.spec
Command:
python3.7 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name letter_trail --name 'Letter Trail' --version 0.1.0 --package com.zedr.games.letter_trail --minsdk 21 --ndk-api 21 --private /home/zedr/src/trail/.buildozer/android/app --permission INTERNET --permission WAKE_LOCK --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --orientation portrait --window --wakelock --copy-libs --local-recipes /home/zedr/src/trail/recipes --arch armeabi-v7a --color=always --storage-dir="/home/zedr/src/trail/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
Spec file:
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
p4a.source_dir = ~/src/python-for-android
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Kivy Buildozer AttributeError: 'Context' object has no ...
I'm trying to build an apk for a simple python3/kivy app using buildozer in the virtual machine I got straight from kivy.org, ...
Read more >buildozer 0.36
you to have a ready to use vm for building android application. ... Buidozer 0.33 AttributeError: 'module' object has no attribute 'directory' ...
Read more >Installation — Buildozer 0.11 documentation
Buildozer tries to give you hints or tries to install few things for you, but it doesn't cover every situation. First, install the...
Read more >(buildozer) AttributeError: 'pyrx' object has no attribute ' ...
When I run buildozer ("buildozer android debug build run logcat") and start the mining process (so rx_slow_hash is called) on my Pixel 5,...
Read more >'org.kivy.android.PythonActivity' object has no attribute ' ...
PythonActivity' object has no attribute 'changeKeyboard' ... File "/home/nick/Collision2048/.buildozer/android/platform/build-armeabi-v7a/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm… now it isn’t happening. I was running into another error (not while setting the p4a source dir) related to not having
libssl-dev
installed. Error wasAfter I
apt install libssl-dev
, it appears that I’ve fixed both my errors (??).Hi, in case anybody is having the same problem: I fixed it by executing
buildozer android clean
and thenbuildozer android release
again.The build takes much longer now, and I do not know why it broke, or why this seems to fix it, but at least it is working now.