You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Clemens Wolff (JIRA)" <ji...@apache.org> on 2018/08/08 16:31:00 UTC

[jira] [Commented] (LIBCLOUD-931) Unable to download object as stream using download_object_as_stream method for OpenStack Swift.

    [ https://issues.apache.org/jira/browse/LIBCLOUD-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573457#comment-16573457 ] 

Clemens Wolff commented on LIBCLOUD-931:
----------------------------------------

The same issue is affecting me too, with the AzureBlobs driver on Docker/python-3.5:alpine (see screenshot below):

!image-2018-08-08-12-29-34-315.png!

> 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
>            Priority: Major
>              Labels: patch, performance, windows
>         Attachments: image-2018-08-08-12-29-34-315.png
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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
(v7.6.3#76005)