I recently tried to run some scripts in Python on my .db file, but whenever I try to establish a connection, I get the following error:

>>> conn = sqlite3.connect('C:\Users\1545User\Documents\SEETA\ShruthLaikh\dict2.
db', isolation_level=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
sqlite3.OperationalError: unable to open database file

I searched the web and found out that I have to specify the full path name, I did that but I am still unable to open my .db file.
I am not even able to open it once, I read a few problems where this occured later on when the program was running, but my problem is that its not opening the file at all.
I ma using Python 2.5, sqlite3 and Windows Vista. If you require any other details, let me know...

Code of how you generated and saved the database in first place, could be helpful. I don't know so much, but others could get better idea for the reason of this happening.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.