[Bug 1108161] Re: 7.19.0-5ubuntu5 is broken on python 2.X

Launchpad Bug Tracker 1108161 at bugs.launchpad.net
Mon Jan 28 21:09:11 UTC 2013


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 <mterry at ubuntu.com>   Mon, 28 Jan 2013 14:30:36 -0500

** Changed in: pycurl (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pycurl in Ubuntu.
https://bugs.launchpad.net/bugs/1108161

Title:
  7.19.0-5ubuntu5 is broken on python 2.X

Status in “pycurl” package in Ubuntu:
  Fix Released

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()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/1108161/+subscriptions




More information about the foundations-bugs mailing list