Unable to build .apk because 'Permission Denied'

278 views
Skip to first unread message

Adrian Flores

unread,
Apr 25, 2023, 12:09:22 PM4/25/23
to Kivy users support
I'm trying to run an example from github: https://github.com/Android-for-Python/Multi-Service-Example and I am unable to run the buildozer -v android debug command to build the .apk. I get error saying I do not have permission to do the following:

/usr/bin/mv: cannot move 'Python-3.9.9' to '/mnt/c/Users/Owner/source/repos/Test/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a_x86_64/build/other_builds/hostpython3/desktop/hostpython3': Permission denied.

Not really sure what the issue is. I built the buildozer.spec using 'buildozer init' and made the changes described in the github and I get that error. When I try to create a fresh project (main.py, new buildozer.spec, etc.) I also get this error, so I don't think it is a problem with the github repo. Any ideas? Thanks.

Aakash Aarya

unread,
Apr 25, 2023, 12:12:19 PM4/25/23
to kivy-...@googlegroups.com
Remove debug=true in main.py file.
And change file and folder permission to 777
Chmod 7777 [filename]

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d7891f7a-7afa-451b-89fe-dbfae61bbdb1n%40googlegroups.com.

Adrian Flores

unread,
Apr 25, 2023, 12:37:59 PM4/25/23
to Kivy users support
That worked, thanks!

Robert

unread,
Apr 25, 2023, 12:38:18 PM4/25/23
to Kivy users support
The issue is computer system management. Particularly there is a problem in your WSL account management.

More generally you are building on the Windows partition:

Chandan Yadav

unread,
Apr 25, 2023, 1:01:09 PM4/25/23
to kivy-...@googlegroups.com
I am unable to run kivy project
While I run face error
CRITICAL ERROR : Unable to get image provider.

Aakash Aarya

unread,
Apr 25, 2023, 1:04:22 PM4/25/23
to kivy-...@googlegroups.com
Install img provider  in your system. And recheck  sdl2 is working properly or not

Robert

unread,
Apr 25, 2023, 1:57:49 PM4/25/23
to Kivy users support
Are you still building on the windows partition?

There is an issue with Buildozer install, re-check the install dependencies
https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst#targeting-android

And more generally post the full error message including lines before for context.

Robert

unread,
Apr 25, 2023, 1:58:44 PM4/25/23
to Kivy users support
Are you using ChatGPT to try to answer questions?
Reply all
Reply to author
Forward
0 new messages