You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running examples/asyncio-ssh-python-embed.py this error occurs:
Traceback (most recent call last):
File "/workspaces/ptpython/ptpython/repl.py", line 240, in run_async
text = await loop.run_in_executor(None, self.read)
File "/home/codespace/.python/current/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/workspaces/ptpython/ptpython/python_input.py", line 1102, in read
result = self.app.run(pre_run=pre_run, in_thread=True)
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 954, in run
raise exception
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 939, in run_in_thread
result = self.run(
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 1002, in run
return asyncio.run(coro)
File "/home/codespace/.python/current/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/codespace/.python/current/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 886, in run_async
return await _run_async(f)
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 676, in _run_async
self.key_processor.feed_multiple(get_typeahead(self.input))
File "/home/codespace/.python/current/lib/python3.10/site-packages/prompt_toolkit/input/typeahead.py", line 65, in get_typeahead
key = input_obj.typeahead_hash()
AttributeError: '_GeneratorContextManager' object has no attribute 'typeahead_hash'
DEBUG:asyncio:Using selector: EpollSelector
When running
examples/asyncio-ssh-python-embed.py
this error occurs:My suspicion
This line
ptpython/ptpython/contrib/asyncssh_repl.py
Line 46 in f40e091
Calls https://github.com/prompt-toolkit/python-prompt-toolkit/blob/b76992eaf5709be9b5e51975b945e0ff23329f2f/src/prompt_toolkit/input/defaults.py#L59C1-L71C20
However, here it says:
So I suspect that the example was not updated since this breaking change.
Environment to show this error
The text was updated successfully, but these errors were encountered: