KeyError: local path windows

Hello All,

I’m trying to run my publish through Shotgrid but I’m getting the following error in publish.py file

p, li { white-space: pre-wrap; }

sp_script_path = tk.shotgun.find_one(‘PublishedFile’,

KeyError: ‘local_path_windows’

Does anyone know how to fix this? It’s happening in my publish.py

I think you’re post has broken formatting and missing info.
Did you get the “path” attribute first before getting “local_path_windows”
Please repost your code.

Hi Patrick,

Thanks for the response. Here is the issue.

Traceback (most recent call last):
File “C:\Program Files\Shotgun\Resources\Desktop\Python\bundle_cache\app_store\tk-multi-publish2\v2.6.4\python\tk_multi_publish2\api\plugins\publish_plugin_instance.py”, line 308, in _handle_plugin_error
yield
File “C:\Program Files\Shotgun\Resources\Desktop\Python\bundle_cache\app_store\tk-multi-publish2\v2.6.4\python\tk_multi_publish2\api\plugins\publish_plugin_instance.py”, line 204, in run_publish
self._hook_instance.publish(settings, item)
File “C:\Users\sreyeeshgarimella\Documents\LAM_pipeline_config_1.0.6\hooks\tk-multi-publish2\standalone\publish_file.py”, line 164, in publish
sp_script_path = tk.shotgun.find_one(‘PublishedFile’,
KeyError: ‘local_path_windows’

The publisher tool seems to be cutting that off. I’ve checked the code and it seems to be fine . I have a process that scene preps after effects files automatically. The validate goes through fine. It can’t seem to publish and fails on the publish.

I’d need to see the full lines around this snippet.
What variable are you trying to get local_path_windows from, and can you log the value of that variable before the error happens so we can see what the publishedFile dict looks like?