[
https://issues.apache.org/jira/browse/BEAM-9324?focusedWorklogId=774020&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774020
]
ASF GitHub Bot logged work on BEAM-9324:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/May/22 14:04
Start Date: 24/May/22 14:04
Worklog Time Spent: 10m
Work Description: Abacn commented on PR #17728:
URL: https://github.com/apache/beam/pull/17728#issuecomment-1135972858
This was a bug of cython Shadow fixed in upcoming v3.0
(https://github.com/cython/cython/commit/3149eb8367e69f1558c73b0ebc266bdfba8abc0d).
Before cython 3.0 is released this patch looks needed.
In the translated c-code the helper function gives
```
/* "apache_beam/runners/worker/operations.py":95
*
* def _cast_to_operation(value):
* if cython.compiled: # <<<<<<<<<<<<<<
* return cython.cast(Operation, value)
* else:
*/
__pyx_t_1 = (1 != 0);
if (__pyx_t_1) {
...
goto __pyx_L0;
/* ... */
}
/* ... */
/*else*/ {
...
goto __pyx_L0;
}
/* ... */
/* function exit code */
...
__pyx_L0:;
...
return __pyx_r;
}
```
where the branching condition is constant in the compile time and should be
eliminated by c compiler.
Issue Time Tracking
-------------------
Worklog Id: (was: 774020)
Time Spent: 1.5h (was: 1h 20m)
> 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: 1.5h
> 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)