On 10/01/2017 04:58 PM, Uwe Stöhr wrote:
> Dear colleagues,
>
> after a long time I had few hours to work on LyX. I used it to test if
> our new release will work with Python 3.6.
>
> It works so far, except of the following issue. This problem is new,
> at least the last time I tested in June I did not encounter it:
>
>   Generating Additional.lyx
>   Traceback (most recent call last):
>     File "D:/LyXGit/2.3.x/development/cmake/doc/ReplaceValues.py",
> line 54, in  <module>      prog = createProg()
>     File "D:/LyXGit/2.3.x/development/cmake/doc/ReplaceValues.py",
> line 23, in  createProg      return re.compile(pattern)
>     File "C:\Program Files (x86)\Python36-32\lib\re.py", line 233, in
> compile      return _compile(pattern, flags)
>     File "C:\Program Files (x86)\Python36-32\lib\re.py", line 301, in
> _compile      p = sre_compile.compile(pattern, flags)
>     File "C:\Program Files (x86)\Python36-32\lib\sre_compile.py", line
> 562, in  compile      p = sre_parse.parse(p, flags)
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 855, in pa  rse      p = _parse_sub(source, pattern, flags &
> SRE_FLAG_VERBOSE, 0)
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 416, in _p  arse_sub      not nested and not items))
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 765, in _p  arse      p = _parse_sub(source, state, sub_verbose,
> nested + 1)
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 416, in _p  arse_sub      not nested and not items))
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 502, in _p  arse
>       code = _escape(source, this, state)
>     File "C:\Program Files (x86)\Python36-32\lib\sre_parse.py", line
> 401, in _e  scape
>       raise source.error("bad escape %s" % escape, len(escape))
>   sre_constants.error: bad escape \o at position 43
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5):
> error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
> [D:\LyXGit\2.3.x\compile-2015\doc\doc.vcxproj]
>
> Could any pythionists please have a look?

The error being reported is that there is an escape sequence "\o", which
is presumably produced by this code in CMakeList.txt:

  add_custom_command(
    OUTPUT "${_created_doc}"
    COMMAND ${LYX_PYTHON_EXECUTABLE}
"${TOP_CMAKE_PATH}/doc/ReplaceValues.py"
      "LYX_USERDIR_VER=${LYX_USERDIR_VER}"
      "LYX_DIR_VER=${LYX_DIR_VER}"
      "\\origin\ unavailable=\\origin\ /systemlyxdir/doc/${_rel_dir_part}"
      "${TOP_SRC_DIR}/lib/doc/${_rel_doc}" > "${_created_doc}"
    DEPENDS "${TOP_SRC_DIR}/lib/doc/${_rel_doc}"
"${TOP_CMAKE_PATH}/doc/ReplaceValues.py"
    )

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.

Richard

Reply via email to