> On Fri, 2006-03-31 at 19:17 +0200, [EMAIL PROTECTED] wrote:
> > Hello
> >
> > I installed Trac recently and have a problem with sqlite/pysqlite2:
> >
> > Installed components (on RedHat Linux):
> > # Python 2.3.4
> > # Apache 2.0.52
> > # SWIG 1.3.28
> > # Subversion 1.3.0
> > # SQLite 3.3.4
> > # SilverCity 0.9.6
> > # ClearSilver 0.10.2
> > # pysqlite 2.1.3
> > # docutils 0.4
> > # Trac 0.9.4
> >
> > In line 204 of /usr/lib/python2.3/site-packages/trac/db.py (import
> > pysqlite2.dbapi2 as sqlite) there is always an exception thrown. Why?
> 
> That depends on what the exception is.  Please provide the traceback if
> you want help debugging an exception.

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py",
line 199, in handler
    env = get_environment(mpr, project_opts)

  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in
get_environment
    return _open_environment(env_path, threaded)

  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 51, in
_open_environment
    env_cache[env_path] = open_environment(env_path)

  File "/usr/lib/python2.3/site-packages/trac/env.py", line 375, in
open_environment
    if env.needs_upgrade():

  File "/usr/lib/python2.3/site-packages/trac/env.py", line 279, in
needs_upgrade
    db = self.get_db_cnx()

  File "/usr/lib/python2.3/site-packages/trac/env.py", line 137, in
get_db_cnx
    return self.__cnx_pool.get_cnx()

  File "/usr/lib/python2.3/site-packages/trac/db.py", line 156, in get_cnx
    cnx = self._cnx_class(**self._args)

  File "/usr/lib/python2.3/site-packages/trac/db.py", line 259, in __init__
    assert have_pysqlite > 0

AssertionError


I have looked inside /usr/lib/python2.3/site-packages/trac/db.py and seen
that have_pysqlite is not set to any value greater 0 because the import
(import pysqlite2.dbapi2 as sqlite) fails. But I do not know how to further
analyze why this import does not work.
If I start python (as root) directly and then type 'import pysqlite2.dbapi2
as sqlite' everything is working fine. I do not understand what could be the
difference?

Phil

-- 
GMX Produkte empfehlen und ganz einfach Geld verdienen!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to