An infinite loop of printing <class 'ValueError'> signal only works in main thread of the main interpreter in the prompt will appear
and enter any command will end up in the following error:
> <class 'ValueError'> signal only works in main thread of the main interpreter
> <class 'ValueError'> signal only works in main thread of the main interpreter
> <class 'ValueError'> signal only works in main thread of the main interpreter
> <class 'ValueError'> signal only works in main thread of the main interpreter
<class 'ValueError'> signal only works in main thread of the main interpreter
unexpected error was caught.
please report to https://github.com/randy3k/radian for such error.
Event loop is already running
unexpected error was caught.
please report to https://github.com/randy3k/radian for such error.
list.remove(x): x not in list
Traceback (most recent call last):
File "/home/renkun/.local/lib/python3.9/site-packages/radian/console.py", line 96, in read_console
text = session.prompt(add_history=add_history)
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/prompt.py", line 231, in prompt
result = super(ModalPromptSession, self).prompt(**kwargs)
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/shortcuts/prompt.py", line 797, in prompt
return run_sync()
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/shortcuts/prompt.py", line 786, in run_sync
return self.app.run(inputhook=self.inputhook, pre_run=pre_run2)
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/application/application.py", line 736, in run
return run()
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/application/application.py", line 709, in run
run_until_complete(f, inputhook=inputhook)
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/eventloop/defaults.py", line 126, in run_until_complete
return get_event_loop().run_until_complete(future, inputhook=inputhook)
File "/home/renkun/.local/lib/python3.9/site-packages/lineedit/deps/prompt_toolkit/eventloop/posix.py", line 58, in run_until_complete
raise Exception('Event loop is already running')
Exception: Event loop is already running
Running the following torch example in latest radian will crash:
An infinite loop of printing
<class 'ValueError'> signal only works in main thread of the main interpreter
in the prompt will appear and enter any command will end up in the following error:My session info: