Программы на Python
Anonymous
«Ошибка ОС: файл Python «/content/4.1.1/setgpu.py» не может быть открыт: такого файла или каталога нет» [закрыто]
Сообщение
Anonymous » 15 ноя 2024, 11:12
В строке:
Код: Выделить всё
if download_type != 'gdrive_direct':
output_path = '/content/output/' + output_name
else:
output_path = '/drive/My Drive/' + drive_output_path + output_name
Код: Выделить всё
%cd /content/$blender_version
if animation:
if start_frame == end_frame:
!./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -a -- --cycles-device "{renderer}"
else:
!./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -s $start_frame -e $end_frame -a -- --cycles-device "{renderer}"
else:
!./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -f $start_frame -- --cycles-device "{renderer}"
error:/content
/content/4.1.1
Blender 4.1.1 (hash e1743a0317bc built 2024-04-15 23:47:45)
Read blend: "/content/render/snow.blend"
OSError: Python file "/content/4.1.1/setgpu.py" could not be opened: No such file or directory
Я пробовал много способов, но мне не удалось решить проблему.
Подробнее здесь:
https://stackoverflow.com/questions/791 ... no-such-fi
1731658361
Anonymous
В строке: [code]if download_type != 'gdrive_direct': output_path = '/content/output/' + output_name else: output_path = '/drive/My Drive/' + drive_output_path + output_name [/code] [code]%cd /content/$blender_version if animation: if start_frame == end_frame: !./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -a -- --cycles-device "{renderer}" else: !./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -s $start_frame -e $end_frame -a -- --cycles-device "{renderer}" else: !./$blender_version/blender -b '/content/render/{blend_file_path}' -P setgpu.py -E CYCLES -o '{output_path}' -noaudio -f $start_frame -- --cycles-device "{renderer}" error:/content /content/4.1.1 Blender 4.1.1 (hash e1743a0317bc built 2024-04-15 23:47:45) Read blend: "/content/render/snow.blend" OSError: Python file "/content/4.1.1/setgpu.py" could not be opened: No such file or directory [/code] Я пробовал много способов, но мне не удалось решить проблему. Подробнее здесь: [url]https://stackoverflow.com/questions/79167528/oserror-python-file-content-4-1-1-setgpu-py-could-not-be-opened-no-such-fi[/url]