[ 
https://issues.apache.org/jira/browse/BEAM-9277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen updated BEAM-9277:
-------------------------------
    Description: 
Beam 2.19 causes the following error to occur in an IPython notebook:

{{/usr/local/lib/python3.6/dist-packages/apache_beam/utils/interactive_utils.py 
in alter_label_if_ipython(transform, pvalueish)}}
ipython prompt metadata. Cannot figure out the pipeline '
that the given pvalueish %s belongs to. Thus noop.'
 ---> 84 % pvalueish)
if (pipeline
# We only alter for transforms to be applied to user-defined 
pipelines}}{{TypeError: not all arguments converted during string formatting}}

The fix should be that the formatter should pass "% (pvalueish,)" instead of 
the possible tuple.

  was:
Beam 2.19 causes the following error to occur in an IPython notebook:

{{/usr/local/lib/python3.6/dist-packages/apache_beam/utils/interactive_utils.py 
in alter_label_if_ipython(transform, pvalueish)}}
{{ 82 'ipython prompt metadata. Cannot figure out the pipeline '}}
{{ 83 'that the given pvalueish %s belongs to. Thus noop.'}}
{{ ---> 84 % pvalueish)}}
{{ 85 if (pipeline}}
{{ 86 # We only alter for transforms to be applied to user-defined 
pipelines}}{{TypeError: not all arguments converted during string formatting}}

The fix should be that the formatter should pass "% (pvalueish,)" instead of 
the possible tuple.


> Beam 2.19 raises exception in IPython notebook
> ----------------------------------------------
>
>                 Key: BEAM-9277
>                 URL: https://issues.apache.org/jira/browse/BEAM-9277
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Charles Chen
>            Assignee: Charles Chen
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Beam 2.19 causes the following error to occur in an IPython notebook:
> {{/usr/local/lib/python3.6/dist-packages/apache_beam/utils/interactive_utils.py
>  in alter_label_if_ipython(transform, pvalueish)}}
> ipython prompt metadata. Cannot figure out the pipeline '
> that the given pvalueish %s belongs to. Thus noop.'
>  ---> 84 % pvalueish)
> if (pipeline
> # We only alter for transforms to be applied to user-defined 
> pipelines}}{{TypeError: not all arguments converted during string formatting}}
> The fix should be that the formatter should pass "% (pvalueish,)" instead of 
> the possible tuple.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to