7.19.0-5ubuntu5 is broken on python 2.X

Bug #1108161 reported by Thomas Herve
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
pycurl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The recent patch uploaded raring fixing a python3 issue is breaking usage of WRITEFUNCTION in python 2.X. http://launchpadlibrarian.net/129472394/pycurl_7.19.0-5ubuntu4_7.19.0-5ubuntu5.diff.gz is the patch.

The following script fails with "SystemError: bad format char passed to Py_BuildValue":

import pycurl
from StringIO import StringIO

body = StringIO()

curl = pycurl.Curl()
curl.setopt(pycurl.URL, "http://www.ubuntu.com/")
curl.setopt(pycurl.WRITEFUNCTION, body.write)
curl.perform()

print body.getvalue()

Revision history for this message
Chad Smith (chad.smith) wrote :

validated on raring:

SystemError: bad format char passed to Py_BuildValue
Traceback (most recent call last):
  File "1.py", line 9, in <module>
    curl.perform()
pycurl.error: (23, 'Failed writing body (0 != 7963)')

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pycurl (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pycurl - 7.19.0-5ubuntu6

---------------
pycurl (7.19.0-5ubuntu6) raring; urgency=low

  * debian/patches/python3.patch:
    - And make sure that the last WRITEFUNCTION fix only is used for
      Python 3, to avoid breaking Python 2 (LP: #1108161)
 -- Michael Terry <email address hidden> Mon, 28 Jan 2013 14:30:36 -0500

Changed in pycurl (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.