Pysqlite not being found ?

13 views
Skip to first unread message

Bill

unread,
Feb 22, 2007, 6:41:05 PM2/22/07
to Trac Users
This isn't really a Trac problem but I'm hoping somebody here has the
experience to help me tie up this issue so I can get Trac running.

-----
Error:

File "/usr/local/lib/python2.5/site-packages/trac/db/
sqlite_backend.py", line 140, in __init__
assert have_pysqlite > 0

AssertionError

-----
A sanity check shows:

Python 2.5 (r25:51908, Feb 16 2007, 16:53:41)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
>>> import trac.db.sqlite_backend
>>> trac.db.sqlite_backend._ver
(3, 3, 13)
>>> trac.db.sqlite_backend.have_pysqlite
2
>>> trac.db.sqlite_backend.sqlite.version
'2.3.3'

-----
Python sys.path shows:

/usr/local/lib/python25.zip
/usr/local/lib/python2.5
/usr/local/lib/python2.5/plat-linux2
/usr/local/lib/python2.5/lib-tk
/usr/local/lib/python2.5/lib-dynload
/usr/local/lib/python2.5/site-packages

-----
A quick search for dbapi2.py finds

/usr/local/lib/python2.5/sqlite3/dbapi2.py
/usr/local/lib/python2.5/sqlite3/dbapi2.pyo
/usr/local/lib/python2.5/sqlite3/dbapi2.pyc
/usr/local/lib/python2.5/site-packages/pysqlite2/dbapi2.py
/usr/local/lib/python2.5/site-packages/pysqlite2/dbapi2.pyc
/usr/local/src/Python-2.5/Lib/sqlite3/dbapi2.py
/usr/local/src/pysqlite-2.3.3/pysqlite2/dbapi2.py
/usr/local/src/pysqlite-2.3.3/build/lib.linux-i686-2.5/pysqlite2/
dbapi2.py

-----
Trac runs using Tracd, grrr. Anybody see what I'm missing?

Samuel A. Falvo II

unread,
Feb 22, 2007, 6:46:43 PM2/22/07
to trac-...@googlegroups.com
On 2/22/07, Bill <bils...@gmail.com> wrote:
>
> This isn't really a Trac problem but I'm hoping somebody here has the
> experience to help me tie up this issue so I can get Trac running.

I do not think this will help you, but it's worth a shot and certainly
won't hurt. Although I had different errors, I had similar problems
with sqlite not being found after a fresh install of Trac. The
problem was that "ldconfig" was not performed during the installation
process.

Just on a whim, as root user, try running "ldconfig", and see if it
can find sqlite afterwards. If not, ummm... I dunno. ;)

Thanks.

--
Samuel A. Falvo II

Bill

unread,
Feb 22, 2007, 6:47:39 PM2/22/07
to Trac Users
I should also mention that this problem is seen using mod_python and
Apache 2.2.

Bill

unread,
Feb 22, 2007, 7:00:53 PM2/22/07
to Trac Users
I've actually seen your problem thread and the later posting on the
ldconfig trick that solved your problem. I had the exact same problem
before this problem and your thread solved it for me.Thanks!

And thanks for replying to this thread but it looks like this problem
is caused by something else.

Emmanuel Blot

unread,
Feb 22, 2007, 7:09:28 PM2/22/07
to trac-...@googlegroups.com
Did you check that mod_python effectively uses python2.5, not another
python release ?

HTH,
Manu


--
Manu

Bill

unread,
Feb 22, 2007, 7:21:13 PM2/22/07
to Trac Users
Yes, through the mod_python.testhandler I was able to confirm:

Python sys.version 2.5 (r25:51908, Feb 16 2007, 16:53:41) [GCC 3.4.6
20060404 (Red Hat 3.4.6-3)]

thank you for your suggestion!

On Feb 22, 4:09 pm, "Emmanuel Blot" <manu.b...@gmail.com> wrote:
> Did you check that mod_python effectively uses python2.5, not another
> python release ?
>
> HTH,
> Manu
>

Reply all
Reply to author
Forward
0 new messages