rebuild_index errors on Windows

25 views
Skip to first unread message

Bill

unread,
Oct 22, 2010, 3:58:48 PM10/22/10
to ReposStyle
I got a bunch of python errors trying to run rebuild_index.py with
repos-search1.0.3 (same with 1.1.2). Windows 7 64-bit. Any idea how to
get it work?

C:\repos-search-1.0.3\hook>python rebuild_index.py -p c:\repos\svn --
loglevel debug
# Latest revision is 66
# python svnhook.py -o drop -p c:\repos\svn --loglevel debug
Traceback (most recent call last):
File "svnhook.py", line 481, in <module>
indexDrop(options)
File "svnhook.py", line 443, in indexDrop
(status, body) = indexPost(url, deleteDoc)
File "svnhook.py", line 403, in indexPost
h.putheader('content-length', len(doc))
File "C:\Python27\lib\httplib.py", line 924, in putheader
str = '%s: %s' % (header, '\r\n\t'.join(values))
TypeError: sequence item 0: expected string, int found
# python svnhook.py -o batch -r 1 -p c:\repos\svn --loglevel debug
2010-10-22 15:39:25,326 - INFO - Reading svn rev 1
2010-10-22 15:39:25,354 - DEBUG - Ignoring A folder /Test/
# python svnhook.py -o batch -r 2 -p c:\repos\svn --loglevel debug
2010-10-22 15:39:25,490 - INFO - Reading svn rev 2
2010-10-22 15:39:25,517 - DEBUG - Ignoring A folder /Test/trunk/
# python svnhook.py -o batch -r 3 -p c:\repos\svn --loglevel debug
2010-10-22 15:39:25,658 - INFO - Reading svn rev 3
2010-10-22 15:39:25,688 - DEBUG - Ignoring A folder /Test/trunk/src/
# python svnhook.py -o batch -r 4 -p c:\repos\svn --loglevel debug
2010-10-22 15:39:25,832 - INFO - Reading svn rev 4
Traceback (most recent call last):
File "svnhook.py", line 479, in <module>
e = repositoryHistoryReader(options, handleRevision,
handlePathEntry)
File "svnhook.py", line 147, in repositoryHistoryReader
pathEntryHandler(options, options.rev, p, m.group(1), m.group(2),
not p.endswith('/'))
File "svnhook.py", line 221, in handlePathEntry
handleFolderDelete(options, options.rev, path)
File "svnhook.py", line 242, in handleFolderDelete
indexDeleteFolder_httpclient(options, revision, path)
File "svnhook.py", line 307, in indexDeleteFolder_httpclient
(status, body) = indexPost(url, doc)
File "svnhook.py", line 403, in indexPost
h.putheader('content-length', len(doc))
File "C:\Python27\lib\httplib.py", line 924, in putheader
str = '%s: %s' % (header, '\r\n\t'.join(values))
TypeError: sequence item 0: expected string, int found
Traceback (most recent call last):
File "rebuild_index.py", line 76, in <module>
raise NameError('Got exit code %d for command: %s' % (result,
cmd))
NameError: Got exit code 1 for command: python svnhook.py -o batch -r
4 -p c:\repos\svn --loglevel debug

Staffan

unread,
Oct 25, 2010, 3:00:47 AM10/25/10
to repos...@googlegroups.com

Hi,

One of the command line tools must be missing. You can either specify
them as options (run svnhook.py --help to see how) or provide them in
PATH. To see which particular command failed you may need to
investigate the hook source.

/Staffan

Reply all
Reply to author
Forward
0 new messages