[Python-apps-team] Bug#676176: trac: Unable to show changeset : TypeError: expecting an integer for the buffer size

Eric Valette eric2.valette at orange.com
Tue Jun 5 08:28:28 UTC 2012


Package: trac
Version: 0.12.3-1
Severity: normal


   I have upgraded a working trac 11 installation to a track 12. 
Track is correctly working. I can browse subversion repostory and so
on. BUT I cannot see chnagesets.

When trying to see a diff for a file between two revision I have an 
internal error related to python handling of chnagelog parsing:

TypeError: expecting an integer for the buffer size
2012-06-04 14:01:26,423 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/changeset.py", line 352, in process_request
    self._render_html(req, repos, chgset, restricted, xhr, data)
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/changeset.py", line 618, in _render_html
    diffs = _content_changes(old_node, new_node)
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/web_ui/changeset.py", line 551, in _content_changes
    old_content = old_node.get_content().read()
  File "/usr/lib/pymodules/python2.7/svn/core.py", line 148, in read
    data = svn_stream_read(self._stream, SVN_STREAM_CHUNK_SIZE)
  File "/usr/lib/pymodules/python2.7/libsvn/core.py", line 4801, in svn_stream_read
    return _core.svn_stream_read(*args)
TypeError: expecting an integer for the buffer size

Googling on return only very old errors that depends from the trac.ini setup. But I
already double checked my config (and the value are the same than on previous setup).

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.32 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages trac depends on:
ii  libjs-jquery          1.7.2+debian-1
ii  python                2.7.2-10
ii  python-genshi         0.6-2
ii  python-pkg-resources  0.6.24-1
ii  python-setuptools     0.6.24-1
ii  python2.7             2.7.3~rc2-2.1

Versions of packages trac recommends:
ii  apache2                      2.2.22-6





More information about the Python-apps-team mailing list