-4

I made a database with the Python package dbm but I cannot seem to find any way to open it. The file is recognizable for reading and writing but when I try to open it visually using SQLITE viewer, it gives back: "An error occurred: file is not a database". Here is how I open and write one thing but I cannot view it with a VS code extension:

with dbm.open('cache', 'c') as db:
    db['www.python.org'] = 'Python Website'

1 Answers1

1

The dbm package is NOT SQLite. The SQLite package is called "sqlite3"

PChemGuy
  • 1,582
  • 3
  • 6
  • 18