Q
Q
qpyparty2021-03-23 18:56:14
Python
qpyparty, 2021-03-23 18:56:14

How to fix an error when converting a kivy project to an apk file?

Error text:
Traceback (most recent call last):
File "/home/badcoder/.local/bin/buildozer", line 8, in
sys.exit(main())
File "/home/badcoder/.local/lib/ python3.8/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/badcoder/.local/lib/python3. 8/site-packages/buildozer/__init__.py", line 1047, in run_command
self.target.run_commands(args)
File "/home/badcoder/.local/lib/python3.8/site-packages/buildozer/target. py", line 92, in run_commands
func(args)
File "/home/badcoder/.local/lib/python3.8/site-packages/buildozer/target.py", line 102, in cmd_debug
self.buildozer.prepare_for_build()
File "/home/badcoder/.local/lib/python3.8/site-packages/buildozer/__init__.py", line 169, in prepare_for_build
self.target.install_platform()
File "/home/badcoder/.local/lib /python3.8/site-packages/buildozer/targets/android.py", line 665, in install_platform
self._install_android_ndk()
File "/home/badcoder/.local/lib/python3.8/site-packages/buildozer/ targets/android.py", line 455, in _install_android_ndk
self.buildozer.download(url,
File "/home/badcoder/.local/lib/python3.8/site-packages/buildozer/__init__.py", line 677, in download
urlretrieve(url, filename, report_hook)
File "/usr/lib/python3.8/urllib/request.py", line 1818, in retrieve
block = fp.read(bs)
File "/usr/lib/python3.8/tempfile.py", line 474, in func_wrapper
return func(*args, **kwargs)
ValueError: read of closed file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2021-03-23
@pyparty

Most likely, you need to manually download the ndk file and put it in /home/badcoder/.buildozer/android/platform/
or fix the download URL in /site_packages/buildozer/targets/android.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question