Is 'leoclient' working for anyone ?

35 views
Skip to first unread message

Viktor Ransmayr

unread,
May 3, 2026, 2:09:59 PMMay 3
to leo-editor
Hello Edward & Felix,

I tried to run 'leoclient' in the latest 'devel' branch and receive the following traceback.

::

    📦[user@leo-on-debian leo-editor]$
    📦[user@leo-on-debian leo-editor]$ python3 -m leo.core.leoclient
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/home/user/distroboxes/projects/leo-on-debian/leo-editor/leo/core/leoclient.py", line 265, in <module>
        main()
        ~~~~^^
      File "/home/user/distroboxes/projects/leo-on-debian/leo-editor/leo/core/leoclient.py", line 254, in main
        loop = asyncio.get_event_loop()
      File "/usr/local/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
        raise RuntimeError('There is no current event loop in thread %r.'
                           % threading.current_thread().name)
    RuntimeError: There is no current event loop in thread 'MainThread'.
    📦[user@leo-on-debian leo-editor]$

It is not related to any of the latest changes, because it is not working in version 6.8.8 installed from PyPI either.

It is also not related to Python 3.14, because I receive similar error msgs for Python 3.13.

When was 'leoclient' tested successfully the last time ?

With kind regards,

Viktor

Edward K. Ream

unread,
May 5, 2026, 9:01:04 AMMay 5
to leo-editor


On Sunday, May 3, 2026 at 1:09:59 PM UTC-5 Viktor wrote

> I tried to run 'leoclient' in the latest 'devel' branch and receive the following traceback.

Thanks for this report. I see the same traceback. I have just created #4664.

Edward

Edward K. Ream

unread,
May 5, 2026, 12:11:34 PMMay 5
to leo-editor
PR #4666 is ready for review. Another case of the dreaded software rot. Tested on Python 3.10 and 3.14.

The PR improves logging in both the client and server. 

All comments and suggestions are welcome.

Edward

Viktor Ransmayr

unread,
May 5, 2026, 3:04:06 PMMay 5
to leo-editor
Hello Edward,

I tested the ' ekr-4664-leoclient.py' branch on Debian & Fedora w/o success !

When I try to start 'leoclient' I receive the following traceback:

###

    📦[user@leo-on-debian leo-editor]$
    📦[user@leo-on-debian leo-editor]$ python3 -m leo.core.leoclient
    LeoServer: init leoBridge in 0.74 sec.

    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/home/user/distroboxes/projects/leo-on-debian/leo-editor/leo/core/leoclient.py", line 264, in <module>
        main()
        ~~~~^^
      File "/home/user/distroboxes/projects/leo-on-debian/leo-editor/leo/core/leoclient.py", line 251, in main
        asyncio.run(client_main_loop(timeout))  # #4664
        ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.14/asyncio/runners.py", line 204, in run
        return runner.run(main)
               ~~~~~~~~~~^^^^^^
      File "/usr/local/lib/python3.14/asyncio/runners.py", line 127, in run
        return self._loop.run_until_complete(task)
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
      File "/usr/local/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
        return future.result()
               ~~~~~~~~~~~~~^^
      File "/home/user/distroboxes/projects/leo-on-debian/leo-editor/leo/core/leoclient.py", line 176, in client_main_loop
        async with websockets.connect(uri) as websocket:
                   ~~~~~~~~~~~~~~~~~~^^^^^
      File "/home/user/distroboxes/projects/leo-on-debian/.local/lib/python3.14/site-packages/websockets/asyncio/client.py", line 590, in __aenter__
        return await self
               ^^^^^^^^^^
      File "/home/user/distroboxes/projects/leo-on-debian/.local/lib/python3.14/site-packages/websockets/asyncio/client.py", line 544, in __await_impl__
        self.connection = await self.create_connection()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/user/distroboxes/projects/leo-on-debian/.local/lib/python3.14/site-packages/websockets/asyncio/client.py", line 470, in create_connection
        _, connection = await loop.create_connection(factory, **kwargs)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1176, in create_connection
        raise OSError('Multiple exceptions: {}'.format(
            ', '.join(str(exc) for exc in exceptions)))
    OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 32125, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 32125)
    📦[user@leo-on-debian leo-editor]$


###

With kind regards,

Viktor

Reply all
Reply to author
Forward
0 new messages