One of our scripts ensures the health of the deadline.ini file. We realized its failing with deadline 10 (unable to parse it):
MissingSectionHeaderError: File contains no section headers.
file: C:\ProgramData\Thinkbox\Deadline10\deadline.ini, line: 1
'\xef\xbb\xbf[Deadline]\n'
Seems that the deadline.ini is encoded utf8. Is that an intended change?
We can probably tweak the script to handle utf8, just wondering if this is normal… On linux it seems to handle slightly differently:
Trying to read via utf8:
>>> oConfig.readfp(codecs.open(sDeadlineConfigFile,'r','utf8'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/ConfigParser.py", line 315, in readfp
self._read(fp, filename)
File "/usr/lib64/python2.6/ConfigParser.py", line 503, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /var/lib/Thinkbox/Deadline10/deadline.ini, line: 1
u'\ufeff[Deadline]\n'
via default:
>>> oConfig.read(sDeadlineConfigFile)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/ConfigParser.py", line 296, in read
self._read(fp, filename)
File "/usr/lib64/python2.6/ConfigParser.py", line 503, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /var/lib/Thinkbox/Deadline10/deadline.ini, line: 1
'\xef\xbb\xbf[Deadline]\n'
My preference would be no special encoding for ini type files