In a Deadline submission window, if I use a character above 128 and hit the close button, I get the error:
Traceback (most recent call last):
File “…\Libraries\ThinkboxUI\UI\Controls\Scripting\ScriptDialog.py”, line 128, in SaveSettings
File “…\Libraries\ThinkboxUI\UI\Controls\Scripting\TextControl.py”, line 26, in getTheValue
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xf6’ in position 0: ordinal not in range(128)
I just want to be able to save things like the copyright character, or just anything up to 255 in the ASCII table.
Can I ask you to do me a favor and let us know a few things. First, what version of Deadline are you using? Second, what application are you trying to submit to? Is this happening when you his close after submission, or even at the submission window you enter things into? Lastly, is this the submitter in the monitor, or the integrated one? Thanks!
In response to your questions:
I’m using Deadline 6 (6.0.0.51561).
I’ve made a copy of the Nuke Submission script and made modifications to it, but you can make it happen with the unmodified version of the Nuke Submission script in the Deadline Monitor.
I get the Unicode error when I close the window whether I submit the job or not, but only if I use characters with ASCII codes above 128. It happens in this callback:
def CloseDialog():
global scriptDialog
global settings
scriptDialog.SaveSettings( GetSettingsFilename(), settings )
scriptDialog.CloseDialog()
While I do not have a fix for you now, I am told by our devs that this is fixed in 6.1, so if you want to get onto the beta, you can just email beta@thinkboxsoftware.com for access. Hope that helps.