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

gehome-appliance-data : RuntimeError: no running event loop #72

Closed
mguaylam opened this issue Sep 22, 2024 · 2 comments
Closed

gehome-appliance-data : RuntimeError: no running event loop #72

mguaylam opened this issue Sep 22, 2024 · 2 comments

Comments

@mguaylam
Copy link

I'm trying to run gehome-appliance-data to read what's happening on the API but after installing it I get :

2024-09-21 20:26:51,409 DEBUG    Using selector: EpollSelector
Traceback (most recent call last):
  File "/home/mguaylam/.local/bin/gehome-appliance-data", line 8, in <module>
    sys.exit(appliance_data())
             ^^^^^^^^^^^^^^^^
  File "/home/mguaylam/.local/lib/python3.12/site-packages/gehomesdk/entry_points.py", line 18, in appliance_data
    gather_appliance_data(args.username, args.password, args.region)
  File "/home/mguaylam/.local/lib/python3.12/site-packages/gehomesdk/gather_data.py", line 54, in gather_appliance_data
    session = aiohttp.ClientSession()
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mguaylam/.local/lib/python3.12/site-packages/aiohttp/client.py", line 294, in __init__
    loop = loop or asyncio.get_running_loop()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop

I did supply my username, password and region.
Would anyone know if i'm missing something?

Thank you for your help.

@Jason-nz
Copy link

Jason-nz commented Oct 5, 2024

Looks like a breaking change in aiohttp 3.10.0

aio-libs/aiohttp#8555

@Jason-nz
Copy link

Jason-nz commented Oct 5, 2024

Try pip install aiohttp==3.9.5
That should get it working

@simbaja simbaja closed this as completed in 5f34946 Nov 3, 2024
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