id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 13051 The initenv process of trac-admin requires more than just 'psycopg2' and 'trac' wind8702@… "I figured out the initenv process of trac-admin requires more than just 'psycopg2' and 'trac' to use the postgresql driver, the previous week of last week. Either it is a bug or the wiki page for database backends is missing an important line (DatabaseBackend). I somehow figured out how to make it work after some digging: I had to also install !TracTags from Python Package Index. otherwise I'd get messages like: `TracError: Unsupported database type ""postgres""` What I did: {{{#!sh useradd -mrd /var/lib/g9-trac g9-trac mkdir -p /var/log/g9 apt install -y virtualenv # virtualenv -p /usr/bin/python3 /var/lib/g9-trac/ve-trac su - g9-trac virtualenv -p /usr/bin/python2 /var/lib/g9-trac/ve-trac source /var/lib/g9-trac/ve-trac/bin/activate pip install trac #it's weird the psycopg2 driver worked only after I installed TracTags pip install psycopg2 trac-admin /var/lib/g9-trac/trac-g9 initenv Gxxxxx9 'postgres://g9-trac:passphrase32!@localhost:5432/trac-g9' }}} Thank you, Gunwoo Gim" defect reopened normal general 1.2.2 major setuptools pip wheel