Penaz91 / Glitch_Heaven

Complete rewrite of my Glitch-Based Videogame
MIT License
1 stars 0 forks source link

On Frozen Binaries, using "Save" crashes the game #12

Closed Penaz91 closed 8 years ago

Penaz91 commented 8 years ago

2015-12-12 23:26:44,977 - CRITICAL --- There has been an exception, printing traceback Traceback (most recent call last): File "", line 72, in File "c:\Users\Penaz\Desktop\PyInstaller-3.0\PyInstaller-3.0\Glitch_Heaven\Game\mainmenu.py", line 173, in main File "c:\Users\Penaz\Desktop\PyInstaller-3.0\PyInstaller-3.0\Glitch_Heaven\Game\mainmenu.py", line 79, in File "c:\Users\Penaz\Desktop\PyInstaller-3.0\PyInstaller-3.0\Glitch_Heaven\Game\game.py", line 429, in main File "c:\Users\Penaz\Desktop\PyInstaller-3.0\PyInstaller-3.0\Glitch_Heaven\Game\game.py", line 287, in saveGame File "c:\Users\Penaz\AppData\Local\Programs\Python\Python35-32\lib\shelve.py", line 243, in open File "c:\Users\Penaz\AppData\Local\Programs\Python\Python35-32\lib\shelve.py", line 227, in init File "c:\Users\Penaz\AppData\Local\Programs\Python\Python35-32\lib\dbminit.py", line 75, in open ImportError: no dbm clone found; tried ['dbm.gnu', 'dbm.ndbm', 'dbm.dumb']

Seems that Frozen Binaries don't include DBM clones. Possible fix: try: import dbhash import gdbm import dbm import dumbdbm except ImportError: logger.info("Couldn't load some modules, skipping..."

This should allow pyinstaller to get the libs

Penaz91 commented 8 years ago

Fixed by making a new Hook to dbm for PyInstaller, see Issue #1733 at PyInstaller Repo.