- Apr 5, 2023
- 30
- 55
Hello, I'm having some trouble building the Android APK for my game.
I'm really not well-versed in Python, but it seems to be a permission error caused by Python failing to call a directory in Windows, maybe?
I am running Ren'Py as an administrator and I'm using the latest version of Python.
I'm curious if anyone knows of some way for a simple-minded person like myself to solve this problem.
Thanks!
I'm really not well-versed in Python, but it seems to be a permission error caused by Python failing to call a directory in Windows, maybe?
Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/android.rpy", line 528, in <module>
File "game/android.rpy", line 224, in android_build
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\usr\\Google Drive\\works\\renpy build directories\\renpy-7.4.11-sdk\\tmp\\Singularity\\android.dist\\assets\\game\\audio\\music'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "launcher/game/android.rpyc", line 528, in script
File "C:\Users\usr\Google Drive\works\renpy build directories\renpy-7.4.11-sdk\renpy\ast.py", line 1131, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\usr\Google Drive\works\renpy build directories\renpy-7.4.11-sdk\renpy\python.py", line 1061, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/android.rpy", line 528, in <module>
File "game/android.rpy", line 224, in android_build
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 749, in rmtree
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 622, in _rmtree_unsafe
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 622, in _rmtree_unsafe
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 622, in _rmtree_unsafe
[Previous line repeated 1 more time]
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 631, in _rmtree_unsafe
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/shutil.py", line 629, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\usr\\Google Drive\\works\\renpy build directories\\renpy-7.4.11-sdk\\tmp\\Singularity\\android.dist\\assets\\game\\audio\\music'
Windows-10-10.0.22621 AMD64
Ren'Py 8.0.3.22090809
Ren'Py Launcher 8.0.3.22090809
Wed Apr 5 10:08:44 2023
I'm curious if anyone knows of some way for a simple-minded person like myself to solve this problem.
Thanks!
Last edited: