Skip to content
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

errors thrown while running streamlit terran timeline youtube example #4

Open
richlysakowski opened this issue Jul 29, 2022 · 0 comments

Comments

@richlysakowski
Copy link

The following errors are thrown. It appears to be thrown in the terran/ reader.py file...

At first there was an error from the example video not being available:

ERROR: Video unavailable
This video is no longer available because the YouTube account associated with this video has been terminated.
2022-07-29 13:56:22.831 Uncaught app exception

But it still throws an error when the example video is changed to a verified video:
https://www.youtube.com/watch?v=UDUlhZb1Iso

Here is the command used to start the demonstration:

streamlit-terran-timeline\streamlit_terran_timeline\examples>streamlit run youtube.py

Then the response:

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501
Network URL: http://192.168.1.163:8501

2022-07-29 14:25:31.019 Uncaught app exception
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 323, in _read_from_cache
return _read_from_mem_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 241, in _read_from_mem_cache
raise CacheKeyNotFoundError("Key not found in mem cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in mem cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 278, in _read_from_disk_cache
with file_util.streamlit_read(path, binary=True) as input:
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\file_util.py", line 75, in streamlit_read
if os.stat(filename).st_size == 0:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\richadmin.DESKTOP-IESK5E9\.streamlit\cache\9fe8cd06b471d754ba1d08787005bece-9aec85817c2934264930d2b8e9d2decc.pickle'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 539, in get_or_create_cached_value
return_value = _read_from_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 333, in _read_from_cache
value = _read_from_disk_cache(key)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 287, in _read_from_disk_cache
raise CacheKeyNotFoundError("Key not found in disk cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in disk cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "youtube.py", line 73, in
timeline = _generate_timeline(video_path)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 575, in wrapped_func
return get_or_create_cached_value()
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 555, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "youtube.py", line 56, in _generate_timeline
timeline = generate_timeline(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit_terran_timeline\timeline\generator.py", line 101, in generate_timeline
video = open_video(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 530, in open_video
return Video(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 243, in init
probe = ffmpeg_probe(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 58, in ffmpeg_probe
proc = subprocess.Popen(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception ignored in: <function Video.del at 0x000001D7531E9700>
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 325, in del
2022-07-29 14:25:31.044 Uncaught app exception
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 323, in _read_from_cache
return _read_from_mem_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 241, in _read_from_mem_cache
raise CacheKeyNotFoundError("Key not found in mem cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in mem cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 278, in _read_from_disk_cache
with file_util.streamlit_read(path, binary=True) as input:
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\file_util.py", line 75, in streamlit_read
if os.stat(filename).st_size == 0:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\richadmin.DESKTOP-IESK5E9\.streamlit\cache\9fe8cd06b471d754ba1d08787005bece-9aec85817c2934264930d2b8e9d2decc.pickle'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 539, in get_or_create_cached_value
return_value = _read_from_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 333, in _read_from_cache
value = _read_from_disk_cache(key)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 287, in _read_from_disk_cache
raise CacheKeyNotFoundError("Key not found in disk cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in disk cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "youtube.py", line 73, in
timeline = _generate_timeline(video_path)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 575, in wrapped_func
return get_or_create_cached_value()
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 555, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "youtube.py", line 56, in _generate_timeline
timeline = generate_timeline(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit_terran_timeline\timeline\generator.py", line 101, in generate_timeline
video = open_video(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 530, in open_video
return Video(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 243, in init
probe = ffmpeg_probe(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 58, in ffmpeg_probe
proc = subprocess.Popen(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception ignored in: <function Video.del at 0x000001D7531E9700>
Traceback (most recent call last):
if not self._closed: File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 325, in del

if not self._closed:

AttributeError: 'Video' object has no attribute '_closed'
AttributeError: 'Video' object has no attribute '_closed'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant