On 10/02/2017 07:48 PM, Uwe Stöhr wrote:
> El 02.10.2017 a las 21:24, Richard Heck escribió:
>
>> The error being reported is that there is an escape sequence "\o", which
>> is presumably produced by this code in CMakeList.txt:...
>>
>> Is the \\o there leading to a \o in argument to the script? Uwe, you
>> could try removing the double backslash in favor of a single one.
>
> Thanks for having a look Richard.
>
> Doing this leads to this CMake error:
>
>   CMake Error at development/cmake/doc/CMakeLists.txt:31
> (add_custom_command):
>     Syntax error in cmake code at
>       D:/LyXGit/Master/development/cmake/doc/CMakeLists.txt:36
>     when parsing string
>       \origin\ unavailable=\origin\ /systemlyxdir/doc/${_rel_dir_part}
>     Invalid escape sequence \o
>
> It seems one has to escape differently in Python 3.6:
> https://bugs.python.org/issue27471
>
> Replacing \\o by \\\\o works but leads to a new error:
>
> Traceback (most recent call last):
> File "D:/LyXGit/Master/development/cmake/doc/ReplaceValues.py", line
> 55, in <module> SubstituteDataInFile(args[0])
> File "D:/LyXGit/Master/development/cmake/doc/ReplaceValues.py", line
> 36, in SubstituteDataInFile for line in open(InFile):
> File "C:\Program Files (x86)\Python36-32\lib\encodings\cp1252.py",
> line 23, in decode return
> codecs.charmap_decode(input,self.errors,decoding_table)[0]
> UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position
> 2533: character maps to <undefined>

This seems a completely different issue. We're encountering an error
when reading whatever the input file is.

Is there some reason we can't use Python 3.5? You bundle this with the
application, right?

Richard

Reply via email to