Nathaniel Irons <[EMAIL PROTECTED]> writes:
>
> I'm trying to build Trac 0.9.4 from source on Mac OS X 10.4.5 Server,
> using an otherwise unused copy of Apache 2.0.55, newly installed Python
> 2.4.2, mod_python 3.2.8, and pysqlite 2.1.3. Connecting to apache
> generates server errors that terminate like this:
>
> ===
> [Mon Apr 03 09:45:28 2006] [error] [client fe80::211:24ff:fe30:1110]
> PythonHandler trac.web.modpython_frontend: File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
> site-packages/trac/db.py", line 256, in __init__\n assert
> have_pysqlite > 0
>
> [Mon Apr 03 09:45:28 2006] [error] [client fe80::211:24ff:fe30:1110]
> PythonHandler trac.web.modpython_frontend: AssertionError
> ===
>
> So, it looks like Trac can't find pysqlite, which is odd. I have
> pysqlite-2.1.3-py2.4-macosx-10.4-ppc.egg installed at
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
> packages, and the tests pass:
>
> ===
> $ /usr/local/bin/python
> Python 2.4.2 (#1, Mar 30 2006, 17:10:27)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from pysqlite2 import test
> >>> test.test()
> .........................................................................
> .........................................................................
> ....
> ----------------------------------------------------------------------
> Ran 153 tests in 0.272s
>
> OK
> ===
>
> Any suggestions for traacing this further would be appreciated.
>
> -nat
>
I, too, as suffering from the AssertionError. Does trac work for you using the
stand-alone invocation: tracd -port 8000 /path/to/project ?
I am getting exactly the same error but with on a different platform (and
slightly different versions):
Red Hat Linux AS 3
Apache 2.0.46
Trac 0.9.4
Python 2.4
mod_python 3.1.4
pysqlite 2.0.7
sqlite 3.3.4
The pysqlite test works, trac-admin works fine, as does trac as a stand-alone
server, which leads me to believe this is mod_python doing something wierd. I
have rebuilt mod_python from src numerous times making sure --with-
python=/usr/local/bin/python2.4 is set. I tried the 3.2.X versions of
mod_python but they require me to update libapr which entails a bunch of
dependent rpms and I am thinking that if trac-admin and trac itself work fine -
I should be able to fix this without all that effort.
But all I get is:
Mod_python error: "PythonHandler trac.web.modpython_frontend"
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299,
in HandlerDispatch
result = object(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
line 199, in handler
env = get_environment(mpr, project_opts)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 335, in
get_environment
return _open_environment(env_path, threaded)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 51, in
_open_environment
env_cache[env_path] = open_environment(env_path)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 375, in
open_environment
if env.needs_upgrade():
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 279, in
needs_upgrade
db = self.get_db_cnx()
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 137, in
get_db_cnx
return self.__cnx_pool.get_cnx()
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 157, in get_cnx
cnx = self._cnx_class(**self._args)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 256, in
__init__
assert have_pysqlite > 0
AssertionError
sigh.
Anyone have any clues?
Thanks
Mike
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac