I am trying to set up voteplugin (current one: voteplugin-r7733.zip) on
my trac system. If I install and enable it, and add the vote
permissions, nothing happens (bad or good): trac continues as if nothing
is changed.
When I change the
[vote]
paths =
to
[vote]
paths = *
then trac does this what I have listed below. Sorry if it is a bit
messy. But I left all that was printed, since I did not know what might
be important. I am unsure what the syntax for paths is (not really
documented in the voteplugin info), but as globing was stated as being
ok, a single * should mean everything.
Anyone have any clue?
Oops..
Trac detected an internal error:
error: nothing to repeat
This is probably a local installation issue.
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 467, in _dispatch_request
dispatcher.dispatch(req)
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 224, in dispatch
self._post_process_request(req, *resp)
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 333, in _post_process_request
resp = f.post_process_request(req, *resp)
File "build/bdist.linux-i686/egg/tracvote/__init__.py", line 163, in
post_process_requestFile "/usr/lib/python2.5/re.py", line 137, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python2.5/re.py", line 241, in _compile
raise error, v # invalid expression
More details are here:
Most recent call last:
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 467, in _dispatch_request
Code fragment:
try:
if not env and env_error:
raise HTTPInternalError(env_error)
try:
dispatcher = RequestDispatcher(env)
dispatcher.dispatch(req)
except RequestDone:
pass
resp = req._response or []
except HTTPException, e:
Local variables:
Name
Value
after
[u' except RequestDone:', u' pass', u' resp = ...
before
[u' try:', u' if not env and env_error:', u' raise ...
dispatcher
<trac.web.main.RequestDispatcher object at 0xb8b9b04c>
e
error('nothing to repeat',)
env
<trac.env.Environment object at 0xb887450c>
env_error
None
exc_info
(<class 'sre_constants.error'>, error('nothing to repeat',), <traceback
...
filename
'/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/ma ...
frames
[{'function': '_dispatch_request', 'lines_before': [u' try:', u' ...
has_admin
True
line
u' dispatcher.dispatch(req)'
lineno
466
message
u'error: nothing to repeat'
req
<Request "GET u'/ticket/1'">
resp
[]
tb
<traceback object at 0xb94a0c0c>
tb_hide
None
traceback
u'Traceback (most recent call last):\n File ...
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 224, in dispatch
Code fragment:
if req.session:
req.session.save()
req.display(template, content_type or 'text/html')
else: # Genshi
template, data, content_type = \
self._post_process_request(req, *resp)
if 'hdfdump' in req.args:
req.perm.require('TRAC_ADMIN')
# debugging helper - no need to render first
from pprint import pprint
out = StringIO()
Local variables:
Name
Value
chosen_handler
<trac.ticket.web_ui.TicketModule object at 0xb8ba2d0c>
chrome
<trac.web.chrome.Chrome object at 0xb91cb1cc>
e
error('nothing to repeat',)
err
(<class 'sre_constants.error'>, error('nothing to repeat',), <traceback
...
handler
<trac.ticket.web_ui.TicketModule object at 0xb8ba2d0c>
req
<Request "GET u'/ticket/1'">
resp
('ticket.html', {'comment': None, 'change_preview': None,
'attachments': ...
self
<trac.web.main.RequestDispatcher object at 0xb8b9b04c>
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 333, in _post_process_request
Code fragment:
# Trac 0.10, only filters with same arity gets passed real
values.
# Errors will call all filters with None arguments,
# and results will not be not saved.
extra_arg_count = arity(f.post_process_request) - 2
if extra_arg_count == nbargs:
resp = f.post_process_request(req, *resp)
elif nbargs == 0:
f.post_process_request(req, *(None,)*extra_arg_count)
return resp
Local variables:
Name
Value
args
('ticket.html', {'comment': None, 'change_preview': None,
'attachments': ...
extra_arg_count
3
f
<tracvote.VoteSystem object at 0xb8b9bc4c>
nbargs
3
req
<Request "GET u'/ticket/1'">
resp
('ticket.html', {'comment': None, 'change_preview': None,
'attachments': ...
self
<trac.web.main.RequestDispatcher object at 0xb8b9b04c>
File "build/bdist.linux-i686/egg/tracvote/__init__.py", line 163, in
post_process_request
Local variables:
Name
Value
content_type
None
data
{'comment': None, 'change_preview': None, 'attachments':
{'attach_href': ...
path
u'*'
req
<Request "GET u'/ticket/1'">
self
<tracvote.VoteSystem object at 0xb8b9bc4c>
template
'ticket.html'
File "/usr/lib/python2.5/re.py", line 137, in match
Code fragment:
# public interface
def match(pattern, string, flags=0):
"""Try to apply the pattern at the start of the string,
returning
a match object, or None if no match was found."""
return _compile(pattern, flags).match(string)
def search(pattern, string, flags=0):
"""Scan through string looking for a match to the pattern,
returning
a match object, or None if no match was found."""
return _compile(pattern, flags).search(string)
Local variables:
Name
Value
flags
0
pattern
u'*'
string
u'/ticket/1'
File "/usr/lib/python2.5/re.py", line 241, in _compile
Code fragment:
if not sre_compile.isstring(pattern):
raise TypeError, "first argument must be string or compiled
pattern"
try:
p = sre_compile.compile(pattern, flags)
except error, v:
raise error, v # invalid expression
if len(_cache) >= _MAXCACHE:
_cache.clear()
_cache[cachekey] = p
return p
Local variables:
Name
Value
cachekey
(<type 'unicode'>, u'*', 0)
flags
0
key
(u'*', 0)
p
None
pattern
u'*'
v
error('nothing to repeat',)
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 467, in _dispatch_request
dispatcher.dispatch(req)
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 224, in dispatch
self._post_process_request(req, *resp)
File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/web/main.py",
line 333, in _post_process_request
resp = f.post_process_request(req, *resp)
File "build/bdist.linux-i686/egg/tracvote/__init__.py", line 163, in
post_process_requestFile "/usr/lib/python2.5/re.py", line 137, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python2.5/re.py", line 241, in _compile
raise error, v # invalid expression
--
Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
--
Roger Oberholtzer
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.