Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread Tim Golden
On 25/02/2010 15:18, Michael M Mason wrote: ALAN GAULD wrote on 25 February 2010 at 08:50:- So I think that was a red herring, sorry. It also looks like the Read Only check box in the main Explorer property dialog tab doesn't mean what it says... Doesn't the Read Only checkbox have a coloured

Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread Michael M Mason
ALAN GAULD wrote on 25 February 2010 at 08:50:- > So I think that was a red herring, sorry. > It also looks like the Read Only check box in the main > Explorer property dialog tab doesn't mean what it says... Doesn't the Read Only checkbox have a coloured square rather than a tick? AFAIK the col

Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread Timo
2010/2/25 ALAN GAULD > > > What should be the correct folder then? > > I don't know! To be honest I was surprised by the result too. > Personally I tend to either use the application folder or the registry. > But the app folder doesn't work for user specific settings unless > you have a separate

Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread ALAN GAULD
> > It is on Windows XP, and in the logfile it says it uses the directory: > > C:\Documents and Settings\user\Application Data\myapp > > > > That directory should always be writeable for the user, no? > > > > Not on my PC its Read Only > > > > And I have administrator rights.

Re: [Tutor] Cannot open SQLite database

2010-02-25 Thread Timo
On 25-02-10 00:03, ALAN GAULD wrote: Does the file actually exist where you say it does? It doesn't need to exist, it will be created if it isn't found. Of course I should have known that! It points to the path/folder then... It is on Windows XP, and in the logfile it says it uses the

Re: [Tutor] Cannot open SQLite database

2010-02-24 Thread spir
On Wed, 24 Feb 2010 09:38:56 +0100 Timo wrote: > Hello all, my program uses SQLite as database and everything worked fine > until now. > I have over 3000 downloads of my program, but I got 2 mails this week > from people who get this error: > > OperationalError: unable to open database file >

Re: [Tutor] Cannot open SQLite database

2010-02-24 Thread Alan Gauld
"Timo" wrote OperationalError: unable to open database file Does the file actually exist where you say it does? # This will return: C:\Documents and Settings\user\Application Data\myapp PREFDIR = os.path.join(os.environ['APPDATA'], 'myapp') Do you check that APPDATA is actually set? #

Re: [Tutor] Cannot open SQLite database

2010-02-24 Thread Christian Witts
Timo wrote: Hello all, my program uses SQLite as database and everything worked fine until now. I have over 3000 downloads of my program, but I got 2 mails this week from people who get this error: OperationalError: unable to open database file I searched the net, and all problems seem to be