From the error and code it seems the resources folder and file in it are missing. First question that comes to mind is should it come this far if configuration was installed correctly. I don’t know. Now, what should one do to deal with this error. Do i need to run a tank update command.?
ERROR :
File “Z:\Shared drives\Shotgun test\basic_configuration\config\install\core\python\tank\util\shotgun\publish_creation.py”, line 353, in register_publish
raise ShotgunPublishError(error_message=“%s” % e, entity=entity)
tank.util.errors.ShotgunPublishError: Unable to complete publishing because of the following error: Path must be a valid file, got ‘Z:\Shared drives\Shotgun test\basic_configuration\config\install\core\python\tank\util\resources\no_preview.jpg’, although PublishedFile seq001_shot_001_CMP_v004.nk (id: 531) was created.
CODE:
else: # no thumbnail found - instead use the default one this_folder = os.path.abspath(os.path.dirname(__file__)) no_thumb = os.path.join( this_folder, os.path.pardir, "resources", "no_preview.jpg" ) tk.shotgun.upload_thumbnail( published_file_entity_type, entity.get("id"), no_thumb )