I am going through the Shotgrid Pipeline Tutorial. It has all been going well until I got to the part where I am creating a custom maya shader publish plugin. I copied and pasted the provided code but when I run the publish from Maya I get a Validation error. In python the error is “NameError: name ‘unicode’ is not defined.” Line 423 of publish_shader_network.py. The code was copy and pasted from the tutorial code (via git) and a diff shows no difference between my file and the one from git.
When I change unicode in the code to str I get an error ‘a bytes-like object is required, not str’. In other toolkit code I see ‘str’ being used in this case (the notes in the code state that unicode is for py2 and str is used for py3 but it still doesn’t work.
Anyone with stronger python skill than mine know how to make this work. I am guessing that that tutorial was written for py2.
Thanks for any thoughts on this.