libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saumya Gupta (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-931) Unable to download object as stream using download_object_as_stream method for OpenStack Swift.
Date Wed, 12 Jul 2017 05:41:00 GMT
Saumya Gupta created LIBCLOUD-931:
-------------------------------------

             Summary: Unable to download object as stream using download_object_as_stream
method for OpenStack Swift.
                 Key: LIBCLOUD-931
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-931
             Project: Libcloud
          Issue Type: Bug
          Components: Storage
         Environment: The running environment is Windows Server 2008 R2 using PyCharm IDE
with Python 2.7 and Python 3.6 configured on the machine.
            Reporter: Saumya Gupta


HI,

I am unable to download object as stream from the OpenStack Swift storage as when i try to
run the "download_object_as_stream" method by passing object_instance and chunk size, on Python
2.7 environment, and when i try to iterate the generator object returned it is giving me an
error message as:
"HttpLibResponseProxy' object has no attribute 'next'".

And when i change the execution environment to Python 3.6, it is giving me the error as:
"'HttpLibResponseProxy' object is not an iterator"

And as per my understanding the read_in_chunk callback method is throwing this exception,
but don't know the reason exactly, whether it a problem with execution environment or anything
else.

Please try to provide a solution/patch/approach to resolve this issue.

Regads,
Saumya gupta



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message