jessdeng

Newbie
Jul 4, 2018
21
18
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
PicklingError: Can't pickle <type 'code'>: attribute lookup __builtin__.code failed

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

Full traceback:
  File "renpy/common/_layout/screen_load_save.rpym", line 35, in script
    $ ui.interact()
  File "renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_load_save.rpym", line 35, in <module>
    $ ui.interact()
  File "renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3582, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "renpy/display/core.py", line 4543, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1403, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1403, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/behavior.py", line 1142, in event
    return handle_click(self.clicked)
  File "renpy/display/behavior.py", line 1075, in handle_click
    rv = run(action)
  File "renpy/display/behavior.py", line 379, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "renpy/loadsave.py", line 427, in save
    reraise(t, e, tb)
  File "renpy/loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "renpy/compat/pickle.py", line 51, in dump
    cPickle.dump(o, f, PROTOCOL)
PicklingError: Can't pickle <type 'code'>: attribute lookup __builtin__.code failed

Windows-10-10.0.19041 AMD64
Ren'Py 7.6.3.23091805
Astral Lust 0.3.0
Sun Sep 29 00:03:58 2024

game can not save , anyone know what happend?
 

Broker08

Member
Aug 28, 2022
143
365
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
PicklingError: Can't pickle <type 'code'>: attribute lookup __builtin__.code failed

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

Full traceback:
  File "renpy/common/_layout/screen_load_save.rpym", line 35, in script
    $ ui.interact()
  File "renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_load_save.rpym", line 35, in <module>
    $ ui.interact()
  File "renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3582, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "renpy/display/core.py", line 4543, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1403, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 1403, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/layout.py", line 1179, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "renpy/display/layout.py", line 281, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "renpy/display/behavior.py", line 1142, in event
    return handle_click(self.clicked)
  File "renpy/display/behavior.py", line 1075, in handle_click
    rv = run(action)
  File "renpy/display/behavior.py", line 379, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "renpy/loadsave.py", line 427, in save
    reraise(t, e, tb)
  File "renpy/loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "renpy/compat/pickle.py", line 51, in dump
    cPickle.dump(o, f, PROTOCOL)
PicklingError: Can't pickle <type 'code'>: attribute lookup __builtin__.code failed

Windows-10-10.0.19041 AMD64
Ren'Py 7.6.3.23091805
Astral Lust 0.3.0
Sun Sep 29 00:03:58 2024

game can not save , anyone know what happend?
From the beginning it happened to me I clicked on ignore and the game continued for me idk why am the only who don't have problem
 
  • Like
Reactions: Mayakesha33

Bzshr

Newbie
Feb 4, 2018
72
93
From the beginning it happened to me I clicked on ignore and the game continued for me idk why am the only who don't have problem
Yes you can ignore the error but the save file won't be created. So trying to progress any further would be meaningless if you can't save at all
 
4.00 star(s) 61 Votes