IndexError: pop from an empty deque
See original GitHub issueIssue Description
/usr/local/lib/python3.6/dist-packages/vidstab/general_utils.py:57: UserWarning: No progress bar will be shown. (Unable to grab frame count & no max_frames provided.)
warnings.warn('No progress bar will be shown. (Unable to grab frame count & no max_frames provided.)')
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/dist-packages/vidstab/__main__.py", line 64, in <module>
cli_stabilizer(args)
File "/usr/local/lib/python3.6/dist-packages/vidstab/main_utils.py", line 119, in cli_stabilizer
playback=args['playback'])
File "/usr/local/lib/python3.6/dist-packages/vidstab/VidStab.py", line 485, in stabilize
bar = self._init_trajectory(smoothing_window, max_frames, show_progress=show_progress)
File "/usr/local/lib/python3.6/dist-packages/vidstab/VidStab.py", line 157, in _init_trajectory
self._process_first_frame()
File "/usr/local/lib/python3.6/dist-packages/vidstab/VidStab.py", line 137, in _process_first_frame
_, _ = self.frame_queue.read_frame(array=array)
File "/usr/local/lib/python3.6/dist-packages/vidstab/frame_queue.py", line 43, in read_frame
return self._append_frame(frame, pop_ind)
File "/usr/local/lib/python3.6/dist-packages/vidstab/frame_queue.py", line 51, in _append_frame
self.i = self.inds.popleft()
IndexError: pop from an empty deque
Works for some videos but for some videos it gives this error
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
IndexError: pop from an empty deque · Issue #511 - GitHub
I had this exact problem when I tried using different channels of the same connection in several threads, then I read the FAQ......
Read more >Python while loop popleft() - ERROR: Empty deque
The code above executes all three commands and on the gamma command returns an "IndexError: pop from an empty deque.
Read more >iostream's write :IndexError: pop from an empty deque
IndexError : pop from an empty deque. What does this mean? I am sure when I calling self._stream.write(data,lambda : self.read_message(sendno, mess_id)), ...
Read more >Issue 31099: Timer error pop from empty deque/list
msg299634 ‑ (view) Author: Randy Henderson (Randy Henderson) Date: 2017‑08‑01 20:50
msg299636 ‑ (view) Author: R. David Murray (r.david.murray) * Date: 2017‑08‑01 20:58
msg299638 ‑...
Read more >Pyspark RDD.Collect Problem | Data Science and Machine ...
... in _get_connection connection = self.deque.pop() IndexError: pop from an empty deque During handling of the above exception, another exception occurred: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey I tried it again and it was a stupid error on my part of not being in the correct directory. (although it somehow worked one video) my bad, very sorry for wasting your time thank you for your time
This should be a more descriptive error message though. I’ve opened up #71 to avoid this confusing error message in the future.