-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index error: pop from an empty deque #9
Comments
I'm getting the same error. |
Sounds like the same issue as @7, just applied to Python 3.8 rather than 3.7. Can you try my fork of npyscreen (https://github.com/jwoglom/npyscreen) which on line 18 of apNPSApplicationEvents.py does not have an explicit "raise StopIteration"? |
Python 3.7.2: Traceback (most recent call last):
File "/usr/local/lib/python3.7/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 "/usr/local/lib/python3.7/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 "main.py", line 1002, in <module>
signal.run()
File "/usr/local/lib/python3.7/site-packages/npyscreen/apNPSApplication.py", line 30, in run
return npyssafewrapper.wrapper(self.__remove_argument_call_main)
File "/usr/local/lib/python3.7/site-packages/npyscreen/npyssafewrapper.py", line 41, in wrapper
wrapper_no_fork(call_function)
File "/usr/local/lib/python3.7/site-packages/npyscreen/npyssafewrapper.py", line 97, in wrapper_no_fork
return_code = call_function(_SCREEN)
File "/usr/local/lib/python3.7/site-packages/npyscreen/apNPSApplication.py", line 25, in __remove_argument_call_main
return self.main()
File "/usr/local/lib/python3.7/site-packages/npyscreen/apNPSApplicationManaged.py", line 172, in main
self._THISFORM.edit()
File "/usr/local/lib/python3.7/site-packages/npyscreen/fm_form_edit_loop.py", line 86, in edit
self._widgets__[self.editw].edit()
File "/usr/local/lib/python3.7/site-packages/npyscreen/wgmultiline.py", line 581, in edit
self.get_and_use_key_press()
File "/usr/local/lib/python3.7/site-packages/npyscreen/wgwidget.py", line 575, in get_and_use_key_press
return self.try_while_waiting()
File "/usr/local/lib/python3.7/site-packages/npyscreen/wgwidget.py", line 560, in try_while_waiting
self.parent.parentApp._internal_while_waiting()
File "/usr/local/lib/python3.7/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 "/usr/local/lib/python3.7/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
^CException ignored in: <module 'threading' from '/usr/local/lib/python3.7/threading.py'>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 1273, in _shutdown
t.join()
File "/usr/local/lib/python3.7/threading.py", line 1032, in join
self._wait_for_tstate_lock()
File "/usr/local/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
File "main.py", line 493, in sigint_handler
exit(0)
File "/usr/local/lib/python3.7/_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: 0
[root@v48807 signal-curses]# python3 --version
Python 3.7.2
[root@v48807 signal-curses]# Will try your fork in a little bit. Thanks! |
Alright. Your fork worked out good, I can see the interface. |
@reardenlife The contacts list piggybacks off of the contacts which are delivered to it via Signal. so if you have the application on your phone, then any contacts/threads should hopefully appear. If not, I imagine you can manually add to the JSON in .local/share/signal-cli/data/+1your_phone (or wherever your data folder is) with something like:
|
Don't know where to go from here. Using macos. |
@WangElectronics I have not been able to get dbus working properly on macos in some time -- it is quite finicky. Not sure where to lead you from there. Make sure you're running a dbus server on your machine. |
Unable to run due to the crash.
The version of signal-curses is the last one.
The text was updated successfully, but these errors were encountered: