Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3079 closed task (worksforme)

Trac-admin create fail

Reported by: Jim (chogeha@… Owned by: daniel
Priority: lowest Milestone:
Component: admin/console Version: devel
Severity: normal Keywords: trad-admin
Cc: Christian Boos, daniel Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Matthew Good)

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

Attachments (0)

Change History (6)

comment:1 by Jim (chogeha@…, 18 years ago

Priority: highhighest

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.

Please enter the name of your project. This name will be used in page titles and descriptions.

Project Name [My Project]> Project

Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax).

Database connection string db/trac.db>

Please specify the type of version control system, By default, it will be svn.

If you don't want to use Trac with version control integration, choose the default here and don't specify a repository directory. in the next question.

Repository type [svn]>

Please specify the absolute path to the version control repository, or leave it blank to use Trac without a repository. You can also set the repository location later.

Path to repository path/to/repos> c:\svn\trac

Please enter location of Trac page templates. Default is the location of the site-wide templates installed with 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):

File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\sc

ripts\admin.py", line 596, in do_initenv

options=options)

File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\en

v.py", line 86, in init

self.create(options)

File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\en

v.py", line 172, in create

os.mkdir(self.path)

OSError: [Errno 2] No such file or directory: 'c:
svn
trac.db2' Failed to initialize environment. 1 Traceback (most recent call last):

File "c:\python23\lib\site-packages\TracWebAdmin-0.1.2dev_r0-py2.3.egg\trac\sc

ripts\admin.py", line 600, in do_initenv

sys.exit(1)

SystemExit: 1 Trac [c:\svn\trac.db2]>

comment:2 by anonymous, 18 years ago

Cc: Christian Boos added

comment:3 by Jim (chogeha@…, 18 years ago

Cc: daniel added
Priority: highestlowest
Resolution: fixed
Status: newclosed
Type: defecttask

I have already finish this problem when reinstall all application Just some program must follow setup step by step to make sure.

My Trac site pm 24:00 will shutdown my pc.

comment:4 by Matthew Good, 18 years ago

Description: modified (diff)
Resolution: fixed
Status: closedreopened

Only used fixed when the ticket required a change in Trac's code.

comment:5 by Matthew Good, 18 years ago

Resolution: worksforme
Status: reopenedclosed

comment:6 by Matthew Good, 18 years ago

Milestone: 0.10

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.