Closed
Description
Here is another scene caching error: running the code
from manim import *
class TestZoom1(ZoomedScene):
CONFIG = {
"zoomed_camera_frame_starting_position": [0, 0, 0],
"zoomed_display_corner": [0, 0, 0],
"zoomed_display_height": config['frame_height'],
"zoomed_display_width": config['frame_width'],
"zoom_factor": 0.1,
}
def construct(self):
self.activate_zooming(animate=True)
d = Dot()
self.add(d)
(one of our examples from the documentation) twice raises the following error:
[behackl@atreus playground]$ manim test.py TestZoom1 -m
[09/23/20 14:38:04] INFO Animation 0 : Partial movie file written in {'/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/2818502609_1974117047_3316235269.mp4'} scene_file_writer.py:463
[09/23/20 14:38:05] INFO Animation 1 : Partial movie file written in {'/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/1160423895_881011468_1267139589.mp4'} scene_file_writer.py:463
INFO scene_file_writer.py:635
File ready at /home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/TestZoom1.mp4
INFO Rendered TestZoom1 scene.py:129
Played 2 animations
[behackl@atreus playground]$ manim test.py TestZoom1 -m
[09/23/20 14:38:07] INFO Animation 0 : Using cached data (hash : 2818502609_1974117047_3316235269) scene.py:823
[09/23/20 14:38:08] INFO Animation 1 : Partial movie file written in {'/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/2818502609_1974117047_3316235269.mp4'} scene_file_writer.py:463
[concat @ 0x564241a313c0] Impossible to open 'file:/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/2796914319_881011468_1267139589.mp4'
/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/partial_movie_file_list.txt: No such file or directory
INFO scene_file_writer.py:635
File ready at /home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/TestZoom1.mp4
Traceback (most recent call last):
File "/home/behackl/Dokumente/git/etc/manim/manim/__main__.py", line 170, in main
scene = SceneClass()
File "/home/behackl/Dokumente/git/etc/manim/manim/scene/scene.py", line 93, in __init__
self.file_writer.finish()
File "/home/behackl/Dokumente/git/etc/manim/manim/scene/scene_file_writer.py", line 387, in finish
self.combine_movie_files()
File "/home/behackl/Dokumente/git/etc/manim/manim/scene/scene_file_writer.py", line 592, in combine_movie_files
modify_atime(file_path)
File "/home/behackl/Dokumente/git/etc/manim/manim/utils/file_ops.py", line 53, in modify_atime
os.utime(file_path, times=(time.time(), os.path.getmtime(file_path)))
File "/usr/lib/python3.8/genericpath.py", line 55, in getmtime
return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: '/home/behackl/Dokumente/git/etc/manim/playground/media/videos/test/720p30/partial_movie_files/TestZoom1/2796914319_881011468_1267139589.mp4'
(I've noticed this from running make html && make clean && make html
from docs
.)