id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 11797 Completion error after initenv in trac-admin Jun Omae Jun Omae "After initenv command is executed, pressing TAB key in trac-admin prompt leads `Completion error`. The issue is reproduced on Trac 1.0.2 and 1.1.2. {{{ $ trac-admin /tmp/tracenv-1.0.2 Welcome to trac-admin 1.0.2 Interactive Trac administration console. Copyright (C) 2003-2013 Edgewall Software Type: '?' or 'help' for help on commands. Trac [/tmp/tracenv-1.0.2]> initenv project sqlite:db/trac.db Creating and Initializing Project Installing default wiki pages .... Congratulations! Trac [/tmp/tracenv-1.0.2]> # <== Press TAB key Completion error: AttributeError: 'NoneType' object has no attribute 'complete_command' }}} Enabling logging with `initenv --inherit=FILE`, Trac says the following. {{{ $ cat /tmp/trac.ini [logging] log_type = stderr $ trac-admin /tmp/tracenv-1.0.2 ... Trac [/tmp/tracenv-1.0.2]> initenv --inherit=/tmp/trac.ini project sqlite:db/trac.db Creating and Initializing Project Installing default wiki pages .... Congratulations! Trac [/tmp/tracenv-1.0.2]> # <== Press TAB key 20:22:10 Trac[console] ERROR: trac-admin completion error: Traceback (most recent call last): File ""/venv/trac/1.0.2/lib/python2.5/site-packages/trac/admin/console.py"", line 247, in complete_line comp = self.cmd_mgr.complete_command(args, cmd_only) AttributeError: 'NoneType' object has no attribute 'complete_command' }}}" defect closed normal 1.0.3 admin/console 1.0.2 normal fixed Fix `Completion error` after `initenv` command in trac-admin.