No module named 'renpy.display.scenelists'

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
mold.FF
Newbie
Posts: 21
Joined: Fri Jun 30, 2017 5:04 am
Projects: Tiny Bunny, Crown of Leaves, Army Gals: Poker DLC, Galaxy Girls: Poker DLC
Skype: irzen89
Contact:

No module named 'renpy.display.scenelists'

#1 Post by mold.FF »

Hello,

When attempting to launch the project on Mac through Steam, an error occurs. It doesn't happen immediately, but after the splash screen. On Windows, the project launches and functions normally.

I want to clarify that instead of the main menu, I'm using the following construction:

Code: Select all

label main_menu:
    if persistent.story_progress is not None:
        if persistent.unlog_label is None:
            $ FileLoad (1, confirm = False, page = "auto", newest = True)()
        else:
            $ Start("re_log")()
    $ Start()()
label re_log:
    $ act2_loop_visited = persistent.unlog_visited
    $ lbl = persistent.unlog_label
    $ persistent.unlog_visited = None
    $ persistent.unlog_label = None
    
    jump expression lbl
The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.

How can I fix this?
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 7, in <module>
File "renpy/common/00action_file.rpy", line 479, in __call__
renpy.load(fn)
ModuleNotFoundError: No module named 'renpy.display.scenelists'

— Full Traceback —----------------------------------------------------------

Full traceback:
File "script.rpyc", line 7, in script
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/ast.py", line 1138, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/python.py", line 1122, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/script.rpy", line 7, in <module>
File "renpy/common/00action_file.rpy", line 479, in __call__
renpy.load(fn)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/loadsave.py", line 815, in load
roots, log = loads(log_data)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 100, in loads
return load(io.BytesIO(s))
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 97, in load
return up.load()
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 93, in find_class
return super().find_class(module, name)
ModuleNotFoundError: No module named 'renpy.display.scenelists'

macOS-14.3-arm64-arm-64bit arm64
Ren'Py 8.1.3.23091805
Altushka dlya skufa 0.9.4
Fri Apr 19 17:11:31 2024

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: No module named 'renpy.display.scenelists'

#2 Post by PyTom »

It looks like you're loading a save made in a newer version of Ren'Py into an older version of Ren'Py. That's not supported.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3795
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: No module named 'renpy.display.scenelists'

#3 Post by Imperf3kt »

mold.FF wrote: Fri Apr 19, 2024 9:58 am The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.
Would a persistent variable and the before_main_menu label work for you?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

mold.FF
Newbie
Posts: 21
Joined: Fri Jun 30, 2017 5:04 am
Projects: Tiny Bunny, Crown of Leaves, Army Gals: Poker DLC, Galaxy Girls: Poker DLC
Skype: irzen89
Contact:

Re: No module named 'renpy.display.scenelists'

#4 Post by mold.FF »

Update: turns out the issue occurs only on one single machine, no issues on others.
PyTom wrote: Sat Apr 20, 2024 12:32 am It looks like you're loading a save made in a newer version of Ren'Py into an older version of Ren'Py. That's not supported.
I don't see how this scenario is possible - game is a month old, and user received a built distributive, with no saves beforehand.

So I consider this issue as "just bad luck dude, something wrong with your mac".
Imperf3kt wrote: Sat Apr 20, 2024 1:57 am
mold.FF wrote: Fri Apr 19, 2024 9:58 am The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.
Would a persistent variable and the before_main_menu label work for you?
Thanks for the advice, I would try to use before_main_menu if issue wasn't solved.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]