[pysqlite] An error in installing pysqlite

David Garfield <[email protected]> Wed, 12 Aug 2009 10:34:08 -0400
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
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):

################################

[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> from pysqlite2 import test
 >>> test.test()
.....................................................................................................................................................................EEEEEEEEE 
.................................
======================================================================
ERROR: CheckDMLdoesAutoCommitBefore  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckDeleteStartsTransaction  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckInsertStartsTransaction  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckLocking (pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckRaiseTimeout (pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckReplaceStartsTransaction  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckRollbackCursorConsistency  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckToggleAutoCommit  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

======================================================================
ERROR: CheckUpdateStartsTransaction  
(pysqlite2.test.transactions.TransactionTests)
----------------------------------------------------------------------
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

----------------------------------------------------------------------
Ran 207 tests in 0.083s

FAILED (errors=9)

#####################################

Thanks so much!

David