PicklingError: Can't pickle <type 'module'>

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
bruzer_
Newbie
Posts: 4
Joined: Fri Jul 19, 2019 6:47 pm
Contact:

PicklingError: Can't pickle <type 'module'>

#1 Post by bruzer_ » Sat Nov 02, 2019 9:41 am

This error occurs when I try to save or restart the game.
What do I do to fix it?
[code]
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00keymap.rpy", line 396, in script
python hide:
File "renpy/common/00keymap.rpy", line 411, in <module>
renpy.save("_reload-1", "reload save game")
PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed

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

Full traceback:
File "renpy/common/00keymap.rpy", line 396, in script
python hide:
File "L:\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "L:\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00keymap.rpy", line 411, in <module>
renpy.save("_reload-1", "reload save game")
File "L:\renpy-6.99.12.4-sdk\renpy\loadsave.py", line 286, in save
dump((roots, renpy.game.log), logf)
File "L:\renpy-6.99.12.4-sdk\renpy\loadsave.py", line 45, in dump
cPickle.dump(o, f, cPickle.HIGHEST_PROTOCOL)
PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
shady music facts the game 0.1
[/code]

User avatar
Donmai
Eileen-Class Veteran
Posts: 1853
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: PicklingError: Can't pickle <type 'module'>

#2 Post by Donmai » Sun Nov 03, 2019 8:56 am

Because I'm not a programmer, I have no idea about what could be happening :( .
But I've found some threads started by people facing the same problem. Maybe they could help you :) .
viewtopic.php?t=42496
viewtopic.php?t=15606
viewtopic.php?t=47876
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Google [Bot]