Flamenco Addon: Python error when uploading file to Flamenco #102192

Closed
opened 2022-10-31 21:04:57 +01:00 by Yann Doersam · 5 comments

System Information
Operating system: Kubuntu
Graphics card: not relevant

Flamenco Version
Broken: Flamenco-3.1-linux

Short description of error
Python error when uploading file to Flamenco

Exact steps for others to reproduce the error
Create a file, so not save it, try to upload it to Flamenco.
This will lead to following error in Blender Log:


Python: Traceback (most recent call last):
File "/home/yannd/.config/blender/3.3/scripts/addons/flamenco/operators.py", line 164, in invoke
filepath = self._save_blendfile(context)
File "/home/yannd/.config/blender/3.3/scripts/addons/flamenco/operators.py", line 269, in _save_blendfile
filepath = Path(context.blend_data.filepath).with_suffix(".flamenco.blend")
File "/media/flamenco/software/blender-3.3.1/3.3/python/lib/python3.10/pathlib.py", line 780, in with_suffix
raise ValueError("%r has an empty name" % (self,))
ValueError: PosixPath('.') has an empty name

Error is caused, because Flamenco Addon checks the current saved location. If file is not saved, there is no value that the Addon could read.
The Addon should save the file automatically or display a correct user message, e.g. "Please save the file, before uploading it to Flamenco".

**System Information** Operating system: Kubuntu Graphics card: not relevant **Flamenco Version** Broken: Flamenco-3.1-linux **Short description of error** Python error when uploading file to Flamenco **Exact steps for others to reproduce the error** Create a file, so *not save it*, try to upload it to Flamenco. This will lead to following error in Blender Log: ``` Python: Traceback (most recent call last): File "/home/yannd/.config/blender/3.3/scripts/addons/flamenco/operators.py", line 164, in invoke filepath = self._save_blendfile(context) File "/home/yannd/.config/blender/3.3/scripts/addons/flamenco/operators.py", line 269, in _save_blendfile filepath = Path(context.blend_data.filepath).with_suffix(".flamenco.blend") File "/media/flamenco/software/blender-3.3.1/3.3/python/lib/python3.10/pathlib.py", line 780, in with_suffix raise ValueError("%r has an empty name" % (self,)) ValueError: PosixPath('.') has an empty name ``` Error is caused, because Flamenco Addon checks the current saved location. If file is not saved, there is no value that the Addon could read. The Addon should save the file automatically or display a correct user message, e.g. "Please save the file, before uploading it to Flamenco".
Author

Added subscriber: @YeyAnotherNiceName

Added subscriber: @YeyAnotherNiceName

This issue was referenced by 1cef0d48df

This issue was referenced by 1cef0d48df79965678e5bcfeb8f61b2e29d582cf

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2022-11-11 16:57:52 +01:00

This was resolved by 1cef0d48df, thanks again for the patch!

This was resolved by 1cef0d48df, thanks again for the patch!
Sign in to join this conversation.
No Milestone
No Assignees
3 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/flamenco#102192
No description provided.