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)
Note: See
TracTickets for help on using
tickets.
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 rantrac-admin initenv
. This directory should have the following directory structureMake 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.