Complete noob here. I’ve taken some code straight out of the programming for beginner’s book, modified the variable and file names to those that I’m using, left the rest of the syntax as is, and I get an error that I can’t understand. It’s actually four errors, but only one references my code. The other three reference Lib files. The line of code in question is:
fstooges = shelve.open(“3 Stooges.dat”) [I previously created the .dat file]
The errors I get at that line are:
File “[filename and path]”, line 14, in <module>fstooges = shelve.open(“3 Stooges.dat”)
File “[filename and path]\Lib\shelve.py”, line 250, in openreturn DbfilenameShelf(filename, flag, protocol, writeback)
```File “[filename and path]\Lib\shelve.py”, line 227, in __init__
Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)```
`File “[filename and path]Lib\dbm_init_.py”, line 89, in open
raise error[0](“db type could not be determined”)
dbm.error: db type could not be determined```
I began by importing the ‘shelve’ module, so it’s not missing that. I’m not sure where I’m running off the rails here. Appreciate any interpretation and assistance.
Thank you.
