[Trac] ImportError: No module named pyPgSQL

2009-12-23 Thread marioneta
hi all:
I am installing trac in pkgutil THROUGH Solaris10 I have the version
of python 2.5 by default and 2.6. My problem is that apache THROUGH
access I get the following error and if you can run import makes
both ... could help


Traceback (most recent call last):
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/web/api.py", line 367, in send_error
'text/html')
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/web/chrome.py", line 708, in render_template
data = self.populate_data(req, data)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/web/chrome.py", line 618, in populate_data
d['chrome'].update(req.chrome)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/web/api.py", line 194, in __getattr__
value = self.callbacks[name](self)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/web/chrome.py", line 476, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/ticket/web_ui.py", line 163, in get_navigation_items
if 'TICKET_CREATE' in req.perm:
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 524, in has_permission
return self._has_permission(action, resource)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 538, in _has_permission
check_permission(action, perm.username, resource, perm)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 425, in check_permission
perm)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 282, in check_permission
get_user_permissions(username)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 357, in get_user_permissions
for perm in self.store.get_user_permissions(username):
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/perm.py", line 173, in get_user_permissions
db = self.env.get_db_cnx()
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/env.py", line 273, in get_db_cnx
return DatabaseManager(self).get_connection()
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/db/api.py", line 76, in get_connection
return self._cnx_pool.get_cnx(self.timeout or None)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/db/pool.py", line 174, in get_cnx
return _backend.get_cnx(self._connector, self._kwargs, timeout)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/db/pool.py", line 107, in get_cnx
cnx = connector.get_connection(**kwargs)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/db/postgres_backend.py", line 46, in get_connection
cnx = PostgreSQLConnection(path, user, password, host, port,
params)
  File "/opt/csw/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/
trac/db/postgres_backend.py", line 118, in __init__
from pyPgSQL import PgSQL
ImportError: No module named pyPgSQL

--

You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.




[Trac] ImportError: No module named pyPgSQL

2008-06-25 Thread Reydet Gonzague
Hi,

I installed trac 0.11rc2 with a pgSQL database and psycopg2 as python pgsql
driver.

When I run a standalone daemon (tracd command), trac works fine.
But upon an apache web server & mod_python, I get the following error
message:

ImportError: No module named pyPgSQL

Do you have any idea for troubleshooting this issue?
>From what I understand from here:
http://trac.edgewall.org/wiki/DatabaseBackend#DatabaseBackend , psycopg2 is
an alternative to pypgsql, isn't it?

Here is the content of my apache vhost configuration file:

DocumentRoot /home/trac/
ServerName mydomain.tld
ServerAlias *.mydomain.tld

SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/trac/
PythonOption TracUriRoot /
PythonPath "sys.path + ['/home/trac']"
PythonDebug on



Thank you!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---