buildozer: [Errno 13] Permission denied:
- Python: 3.7
- OS: Windows 10
- Buildozer: buildozer 1.0
Description
// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?
buildozer.spec
buildozer android debug `
Spec file:
// REPLACE ME: Paste your buildozer.spec file here
Logs
Traceback (most recent call last): File “/home/ren/.local/bin/buildozer”, line 8, in <module> sys.exit(main()) File “/home/ren/.local/lib/python3.6/site-packages/buildozer/scripts/client.py”, line 13, in main Buildozer().run_command(sys.argv[1:]) File “/home/ren/.local/lib/python3.6/site-packages/buildozer/init.py”, line 1071, in run_command self.target.run_commands(args) File “/home/ren/.local/lib/python3.6/site-packages/buildozer/target.py”, line 92, in run_commands func(args) File “/home/ren/.local/lib/python3.6/site-packages/buildozer/target.py”, line 104, in cmd_debug self.buildozer.build() File “/home/ren/.local/lib/python3.6/site-packages/buildozer/init.py”, line 211, in build self.build_application() File “/home/ren/.local/lib/python3.6/site-packages/buildozer/init.py”, line 739, in build_application self._copy_application_libs() File “/home/ren/.local/lib/python3.6/site-packages/buildozer/init.py”, line 839, in _copy_application_libs copytree(self.applibs_dir, join(self.app_dir, ‘_applibs’)) File “/usr/lib/python3.6/shutil.py”, line 365, in copytree raise Error(errors) shutil.Error: [(‘/mnt/f/helo/.buildozer/applibs’, ‘/mnt/f/helo/.buildozer/android/app/_applibs’, “[Errno 13] Permission denied: ‘/mnt/f/helo/.buildozer/android/app/_applibs’”)]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (12 by maintainers)
Based on first post where Python complains that it cannot access directory:
shutil.Error: [('/mnt/f/helo/.buildozer/applibs', '/mnt/f/helo/.buildozer/android/app/_applibs', "[Errno 13] Permission denied: '/mnt/f/helo/.buildozer/android/app/_applibs'")]
So your project is inside F:\helo\ at Windows side.
Just grant full control access to folder F:\helo\ at Windows to your current Windows user.
If your “WindowsUsername” is not listed in your directory properties, click Edit button and add it first.
solve it… chmod 777 -R /home/YOURWSLNAME/.buildozer/
@Marcinosoft Thank you very much . You saved my time and you knew the solution. But, if this not working for you please try to know if you are missing other libraries. I have Windows 10, and Ubuntu VM - you shouldn’t use root to run buildozer
If someone would ever wonder, you can open root WSL directory on your windows by typing “cd ~” in ubuntu and next typing "explorer.exe . "
You’re wrong. Wanna proof of my Windows setup? I faced exactly same issue yesterday.
PS. I just reproduced it twice. Windows user require full access control to be able to pass shuil.py copy under Linux (in my case Ubuntu 20.04 LTS) by buildoizer. It may be significant, that I’m using WSL version 1 (not version 2). Why I’m using WSL v1 ? Because v2 require additional virtualization Windows features which are not compatible with Nox Android Emulator for example. How to switch between WSL 1 and 2 ?
@hladkky Fixed by installing libtool.
sudo apt-get install -y libtool
Do sudo su. Install the buildozer later
Permission problem probably from using root(sudo -s) while typing commands!
The second one is a different error and it says exactly what the problem is 😮