Operational Error while opening .db file

Discussion in 'Database' started by obscurecoder, Jul 21, 2010.

  1. obscurecoder

    obscurecoder New Member

    Joined:
    Jun 7, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice