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?
After the update, an error appears: AttributeError: 'RevertableList' object has no attribute 'lstrip'
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.
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.
- 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'
- 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.
- 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'
Code: Select all
play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"]< < insert Rick Cook quote here > >
- 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'
Thanks for the answer, then it's strange that in version 7.4 it worked...Ocelot wrote: ↑Mon Jun 27, 2022 11:53 amYou can't do that. play argument is required to be a string. not a list. Alternatives were never supported.Code: Select all
play=["video/1.webm", "video/2.webm", "video/3.webm", "video/4.webm"]
- 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'
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: No registered users