npyscreen icon indicating copy to clipboard operation
npyscreen copied to clipboard

示例代码运行报错

Open pandicheng opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplicationEvents.py", line 16, in get yield self.interal_queue.pop() IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplicationEvents.py", line 18, in get raise StopIteration StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "test.py", line 27, in obj.run() File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplication.py", line 30, in run return npyssafewrapper.wrapper(self.__remove_argument_call_main) File "C:\Python\Python38\lib\site-packages\npyscreen\npyssafewrapper.py", line 41, in wrapper wrapper_no_fork(call_function) File "C:\Python\Python38\lib\site-packages\npyscreen\npyssafewrapper.py", line 97, in wrapper_no_fork return_code = call_function(_SCREEN) File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplication.py", line 25, in __remove_argument_call_main return self.main() File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplicationManaged.py", line 172, in main self.THISFORM.edit() File "C:\Python\Python38\lib\site-packages\npyscreen\fm_form_edit_loop.py", line 47, in edit self.edit_loop() File "C:\Python\Python38\lib\site-packages\npyscreen\fm_form_edit_loop.py", line 38, in edit_loop self.widgets[self.editw].edit() File "C:\Python\Python38\lib\site-packages\npyscreen\wgboxwidget.py", line 150, in edit self.entry_widget.edit() File "C:\Python\Python38\lib\site-packages\npyscreen\wgmultiline.py", line 581, in edit self.get_and_use_key_press() File "C:\Python\Python38\lib\site-packages\npyscreen\wgwidget.py", line 575, in get_and_use_key_press return self.try_while_waiting() File "C:\Python\Python38\lib\site-packages\npyscreen\wgwidget.py", line 560, in try_while_waiting self.parent.parentApp._internal_while_waiting() File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplicationEvents.py", line 41, in _internal_while_waiting self.process_event_queues(max_events_per_queue=self.max_events_per_queue) File "C:\Python\Python38\lib\site-packages\npyscreen\apNPSApplicationEvents.py", line 51, in process_event_queues for event in queue.get(maximum=max_events_per_queue): RuntimeError: generator raised StopIteration

pandicheng avatar Feb 09 '20 12:02 pandicheng

I'm seeing this exact same issue. Python 3.10 on Ubuntu 22.04. Is this library still being maintained? The above error was reported in 2020.

scumola avatar Aug 23 '23 00:08 scumola