Line 81, could not find return label

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.
Post Reply
Message
Author
yoshibb
Veteran
Posts: 202
Joined: Thu Nov 27, 2014 12:37 pm
Contact:

Line 81, could not find return label

#1 Post by yoshibb » Fri Dec 05, 2014 8:18 pm

I've just started using ren'py and I feel like I'm getting the hang of it. However, about three different times now, I have saved my Editra script file and this error will pop up when I reload my game.
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 81, in script
return
Exception: Could not find return label (u'/Users/j****l*****/Downloads/renpy-6.18.3-sdk 2/A&D/game/script.rpy', 1417824423, 179).

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/common/00start.rpy", line 81, in script
return
File "/Users/j****l****/Downloads/renpy-6.18.3-sdk 2/renpy/ast.py", line 1331, in execute
next_node(renpy.game.context().lookup_return(pop=True))
File "/Users/j****l****/Downloads/renpy-6.18.3-sdk 2/renpy/execution.py", line 391, in lookup_return
raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'/Users/j****l****/Downloads/renpy-6.18.3-sdk 2/A&D/game/script.rpy', 1417824423, 179).

Darwin-10.8.0-i386-64bit
Ren'Py 6.18.3.761
A&D 0.0
I don't know why this happens. I don't do anything differently, it just shows up. The only way I've found to continue is to uninstall and reinstall renpy again. Then it works, even though all the text and images I use in the new file are the same. I really don't want to have to do this every time, and it just happened again, so is there any way to fix this?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Line 81, could not find return label

#2 Post by PyTom » Fri Dec 05, 2014 11:33 pm

If it happens again, please send me the game, including the saves directory. I'd like to see what's going on here.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Mithrilda
Regular
Posts: 26
Joined: Mon Oct 13, 2014 2:01 pm
Contact:

Re: Line 81, could not find return label

#3 Post by Mithrilda » Sat Dec 06, 2014 12:06 am

PyTom wrote:If it happens again, please send me the game, including the saves directory. I'd like to see what's going on here.
It happens to me all the time too... I just turn it off and come back the next day and it's fine. It's really weird.

Nova Alamak
Regular
Posts: 71
Joined: Sun Jun 08, 2014 1:45 pm
Contact:

Re: Line 81, could not find return label

#4 Post by Nova Alamak » Fri Feb 06, 2015 5:13 pm

Having the same problem but it does not go away as the second poster said. I tried making a return statement on other lines in other labels and they worked, so I'm puzzled as to why the particular one I'm having this same error on is any different.

EDIT: On a second look, the exception also doesn't use a folder location that exists on my computer:

Code: Select all

Exception: Could not find return label (u'/home/tom/ab/renpy/renpy/common/00console.rpy', 1395985268, 60).
tom/ab/renpy etc. is a totally foreign location. Does that mean anything?

Post Reply

Who is online

Users browsing this forum: Google [Bot]