Re: [pysqlite] An error in installing pysqlite
Gerhard Häring <[email protected]> Thu, 13 Aug 2009 11:22:16 +0200
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
David Garfield wrote: > Hi list, > > The install-source.txt file said to email this list if I > encountered errors running pysqlite2.test.test(), but didn't encounter > any errors during compilation or installation. So that's what I am > doing. > > Here's the error I encountered (it says there are nine of them....but > they sure seem related): > [...] > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/Library/Python/2.5/site-packages/pysqlite2/test/ > transactions.py", line 38, in setUp > self.con1 = sqlite.connect(get_db_path(), timeout=0.1) > OperationalError: unable to open database file > [...] Try executing the test from somewhere else. The test suite tries to create a database file in the working directory. And your choice of working directory was an unfortunate one, it seems ;-) -- Gerhard