[ 
https://issues.apache.org/jira/browse/BEAM-1251?focusedWorklogId=121152&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-121152
 ]

ASF GitHub Bot logged work on BEAM-1251:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jul/18 00:45
            Start Date: 10/Jul/18 00:45
    Worklog Time Spent: 10m 
      Work Description: charlesccychen closed pull request #5908: [BEAM-1251] 
Revert #5887 to unbreak Python PostCommit
URL: https://github.com/apache/beam/pull/5908
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/python/apache_beam/io/avroio.py 
b/sdks/python/apache_beam/io/avroio.py
index f90dc3c6833..9b86b58982b 100644
--- a/sdks/python/apache_beam/io/avroio.py
+++ b/sdks/python/apache_beam/io/avroio.py
@@ -341,8 +341,8 @@ def _decompress_bytes(data, codec):
 
       # Compressed data includes a 4-byte CRC32 checksum which we verify.
       # We take care to avoid extra copies of data while slicing large objects
-      # by use of a memoryview.
-      result = snappy.decompress(memoryview(data)[:-4])
+      # by use of a buffer.
+      result = snappy.decompress(buffer(data)[:-4])
       avroio.BinaryDecoder(io.BytesIO(data[-4:])).check_crc32(result)
       return result
     else:
diff --git a/sdks/python/container/Dockerfile b/sdks/python/container/Dockerfile
index afb6b43f938..90348c6e231 100644
--- a/sdks/python/container/Dockerfile
+++ b/sdks/python/container/Dockerfile
@@ -70,7 +70,7 @@ RUN \
     # Optional packages
     pip install "cython == 0.28.1" && \
     pip install "guppy == 0.1.10" && \
-    pip install "python-snappy == 0.5.3" && \
+    pip install "python-snappy == 0.5.1" && \
     # These are additional packages likely to be used by customers.
     pip install "numpy == 1.13.3" --no-binary=:all: && \
     pip install "pandas == 0.18.1" && \


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 121152)
    Time Spent: 16h  (was: 15h 50m)

> Python 3 Support
> ----------------
>
>                 Key: BEAM-1251
>                 URL: https://issues.apache.org/jira/browse/BEAM-1251
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Eyad Sibai
>            Assignee: Robbe
>            Priority: Trivial
>          Time Spent: 16h
>  Remaining Estimate: 0h
>
> I have been trying to use google datalab with python3. As I see there are 
> several packages that does not support python3 yet which google datalab 
> depends on. This is one of them.
> https://github.com/GoogleCloudPlatform/DataflowPythonSDK/issues/6



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to