[Blender_Kitsu] Error when trying to push render of a shot #44

Closed
opened 2023-05-13 18:10:04 +02:00 by Konstantin Dmitriev (Morevna Project) · 5 comments

I've got the following error when trying to push Rendering of a shot to Kitsu:

Traceback (most recent call last):
  File "/home/morevna/.config/blender/3.4/scripts/addons/blender_kitsu/sqe/ops.py", line 1356, in execute
    output_path = self._gen_output_path(strip, task_type)
  File "/home/morevna/.cache/0install.net/implementations/sha256new_O5OTQ4GTTQM6ITC7XSZFG7WA6Q6LRPCS33FYNUWHC3QJNTCAA5YA/3.4/scripts/modules/bpy_types.py", line 816, in __getattribute__
    return super().__getattribute__(attr)
AttributeError: 'KITSU_OT_sqe_push_render' object has no attribute '_gen_output_path'
Error: Python: Traceback (most recent call last):
  File "/home/morevna/.config/blender/3.4/scripts/addons/blender_kitsu/sqe/ops.py", line 1356, in execute
    output_path = self._gen_output_path(strip, task_type)
  File "/home/morevna/.cache/0install.net/implementations/sha256new_O5OTQ4GTTQM6ITC7XSZFG7WA6Q6LRPCS33FYNUWHC3QJNTCAA5YA/3.4/scripts/modules/bpy_types.py", line 816, in __getattribute__
    return super().__getattribute__(attr)
AttributeError: 'KITSU_OT_sqe_push_render' object has no attribute '_gen_output_path'

Blender version: 3.4.1

Here is a video which demonstrates the problem - https://youtu.be/fckYxczUmNo

P.S. I am using kitsu plugin from latest commit - 5ba50e17da

I've got the following error when trying to push Rendering of a shot to Kitsu: ``` Traceback (most recent call last): File "/home/morevna/.config/blender/3.4/scripts/addons/blender_kitsu/sqe/ops.py", line 1356, in execute output_path = self._gen_output_path(strip, task_type) File "/home/morevna/.cache/0install.net/implementations/sha256new_O5OTQ4GTTQM6ITC7XSZFG7WA6Q6LRPCS33FYNUWHC3QJNTCAA5YA/3.4/scripts/modules/bpy_types.py", line 816, in __getattribute__ return super().__getattribute__(attr) AttributeError: 'KITSU_OT_sqe_push_render' object has no attribute '_gen_output_path' Error: Python: Traceback (most recent call last): File "/home/morevna/.config/blender/3.4/scripts/addons/blender_kitsu/sqe/ops.py", line 1356, in execute output_path = self._gen_output_path(strip, task_type) File "/home/morevna/.cache/0install.net/implementations/sha256new_O5OTQ4GTTQM6ITC7XSZFG7WA6Q6LRPCS33FYNUWHC3QJNTCAA5YA/3.4/scripts/modules/bpy_types.py", line 816, in __getattribute__ return super().__getattribute__(attr) AttributeError: 'KITSU_OT_sqe_push_render' object has no attribute '_gen_output_path' ``` Blender version: 3.4.1 Here is a video which demonstrates the problem - https://youtu.be/fckYxczUmNo P.S. I am using kitsu plugin from latest commit - 5ba50e17da163adb540c97169ae555428611732e

Tested with Blender 3.5.1 - same error.

Tested with Blender 3.5.1 - same error.

This bug introduced in studio/blender-studio-pipeline#7/

See here - https://projects.blender.org/studio/blender-studio-pipeline/pulls/7/files#issuecomment-940181

Adding function

    def _gen_output_path(self, strip: bpy.types.Sequence, task_type: TaskType) -> Path:
        addon_prefs = prefs.addon_prefs_get(bpy.context)
        folder_name = addon_prefs.sqe_render_dir
        file_name = f"{strip.kitsu.shot_id}_{strip.kitsu.shot_name}.{(task_type.name).lower()}.mp4"
        return Path(folder_name).absolute().joinpath(file_name)

to blender_kitsu/sqe/ops.py solves the problem.

This bug introduced in https://projects.blender.org/studio/blender-studio-pipeline/pulls/7/ See here - https://projects.blender.org/studio/blender-studio-pipeline/pulls/7/files#issuecomment-940181 Adding function ``` def _gen_output_path(self, strip: bpy.types.Sequence, task_type: TaskType) -> Path: addon_prefs = prefs.addon_prefs_get(bpy.context) folder_name = addon_prefs.sqe_render_dir file_name = f"{strip.kitsu.shot_id}_{strip.kitsu.shot_name}.{(task_type.name).lower()}.mp4" return Path(folder_name).absolute().joinpath(file_name) ``` to `blender_kitsu/sqe/ops.py` solves the problem.
Nick Alberelli added the
Kind
Bug
label 2023-05-14 19:55:20 +02:00
Member

Hey @zelgadis thank you for the report I have opened up a PR studio/blender-studio-pipeline#45 to resolve this error. I will merge it later today.

Thank you/your studio's users for the report.

Hey @zelgadis thank you for the report I have opened up a PR https://projects.blender.org/studio/blender-studio-pipeline/pulls/45 to resolve this error. I will merge it later today. Thank you/your studio's users for the report.
Member

@zelgadis I have closed the issue with this PR studio/blender-studio-pipeline#45 please re-open this issue if the problem persists after updating to commit 148ac56455

@zelgadis I have closed the issue with this PR https://projects.blender.org/studio/blender-studio-pipeline/pulls/45 please re-open this issue if the problem persists after updating to commit https://projects.blender.org/studio/blender-studio-pipeline/commit/148ac56455ddcb7ef830a9b4b5a39827811f3ee4

Thank you!
Our studio has adopted Kitsu recently and we are investigating features of this plugin to adapt for our workflow. :)

Thank you! Our studio has adopted Kitsu recently and we are investigating features of this plugin to adapt for our workflow. :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#44
No description provided.