dbm package: file is not a database on open with SQLITE viewer

64 Views Asked by At

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

There are 1 best solutions below

2
PChemGuy On

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