Trac-admin create fail
When I install webadmin ok.
Then use trac-admin to creat a new enviroment
then happened fail
python2.3.5
sqlite3.3.5
pysqlite2.2.2
webadmin0.1.2dev
traceback
C:\Python23\Scripts>python.exe trac-admin c:\svn\trac.db
Traceback (most recent call last):
File "trac-admin", line 21, in ?
from trac.scripts.admin import run
File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\sc
ripts\admin.py", line 34, in ?
from trac.ticket.model import *
File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\ti
cket\__init__.py", line 1, in ?
from trac.ticket.api import *
File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\ti
cket\api.py", line 21, in ?
from trac.Search import ISearchSource, search_to_sql, shorten_result
File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\Se
arch.py", line 25, in ?
from trac.web.chrome import add_link, add_stylesheet, INavigationContributor
File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\we
b\chrome.py", line 25, in ?
from trac.web.api import IRequestHandler, HTTPNotFound
ImportError: cannot import name HTTPNotFound
Change History
(6)
Cc: |
daniel added
|
Priority: |
highest → lowest
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Type: |
defect → task
|
Description: |
modified (diff)
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ worksforme
|
Status: |
reopened → closed
|
I have solve before question But I have got a new question below the command below
C:\Python23\Scripts>python trac-admin c:\svn\trac.db2 Welcome to trac-admin 0.10dev Interactive Trac administration console. Copyright © 2003-2006 Edgewall Software
Type: '?' or 'help' for help on commands.
Trac [c:\svn\trac.db2]> initenv Creating a new Trac environment at c:\svn\trac.db2
Trac will first ask a few questions about your environment in order to initalize and prepare the project database.
Project Name [My Project]> Project
Database connection string db/trac.db>
Repository type [svn]>
Path to repository path/to/repos> c:\svn\trac
Templates directory [C:\Python23\share\trac\templates]>
Creating and Initializing Project Failed to create environment. [Errno 2] No such file or directory: 'c:
svn
tra c.db2' Traceback (most recent call last):
ripts\admin.py", line 596, in do_initenv
v.py", line 86, in init
v.py", line 172, in create
OSError: [Errno 2] No such file or directory: 'c:
svn
trac.db2' Failed to initialize environment. 1 Traceback (most recent call last):
ripts\admin.py", line 600, in do_initenv
SystemExit: 1 Trac [c:\svn\trac.db2]>