[
https://issues.apache.org/jira/browse/BEAM-3981?focusedWorklogId=90914&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-90914
]
ASF GitHub Bot logged work on BEAM-3981:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Apr/18 18:00
Start Date: 13/Apr/18 18:00
Worklog Time Spent: 10m
Work Description: aaltay commented on issue #5053: [BEAM-3981] Futurize
coders subpackage
URL: https://github.com/apache/beam/pull/5053#issuecomment-381215630
I see the following error in the output
```
I /tmp/pip-cVZPmP-build/setup.py:79: UserWarning: You are using version
0.27.3 of cython. However, version 0.28.1 is recommended.
I _CYTHON_VERSION, REQUIRED_CYTHON_VERSION
I
I Error compiling Cython file:
I ------------------------------------------------------------
I ...
I except NameError: # Python 3
I long = int
I unicode = str
I
I
I class CoderImpl(object):
I ^
I ------------------------------------------------------------
I
I apache_beam/coders/coder_impl.py:68:0: 'object' is not a type name
I Compiling apache_beam/coders/stream.pyx because it changed.
I Compiling apache_beam/runners/worker/statesampler_fast.pyx because it
changed.
I Compiling apache_beam/coders/coder_impl.py because it changed.
I Compiling apache_beam/metrics/execution.py because it changed.
I Compiling apache_beam/runners/common.py because it changed.
I Compiling apache_beam/runners/worker/logger.py because it changed.
I Compiling apache_beam/runners/worker/opcounters.py because it
changed.
I Compiling apache_beam/runners/worker/operations.py because it
changed.
I Compiling apache_beam/transforms/cy_combiners.py because it changed.
I Compiling apache_beam/utils/counters.py because it changed.
I Compiling apache_beam/utils/windowed_value.py because it changed.
I [ 1/11] Cythonizing apache_beam/coders/coder_impl.py
I Traceback (most recent call last):
I File "<string>", line 1, in <module>
I File "/tmp/pip-cVZPmP-build/setup.py", line 204, in <module>
I 'apache_beam/utils/windowed_value.py',
I File
"/usr/local/lib/python2.7/dist-packages/Cython/Build/Dependencies.py", line
1039, in cythonize
I cythonize_one(*args)
I File
"/usr/local/lib/python2.7/dist-packages/Cython/Build/Dependencies.py", line
1161, in cythonize_one
I raise CompileError(None, pyx_file)
I Cython.Compiler.Errors.CompileError: apache_beam/coders/coder_impl.py
I
I ----------------------------------------
```
I assume this is because The new code requires the new Cython version
however dataflow workers do not have it.
@tvalentyn Could you upgrade the workers at head to use the 0.28.1 cython
version?
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 90914)
Time Spent: 11h (was: 10h 50m)
> Futurize and fix python 2 compatibility for coders package
> ----------------------------------------------------------
>
> Key: BEAM-3981
> URL: https://issues.apache.org/jira/browse/BEAM-3981
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Robbe
> Assignee: Ahmet Altay
> Priority: Major
> Time Spent: 11h
> Remaining Estimate: 0h
>
> Run automatic conversion with futurize tool on coders subpackage and fix
> python 2 compatibility. This prepares the subpackage for python 3 support.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)