Edgewall Software

Ticket #3079 (closed task: worksforme)

Opened 2 years ago

Last modified 2 years ago

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: cboos, daniel

Description (last modified by mgood) (diff)

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

Change History

Changed 2 years ago by Jim (chogeha@…

  • priority changed from high to highest

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 (c) 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 sqlite: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]>

Changed 2 years ago by anonymous

  • cc cboos added

Changed 2 years ago by Jim (chogeha@…

  • cc daniel added
  • priority changed from highest to lowest
  • status changed from new to closed
  • resolution set to fixed
  • type changed from defect to task

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.

Changed 2 years ago by mgood

  • status changed from closed to reopened
  • resolution fixed deleted
  • description modified (diff)

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

Changed 2 years ago by mgood

  • status changed from reopened to closed
  • resolution set to worksforme

Changed 2 years ago by mgood

  • milestone 0.10 deleted

Add/Change #3079 (Trac-admin create fail)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.