-
Notifications
You must be signed in to change notification settings - Fork 304
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
raise RuntimeError('This event loop is already running') #10
Comments
I think this is an issue with Spyder I am afraid. It seems that Spyder uses event loops internally to run the code, and this will never work with Bleak. Try running the code from |
Yes. I use the same code in vscode without runtime error, I may switch to
vscode since it’s support anaconda.
「Henrik Blidh <notifications@github.com>」在 2018年6月27日 週三,21:01 寫道:
… I think this is an issue
<https://stackoverflow.com/questions/50243393/runtimeerror-this-event-loop-is-already-running-debugging-aiohttp-asyncio-a>
with Spyder I am afraid. It seems that Spyder uses event loops internally
to run the code, and this will never work with Bleak.
Try running the code from cmd instead and see if it works, or switch to
another IDE, e.g. PyCharm where I know that it works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AmHB792x1wcyg4dD28KGgrfdOpqeMPRjks5uA4I7gaJpZM4U5LE7>
.
|
Good that it works! Closing issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I try the LE device scan example get the error message in Spyder 3.6.8 as title mentioned, the program can should the nearly LE devices name and ID but it out of control after the output, just hang........
please anyone can help?
The text was updated successfully, but these errors were encountered: