You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bind-mounted project dirs failed on `buildozer init` with permission
denied because container UID/GID didn't match the host.
Add a lean entrypoint that maps the container user to the host UID/GID
execs buildozer, fixing writes to `/home/user/hostcwd`.
See command used and error output:
```
docker run --volume "$(pwd)":/home/user/hostcwd kivy/buildozer init
Traceback (most recent call last):
File "/home/user/.venv/bin/buildozer", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/user/.venv/lib/python3.12/site-packages/buildozer/scripts/client.py", line 16, in main
Buildozer().run_command(sys.argv[1:])
File "/home/user/.venv/lib/python3.12/site-packages/buildozer/__init__.py", line 672, in run_command
getattr(self, cmd)(*args)
File "/home/user/.venv/lib/python3.12/site-packages/buildozer/__init__.py", line 711, in cmd_init
buildops.file_copy(join(dirname(__file__), 'default.spec'), 'buildozer.spec')
File "/home/user/.venv/lib/python3.12/site-packages/buildozer/buildops.py", line 108, in file_copy
copyfile(source, target)
File "/usr/lib/python3.12/shutil.py", line 262, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'buildozer.spec'
```
0 commit comments