Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8479 closed defect (duplicate)

TypeError: int() argument must be a string or a number, not 'list'

Reported by: dan Owned by:
Priority: normal Milestone:
Component: version control/changeset view Version: 0.11.1
Severity: normal Keywords: side-by-side diff
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on wiki/WikiStart?action=diff&version=8, Trac issued an internal error.

In diff mode on wiki/WikiStart, if I press Update on the right, I get this error (no matter what display mode I set next to "Display differences").

Request parameters:

{'__FORM_TOKEN': u'a5542b492c29da81e77be5dc',
 'action': u'diff',
 'contextlines': u'2',
 'old_version': u'7',
 'page': u'WikiStart',
 'style': u'inline',
 'update': u'Update',
 'version': [u'8', u'8']} <--- this line probably generated the error

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5 same error with: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)

System Information

Trac 0.11.1
Python 2.6.2 (release26-maint, Apr 19 2009, 02:11:59)
[GCC 4.3.3]
setuptools 0.6c9
SQLite 3.6.10
pysqlite 2.5.0
Genshi 0.5.1
mod_python 3.3.1
Subversion 1.5.4 (r33841)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/wiki/web_ui.py", line 115, in process_request
    versioned_page = WikiPage(self.env, pagename, version=version)
  File "/usr/lib/python2.6/dist-packages/trac/wiki/model.py", line 43, in __init__
    self._fetch(name, version, db)
  File "/usr/lib/python2.6/dist-packages/trac/wiki/model.py", line 59, in _fetch
    (name, int(version)))
TypeError: int() argument must be a string or a number, not 'list'

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: duplicate
Status: newclosed

Known issue with Python 2.6 (#7876), fixed in 0.11.3. Please update your installation.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.