I have done the following:
1) Installed perforceplugin_trunk-r2798.zip with setup.py install
2) Created a new database.
trac-admin /var/trac initenv
(All values were defaults apart from repo type and dir)
3) Made the following additions to /var/conf/trac.ini
[trac]
repository_dir = p4://UUUU:XXXXXX@perforce:1666/?unicode=0
repository_type = perforce
[components]
p4trac.* = enabled
[perforce]
port = perforce:1666
user = UUUU
password = XXXXXX
unicode = 0
4) Started the server
tracd --port 8000 /var/trac
5) Connected web browser, and attempted to browse source (There is a long delay).
6) Received traceback
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 191, in
dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 263, in
_pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "/usr/lib/python2.5/site-packages/trac/versioncontrol/api.py", line
73, in pre_process_request
self.get_repository(req.authname).sync()
File "build/bdist.linux-i686/egg/p4trac/api.py", line 277, in sync
self.updateCache(fromChange=youngestStored+1)
File "build/bdist.linux-i686/egg/p4trac/api.py", line 248, in
updateCache
self.storeChangesInDB(changes)
File "build/bdist.linux-i686/egg/p4trac/api.py", line 199, in
storeChangesInDB
for path, kind, action, base_path, base_rev in cs.get_changes():
File "build/bdist.linux-i686/egg/p4trac/api.py", line 1114, in
get_changes
otherNode.change)
File "build/bdist.linux-i686/egg/p4trac/repos.py", line 683, in
_get_change
self._nodePath.rev)
NoSuchNode
Note:
My P4 server version is P4D/LINUX26X86/2006.1/102189
My Trac version is 0.10.4
I have also attempted to do the same with a virgin, freshly created P4 repository on the local machine and this worked OK.