PicklingError and crash when saving a game

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
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
Contact:

PicklingError and crash when saving a game

#1 Post by leon »

This error happens when trying to save the game:
PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed

Traceback: http://lemmasoft.renai.us/forums/viewto ... 38#p160138

This happens also when I just start the game and save, so I assume the issue is in initialization part. Is this a common issue? How do I debug this? Is there a way to find the line the error is in from the traceback?

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: PicklingError and crash when saving a game

#2 Post by Camille »

When I searched the forums for "PicklingError", I found this. Might be helpful?

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: PicklingError and crash when saving a game

#3 Post by DragoonHP »

I just fixed your script, sort of anyway... look into your WIP thread...

http://lemmasoft.renai.us/forums/viewto ... 49#p160149

User avatar
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
Contact:

Re: PicklingError and crash when saving a game

#4 Post by leon »

DragoonHP wrote:I just fixed your script, sort of anyway... look into your WIP thread...

http://lemmasoft.renai.us/forums/viewto ... 49#p160149
Thanks a lot! :) I got it now. I'll respond in the WIP thread once I have updated the new version.

@Camille:
Thanks for the link! Sorry for not using the search myself... :roll:

Post Reply

Who is online

Users browsing this forum: Google [Bot]