After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'

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
User avatar
Dream_maker
Newbie
Posts: 4
Joined: Sun Dec 19, 2021 4:44 pm
Contact:

After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'

#1 Post by Dream_maker » Mon Jun 27, 2022 11:48 am

Hi there!
After Renpy update from 7.4 to 7.5, this code:

define gui.main_menu_background = Movie(play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"], loop=True, size=(1920, 1080))

started to cause an error:

I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/gui.rpy", line 89, in script
define gui.main_menu_background = Movie(play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"], loop=True, size=(1920, 1080))
File "game/gui.rpy", line 89, in script
define gui.main_menu_background = Movie(play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"], loop=True, size=(1920, 1080))
File "game/gui.rpy", line 89, in <module>
define gui.main_menu_background = Movie(play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"], loop=True, size=(1920, 1080))
AttributeError: 'RevertableList' object has no attribute 'lstrip'


In 7.4 the code works without problems. What could be the reason?
Attachments
traceback.txt
(2.12 KiB) Downloaded 5 times
Last edited by Dream_maker on Mon Jun 27, 2022 11:55 am, edited 1 time in total.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1882
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'

#2 Post by Ocelot » Mon Jun 27, 2022 11:53 am

Code: Select all

play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"]
You can't do that. play argument is required to be a string. not a list. Alternatives were never supported.
< < insert Rick Cook quote here > >

User avatar
Dream_maker
Newbie
Posts: 4
Joined: Sun Dec 19, 2021 4:44 pm
Contact:

Re: After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'

#3 Post by Dream_maker » Mon Jun 27, 2022 12:17 pm

Ocelot wrote:
Mon Jun 27, 2022 11:53 am

Code: Select all

play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"]
You can't do that. play argument is required to be a string. not a list. Alternatives were never supported.
Thanks for the answer, then it's strange that in version 7.4 it worked...

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: After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'

#4 Post by PyTom » Mon Jun 27, 2022 11:22 pm

I'm considering this an error, and tracking it at:

https://github.com/renpy/renpy/issues/3710
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

Post Reply

Who is online

Users browsing this forum: No registered users