You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Alexander Tsvyashchenko (Jira)" <ji...@apache.org> on 2022/01/07 17:13:00 UTC

[jira] [Commented] (BEAM-9324) Python SDK Incompatibility with Cython

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

Alexander Tsvyashchenko commented on BEAM-9324:
-----------------------------------------------

Had this issue when packaging Apache Beam in `nixpkgs`, see [https://github.com/NixOS/nixpkgs/pull/153780|https://github.com/NixOS/nixpkgs/pull/153780),]. The code in question (`apache_beam/runners/worker/operations.py`)
 tries to use `cython`'s cast functionality and looks like with the recent Python (3.9.9) and Cython (0.29.24) this cast doesn't work but is not even necessary? All the tests pass with the casts removed, see the patch `pkgs/development/python-modules/apache-beam/fix-cython.patch` in that PR.

> Python SDK Incompatibility with Cython
> --------------------------------------
>
>                 Key: BEAM-9324
>                 URL: https://issues.apache.org/jira/browse/BEAM-9324
>             Project: Beam
>          Issue Type: Bug
>          Components: examples-python, runner-core, sdk-py-core
>    Affects Versions: 2.19.0
>            Reporter: Tommy Yong
>            Priority: P3
>
> When executing a sample apache beam pipeline, the following error appears:
> {code:java}
> TypeError: Receiver() takes no argument
> {code}
> Full-stack trace: [https://stackoverflow.com/questions/60052098/apache-beam-on-python-typeerror-receiver-takes-no-arguments/60058770?noredirect=1#comment106234439_60058770]
> The error appears to come from Cython packages/modules. However, after uninstalling Cython, the error goes away. Appears to have some sort of incompatibility with Cython.
> {{}}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)