John Hampton wrote:
Mattias Brändström wrote:

I have only tried with psycopg, psycopg2 is not part of my Linux distribution (Ubuntu Dapper). I would like to as much as possible only install things with apt-get.


Well, the patch that was on trac-hacks.org was indeed outdated and had the typo that I talked about which rendered it incompatible with psycopg.

OK. If I decide to run the trunk, is there some particular revision I should run or should I just check out HEAD? What I'm asking if is there is some revision that is more stable or do the trac developers try to only commit completed working features?


As far as has been my experience, the trac developers only try to commit completed working features. I've been running trunk for a little while and haven't experienced many issues.

That being said, I just updated the 0.9.5 patch to be more like the trunk patch. I tested it lightly with psycopg2 and 0.9.5. However, it should work fine with psycopg as the typo has been fixed.


Good! I downloaded the update and tried to create my environment again. I get the same error message. Perhaps you can tell something from the output:

[EMAIL PROTECTED]:~$ sudo -u trac trac-admin /var/lib/trac/nutsornot initenv nutsornot postgres://trac:[EMAIL PROTECTED]:5432/trac?schema=nutsornot /var/lib/svn/nutsornot /usr/local/share/trac/templates
Creating and Initializing Project
Failed to create environment. ERROR:  schema "nutsornot" does not exist

SET search_path TO 'nutsornot', public
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 139, in env_create
    self.__env = Environment(self.envname, create=True, db_str=db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 79, in __init__
    self.create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 197, in create
    db.init_db(self.path, db_str)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 469, in init_db
    cls.init_db(**args)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 430, in init_db
    self = cls(**args)
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 409, in __init__
    cnx.cursor().execute('SET search_path TO %s, public', (self.schema,))
ProgrammingError: ERROR:  schema "nutsornot" does not exist

SET search_path TO 'nutsornot', public
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 594, in do_initenv
    self.env_create(db_str)
File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 144, in env_create
    sys.exit(1)
SystemExit: 1

:.:: mattias
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to