incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ssteiner@idc" <sstei...@integrateddevcorp.com>
Subject [libcloud] Python 2.7 _to_images putheader failure, works on Python 2.6
Date Sun, 18 Jul 2010 01:31:45 GMT
With Python 2.7, Rackspace driver

Works fine under 2.6.5, fails on Python 2.7

Traceback:
    images = self.list_images()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/apache_libcloud-0.4.0-py2.7.egg/libcloud/drivers/rackspace.py",
line 193, in list_images
    return self._to_images(self.connection.request('/images/detail').object)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/apache_libcloud-0.4.0-py2.7.egg/libcloud/drivers/rackspace.py",
line 147, in request
    method=method, headers=headers
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/apache_libcloud-0.4.0-py2.7.egg/libcloud/base.py",
line 433, in request
    headers=headers)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line
946, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line
986, in _send_request
    self.putheader(hdr, value)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line
924, in putheader
    str = '%s: %s' % (header, '\r\n\t'.join(values))
TypeError: sequence item 0: expected string, int found

Haven't explored too much, I'm busy on a time-critical deployment, working on switching to
2.7 to run deployment scripts, fell down right here...

Anyone have any ideas?

Thanks,

Stephen F. Steiner
Integrated Development Corporation
ssteiner@integrateddevcorp.com
www.integrateddevcorp.com
(603)433-1232




Mime
View raw message