Error en mod_python

Chema Cortes pych3m4 en gmail.com
Jue Ago 9 11:53:43 CEST 2007


Hay reportado un error de un conflicto entre mod_python y php5 por las
versiones de sqlite que usan, y que afecta al funcionamiento de trac.

Posibles soluciones:

- compilar php5 sin soporte trac (o pasarse a php4)
- pasarse a mysql o postgresql


Ref. http://trac.edgewall.org/ticket/3112




2007/8/9, Percy Gonzales <pergonzales en gmail.com>:
> Hola, estoy en procura de configurar trac  (en realidad me ha ido muy
> bien al instalarlo y esta funcionando en modo stanalone), pero al
> momento de querer configurarlo para que corra en apache con mod_pyton
> me da el siguiente error en el browser :
>
>
> Mod_python error: "PythonHandler trac.web.modpython_frontend"
>
> 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 87, in handler
>     gateway.run(dispatch_request)
>
>   File "/usr/lib/python2.3/site-packages/trac/web/wsgi.py", line 87, in run
>     response = application(self.environ, self._start_response)
>
>   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 391,
> in dispatch_request
>     env = _open_environment(env_path, run_once=run_once)
>
>   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 58,
> in _open_environment
>     env_cache[env_path] = open_environment(env_path)
>
>   File "/usr/lib/python2.3/site-packages/trac/env.py", line 463, in
> open_environment
>     if env.needs_upgrade():
>
>   File "/usr/lib/python2.3/site-packages/trac/env.py", line 343, in
> needs_upgrade
>     if participant.environment_needs_upgrade(db):
>
>   File "/usr/lib/python2.3/site-packages/trac/env.py", line 397, in
> environment_needs_upgrade
>     dbver = self.env.get_version(db)
>
>   File "/usr/lib/python2.3/site-packages/trac/env.py", line 257, in get_version
>     cursor.execute("SELECT value FROM system WHERE name='database_version'")
>
>   File "/usr/lib/python2.3/site-packages/trac/db/util.py", line 51, in execute
>     return self.cursor.execute(sql)
>
>   File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py",
> line 244, in execute
>
> DatabaseError: unsupported file format
>
>
>
>
>
> Mi configuracion de virtual host es la siguiente:
>
> <VirtualHost *:80 >
>     DocumentRoot /www/trac/prueba
>     ServerName trac.dominio.com
>     ErrorLog logs/trac
>     CustomLog logs/trac common
>     <Location />
>         SetHandler mod_python
>         PythonHandler trac.web.modpython_frontend
>         PythonOption TracEnv /www/trac/prueba
>         PythonOption TracUriRoot /
>         PythonDebug on
>     </Location>
> </VirtualHost>
>
>
>
> Me podrian ayudar a resolverlo por favor
>
>
> gracias
>
>
> Percy
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es
>




Más información sobre la lista de distribución Python-es