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

RuntimeError: you have an eventloop running but not using Jupyter/ipython. #92

Open
The-Hipnotist opened this issue Aug 27, 2022 · 5 comments

Comments

@The-Hipnotist
Copy link

I get this when attempting to use VSC (Visual Studio Code) to run DocArray's Document class. It keeps saying to adjust "Client/Flow" to "asyncio=True", but I am not using either of those classes.

Any help would be awesome, thank you!

@The-Hipnotist
Copy link
Author

Logs attached if that helps too:
Screenshot 2022-08-27 004403

@AmericanPresidentJimmyCarter
Copy link
Contributor

See this issue: jina-ai/serve#4761

@AmericanPresidentJimmyCarter
Copy link
Contributor

Note that if you're trying to use this directly in async code you should alter flow.tmp.yml to have

jtype: Flow
with:
  asyncio: True

It should perhaps be another environmental variable in flow_parser.py to make the feature easily accessible. @delgermurun

Yet the default configuration is sync -- hence to work with async code as specified I actually use a filesystem bus in my Discord bot code, just for the sake of making it easy on people who are pulling or creating the docker image directly.

@delgermurun
Copy link
Contributor

@AmericanPresidentJimmyCarter yeah, let's have env variable for it. Would you mind raising a PR 😁 ?

@AmericanPresidentJimmyCarter
Copy link
Contributor

No problem, I will look into it this week.

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

3 participants