-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Shelve to save didn't work for me #8
Comments
This issue has been cropping up for some people and seems to depend on the Python version used. |
I'm using Python 3.7 on VS Code, if that helps. |
The problem occurs if shelve defaults to the dumb-dbm, instead of dmb.gnu or dmb.ndbm. dmb.dumb automatically creates .dat & .dir endings, which the other two don't. Afaik dumb is the only available dbm on windows by default, so the issue might be os-related if gnu or ndbm are available on unix-systems from the get-go. |
For me (I'm using Python 3.6 on a Mac) it seems that the |
As the title says, the Shelve code didn't work for me. It created files named "savedgame.dat" and appended the extension ".dat" to the end, so I had "savedgame.dat.dat". This wouldn't load.
I was able to fix this by following the code found here and creating my own "savegames" folder.
The text was updated successfully, but these errors were encountered: