[
https://issues.apache.org/jira/browse/BEAM-9324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541604#comment-17541604
]
Yi Hu commented on BEAM-9324:
-----------------------------
This is due to Cython.Shadow.cast(Receiver, value) attempting to run
Receiver(value) (probably very old code in Python 2 age where "old" class did
not have __call__). It is a bug of Cython 0.x and will be fixed in upcoming
v3.0 (cython/cython@3149eb8). Provided a workaround before cython 3.0 is
released (https://github.com/apache/beam/pull/17728), which should be removed
once upgraded to Cython 3.
> 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
> Assignee: Yi Hu
> Priority: P3
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> 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.7#820007)