Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow V2.1.6 - KeyError: 'previous_data' #67

Open
GaryRevell opened this issue Jul 26, 2022 · 0 comments
Open

Workflow V2.1.6 - KeyError: 'previous_data' #67

GaryRevell opened this issue Jul 26, 2022 · 0 comments

Comments

@GaryRevell
Copy link

Trying out the sample code from the documentation "Loops and interrupts" from this page
https://workflow.readthedocs.io/en/latest/#contributing

And get the following stack dump:

grevell@grevell-mac workflow % py3 wf_complex.py
new data: [0]
new data: [0, 1]
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 540, in _process
exception_handler = getattr(
AttributeError: type object 'TransitionActions' has no attribute 'KeyError'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/grevell/Documents/dev/python/workflow/wf_complex.py", line 77, in
my_engine.process([[], [0,1], [0,1,0,1]])
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 390, in process
self._process(objects)
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 546, in _process
self.processing_factory.transition_exception_mapper.Exception( # noqa
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 970, in Exception
reraise(*exc_info)
File "/opt/homebrew/lib/python3.9/site-packages/six.py", line 719, in reraise
raise value
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 529, in _process
self.run_callbacks(callbacks, objects, obj)
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 462, in run_callbacks
self.run_callbacks(inner_callbacks,
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 481, in run_callbacks
self.execute_callback(callback_func, obj)
File "/opt/homebrew/lib/python3.9/site-packages/workflow/engine.py", line 564, in execute_callback
callback(obj, self)
File "/opt/homebrew/lib/python3.9/site-packages/workflow/patterns/controlflow.py", line 338, in _for
eng.extra_data["_Iterators"][step]["previous_data"])
KeyError: 'previous_data'
grevell@grevell-mac workflow %

Not sure if this is still being worked on but it looks a very good candidate for what I need.

Thanks !

Gary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant