Trying to save a file
Trying to save a file in media/
where can i save files ?
PermissionError: [Errno 13] Permission denied:
'media/images/4b690efb-a411-478e-bb4e-ce3ce0d0964a'
ERROR:root:Manim error: Command '['manim', '-ql', '-o', '/app/media/4b690efb-a411-478e-bb4e-ce3ce0d0964a.mp4', '/app/4b690efb-a411-478e-bb4e-ce3ce0d0964a.py']' returned non-zero exit status 1.
python:
try:
output_path = f"/app/media/{screen_name}.mp4"
subprocess.run(["manim", "-ql", "-o", output_path, f"/app/{screen_name}.py"], check=True)
10 Replies
Project ID:
4b690efb-a411-478e-bb4e-ce3ce0d0964a,4b690efb-a411-478e-bb4e-ce3ce0d0964a,4b690efb-a411-478e-bb4e-ce3ce0d0964a
are you using a volume?
no dont think so, i dont need to, all files are ephemeral
heres my dockerfile i tried to 777 the app dir but cant make folders for some reason
are those uuid looking filenames normal?
yeah they are fine, i guess i am running
subprocess.run
which might make the command not have permissionsdoes a media folder even exist?
yes
just checked
try
USER 0
instead of that chmod thing?that worked for this temp fix thanks
awesome!