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

Uncaught RuntimeError in events.py line 702 #3300

Closed
khamer opened this issue Feb 18, 2025 · 1 comment
Closed

Uncaught RuntimeError in events.py line 702 #3300

khamer opened this issue Feb 18, 2025 · 1 comment

Comments

@khamer
Copy link

khamer commented Feb 18, 2025

Happened on my first run of aider --browser, agreeing to install the aider browser feature.

Aider version: 0.74.2
Python version: 3.12.8
Platform: Linux-6.13.0-rc2-1-MANJARO-x86_64-with-glibc2.41
Python implementation: CPython
Virtual environment: Yes
OS: Linux 6.13.0-rc2-1-MANJARO (64bit)
Git version: git version 2.48.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 643, in main
    launch_gui(argv)
  File "main.py", line 268, in launch_gui
    cli.main(st_args)
  File "core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "cli.py", line 240, in main_run
    _main_run(target, args, flag_options=kwargs)
  File "cli.py", line 276, in _main_run
    bootstrap.run(file, is_hello, args, flag_options)
  File "bootstrap.py", line 344, in run
    if asyncio.get_event_loop().is_running():
       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "events.py", line 702, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.

@khamer
Copy link
Author

khamer commented Feb 18, 2025

Closing as a duplicate of #3221

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

1 participant