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

Chad Smith 1108161 at bugs.launchpad.net
Mon Jan 28 19:25:08 UTC 2013


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

-- 
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:
  New

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