Open yhojann-cl opened 4 years ago
Got this on Ubuntu 20.04 LTS with Python 3.8.
Seems like it's more curses problem that npyscreen by itself (or it's just outdated).
I was able to fix it by wrapping this loop with try block at npyscreen.apNPSApplicationEvents.StandardApp.process_event_queues
def process_event_queues(self, max_events_per_queue=None):
for queue in self.event_queues.values():
+ try:
for event in queue.get(maximum=max_events_per_queue):
self.process_event(event)
+ except (RuntimeError, StopIteration):
+ pass
I don't understand the issue's origins and this fix though.
hit the same error, checked the code: https://github.com/npcole/npyscreen/blob/master/npyscreen/apNPSApplicationEvents.py#L18 and it looks like its fixed on master for 2 years
the version on pypi is very old
By example:
The results: