Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4658 closed defect (duplicate)

TypeError: visit() got multiple values for keyword argument 'locals_'

Reported by: Benn Owned by: Christian Boos
Priority: normal Milestone:
Component: version control/changeset view Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /changeset/3, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'new': u'3'}

System Information

Trac 0.11dev
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
SQLite 3.3.4
pysqlite 2.3.2
Genshi 0.3.6
Subversion 1.4.3

Python Traceback

Traceback (most recent call last):
  File "C:\DE\Python\25\Lib\site-packages\trac\web\main.py", line 401, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\DE\Python\25\Lib\site-packages\trac\web\main.py", line 227, in dispatch
    content_type)
  File "C:\DE\Python\25\Lib\site-packages\trac\web\chrome.py", line 536, in render_template
    template = self.load_template(filename, method=method)
  File "C:\DE\Python\25\Lib\site-packages\trac\web\chrome.py", line 520, in load_template
    return self.templates.load(filename, cls=cls)
  File "C:\DE\Python\25\Lib\site-packages\genshi\template.py", line 1395, in load
    loader=self, encoding=encoding)
  File "C:\DE\Python\25\Lib\site-packages\genshi\template.py", line 1000, in __init__
    loader=loader, encoding=encoding)
  File "C:\DE\Python\25\Lib\site-packages\genshi\template.py", line 811, in __init__
    self.stream = self._parse(encoding)
  File "C:\DE\Python\25\Lib\site-packages\genshi\template.py", line 1042, in _parse
    pos[1], pos[2]))
  File "C:\DE\Python\25\Lib\site-packages\genshi\template.py", line 751, in __init__
    Expression(node.expr, filename, lineno)))
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 85, in __init__
    lineno=lineno)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 168, in _compile
    tree = ExpressionASTTransformer().visit(node)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 247, in visit
    return v(node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 250, in visitExpression
    node.node = self.visit(node.node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 247, in visit
    return v(node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 281, in _visitBoolOp
    node.nodes = [self.visit(x, *args, **kwargs) for x in node.nodes]
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 247, in visit
    return v(node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 256, in visitCallFunc
    node.node = self.visit(node.node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 247, in visit
    return v(node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 397, in visitGetattr
    ast.Name('data'), self.visit(node.expr, locals_=locals_),
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 247, in visit
    return v(node, *args, **kwargs)
  File "C:\DE\Python\25\Lib\site-packages\genshi\eval.py", line 360, in visitSlice
    node.expr = self.visit(node.expr, locals_=True, *args, **kwargs)
TypeError: visit() got multiple values for keyword argument 'locals_'

Attachments (0)

Change History (1)

comment:1 by Matthew Good, 17 years ago

Milestone: 0.11
Resolution: duplicate
Status: newclosed

This is a duplicate of #4647.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.