Reynier Perez Mira wrote:
Hi every:
I have installed Trac in Windows 2003 Server R2. Following the guide 
instructions for init a enviroment and trying to make Trac work with PostgreSQL 
I get this error:

Creating and Initializing Project
Failed to create environment. No module named pyPgSQL
Traceback (most recent call last):
  File "D:\Server\Python\Lib\site-packages\trac\admin\console.py", line 541, in
do_initenv
    options=options)
  File "D:\Server\Python\Lib\site-packages\trac\env.py", line 187, in __init__
    self.create(options)
  File "D:\Server\Python\Lib\site-packages\trac\env.py", line 304, in create
    DatabaseManager(self).init_db()
  File "D:\Server\Python\Lib\site-packages\trac\db\api.py", line 70, in init_db
    connector.init_db(**args)
  File "D:\Server\Python\lib\site-packages\trac\db\postgres_backend.py", line 65
, in init_db
    cnx = self.get_connection(path, user, password, host, port, params)
  File "D:\Server\Python\lib\site-packages\trac\db\postgres_backend.py", line 46
, in get_connection
    cnx = PostgreSQLConnection(path, user, password, host, port, params)
  File "D:\Server\Python\lib\site-packages\trac\db\postgres_backend.py", line 11
7, in __init__
    from pyPgSQL import PgSQL
ImportError: No module named pyPgSQL

What's wrong here?
Going out on a limb, you haven't installed psycopg2 or pyPgSQL.

--Noah

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to