-
Notifications
You must be signed in to change notification settings - Fork 101
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
How to insert manual input during the execution of Dora? #565
Comments
I tried your keyboard.zip on mac and keyboard input can be captured by dora. 2024-06-25.15.32.37.movIs that what you expect? I also tried on wsl2-ubuntu, but found error when install pynput. pynput seems not working well on wsl2. |
We're going to merge #559 and later release a release candidate for 0.3.5 that you will be able to try with dynamic nodes. |
Thank you for your reply, I apologize for the late response.
|
I understand could you try dynamic node: https://github.com/dora-rs/dora/releases/tag/v0.3.5 ? |
Okay, I have tried it. When I used dora-cli with version 0.3.5-rc0, and I updated my Python-dora through the command pip install dora-rs==0.3.5 --force, it resulted in an error. I don't know what caused it. Currently, I am still testing in a VM (Virtual Machine) environment
|
When I reinstalled dora-cli using cargo install dora-cli --locked, the same issue occurred |
Could you run: cargo install dora-cli==0.3.5 --locked
pip install dora-rs==0.3.5 ? |
After I used the command error: could not find |
You can also use:
|
|
Sorry you need to do: dora destroy
dora up After a version update |
Okay, thank you. The process has started normally |
When I use the example from [https://github.com/dora-rs/dora-rs.github.io/blob/v0.3.5/docs/guides/Development/dynamic-node.md], I encountered several issues: I cannot terminate the dataflow using dora stop.
This is the dataflow I am currently running
|
The node_0 from the node id is probably wrong. Are you sure your using the right node id? |
dataflow.yml
|
So our CI is passing on this: Lines 322 to 323 in 2f401ff
Could you check if you can run this from this repo: pip install "numpy<2.0.0" opencv-python
dora start examples/python-dataflow/dataflow_dynamic.yml --name ci-python-dynamic --detach
python examples/python-dataflow/plot_dynamic.py |
Thank you for your reply. After I restarted the process, I successfully ran your example. Thanks. But now I have another issue: How do I stop this dataflow? When I use dora stop 'dataflow_id', it gets stuck |
I wonder if this is linked to #575 . You are on WSL right? |
Ok, interesting. For Because of: dora/examples/python-dataflow/webcam.py Lines 20 to 22 in 2f401ff
Could you try to set the same logic in your usecase. I am going to fix #575 on a follow up PR. |
Okay, thank you |
Describe the bug
I want to determine during the execution of a Dora workflow whether some content needs manual intervention based on certain conditions. Following the example from
https://github.com/dora-rs/dora/blob/main/examples/python-operator-dataflow/keyboard_op.py
, I built a workflow myself. However, during the execution of the workflow, manual input was not integrated, and I am not sure where the issue lies. Additionally, I noticed that in your example, after usingkeyboard_op.py
, manual input is possible. I want to know how I can solve this problem.Expected behavior
Screenshots or Video
Environments (please complete the following information):
Additional context
I have uploaded my workflow files in a compressed folder. Could you please help check if there are any issues?
keyboard.zip
The text was updated successfully, but these errors were encountered: