id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 10318 trac-admin: Failed to create environment Derrick Karpo Derrick Karpo "Hello. When creating a new Trac 0.11 environment, the Initenv will fail if the parent directory does not already exist. See below for an example where '/var/local/lib' does not exist. This appears to also affect the latest Trac 0.13 dev. {{{ # trac-admin /var/local/lib/mytracinstall initenv Creating a new Trac environment at /var/local/lib/mytracinstall Creating and Initializing Project Initenv for '/var/local/lib/mytracinstall' failed. Failed to create environment. [Errno 2] No such file or directory: '/var/local/lib/mytracinstall' Traceback (most recent call last): File ""/usr/lib/python2.6/dist-packages/trac/admin/console.py"", line 583, in do_initenv options=options) File ""/usr/lib/python2.6/dist-packages/trac/env.py"", line 207, in __init__ self.create(options) File ""/usr/lib/python2.6/dist-packages/trac/env.py"", line 316, in create os.mkdir(self.path) OSError: [Errno 2] No such file or directory: '/var/local/lib/mytracinstall' }}} This is due to 'env.py' using os.mkdir() when os.makedirs() would be a better fit. The attached patch to 'env.py' will allow Trac to create all the intermediate directories if they don't exist. " defect closed normal 0.12.3 general 0.11-stable normal fixed trac-admin initenv env.py Thijs Triemstra