Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-931

Unable to download object as stream using download_object_as_stream method for OpenStack Swift.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Storage
    • The running environment is Windows Server 2008 R2 using PyCharm IDE with Python 2.7 and Python 3.6 configured on the machine.

    • Important

    Description

      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

      Attachments

        1. image-2018-08-08-12-29-34-315.png
          294 kB
          Clemens Wolff

        Activity

          People

            Unassigned Unassigned
            ssaumya123 Saumya Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified