Modify

Opened 18 years ago

Closed 18 years ago

#1499 closed defect (worksforme)

Error in /var/trac/VERSION

Reported by: Thempra Owned by: John Hampton
Priority: normal Component: SqliteToPgScript
Severity: normal Keywords:
Cc: thempra@… Trac Release: 0.10

Description

./sqlite2pg -e /var/trac -p 'postgres://user:pass@127.0.0.1/trac'

Traceback (most recent call last):

File "./sqlite2pg", line 331, in ?

Main(opts)

File "./sqlite2pg", line 243, in Main

sqlenv = getSQLiteEnvironment(opts)

File "./sqlite2pg", line 198, in getSQLiteEnvironment

env = Environment(opts.tracenv)

File "/var/lib/python-support/python2.4/trac/env.py", line 126, in init

self.verify()

File "/var/lib/python-support/python2.4/trac/env.py", line 174, in verify

fd = open(os.path.join(self.path, 'VERSION'), 'r')

IOError: [Errno 2] No such file or directory: '/var/trac/VERSION'

Attachments (0)

Change History (1)

comment:1 Changed 18 years ago by John Hampton

Resolution: worksforme
Status: newclosed

I don't think that you specified the correct path to your trac environment.

The path to the -e parameter should be the path that was used when you ran trac-admin initenv. This directory should have the following directory structure

README
VERSION
attachments
conf
htdocs
log
plugins
templates

Make sure that you're passing the correct path, and if you still get the error, then reopen the ticket and paste the directory listing for your trac environment, and your trac.ini file.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.