On Wednesday, 5 April 2017 21.08.09 WEST Enrico Forestieri wrote: > Most probably you have some non-ascii characters in a \DeclareLaTeXClass > line in some of your layout files. Now those files are explicitly read as > utf-8 encoded. If this is so, the attached patch should help.
It should be something like that since I do not get any error when running with python 2.7.13. A conditional change based on what Enrico showed (open for python 2 and io.open) will make the code work for python 2 but the same problem then remains for python 3... What needs to be done is to see if all the operations done on those files can be done as bytes (binary files) and not as strings (text files). For some of those cases the change should be easy. -- José Abílio