Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Good afternoon!
I'm trying to build an android version of my game. There were no problems with the last version. But now I get this error and I don't know what to do. I uninstalled and reinstalled rapt, but no result.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/android.rpy", line 523, in <module>
File "game/android.rpy", line 222, in android_build
WindowsError: [Error 5] : u'E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist\\assets\\game\\audio'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "launcher/game/android.rpyc", line 523, in script
File "renpy/ast.py", line 928, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2245, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/android.rpy", line 523, in <module>
File "game/android.rpy", line 222, in android_build
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 279, in rmtree
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 277, in rmtree
WindowsError: [Error 5] : u'E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist\\assets\\game\\audio'
Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Ren'Py Launcher 7.4.11.2266
Sun Mar 10 15:29:53 2024
def android_build(p=None, gui=True, bundle=False, install=False, launch=False, destination=None, opendir=False):
"""
This actually builds the package.
"""
if p is None:
p = project.current
update_android_json(p, gui)
dist = p.temp_filename("android.dist")
if os.path.exists(dist):
shutil.rmtree(dist) #<------------------------------------------------------ exception is here
So unless it's caused by something further up in the stack, I doubt it's a bug that has since been fixed, but more likely is something to do with your local folder.
Deleting this folder should fix the issue: E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist