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

raise RuntimeError('This event loop is already running') #10

Closed
kennyjudo opened this issue Jun 27, 2018 · 3 comments
Closed

raise RuntimeError('This event loop is already running') #10

kennyjudo opened this issue Jun 27, 2018 · 3 comments

Comments

@kennyjudo
Copy link

  • bleak version:
  • Python version: 3.6.5
  • Operating System: win10 Spyder 3.6.8

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?

@hbldh
Copy link
Owner

hbldh commented Jun 27, 2018

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 cmd instead and see if it works, or switch to another IDE, e.g. PyCharm where I know that it works.

@kennyjudo
Copy link
Author

kennyjudo commented Jun 27, 2018 via email

@hbldh
Copy link
Owner

hbldh commented Jun 27, 2018

Good that it works! Closing issue.

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

2 participants