-
-
Notifications
You must be signed in to change notification settings - Fork 409
Description
When trying to comiple the most recent development version, the building terminated because of the following errors, it seems the manully generated code has some encode problems on Windows. While, this does not happen on a Linux platform.
[INFO] writing 'ctdomain.h'
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "xxxx\cantera\interfaces\sourcegen\src\sourcegen_main.py", line 9, in
main()
~~~~^^
File "xxxx\cantera\interfaces\sourcegen\src\sourcegen\api.py", line 108, in main
generate_source(lang, output, verbose=verbose, root=root)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "xxxx\cantera\interfaces\sourcegen\src\sourcegen\api.py", line 67, in generate_source
scaffolder.generate_source(files)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "xxxx\cantera\interfaces\sourcegen\src\sourcegen\clib\generator.py", line 481, in generate_source
self._write_header(headers)
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "xxxx\cantera\interfaces\sourcegen\src\sourcegen\clib\generator.py", line 431, in _write_header
out.write_text(output + "\n")
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "xxx\Lib\pathlib_local.py", line 555, in write_text
return PathBase.write_text(self, data, encoding, errors, newline)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "xxx\Lib\pathlib_abc.py", line 652, in write_text
return f.write(data)
~~~~~~~^^^^^^
UnicodeEncodeError: 'gbk' codec can't encode character '\xb2' in position 9772: illegal multibyte sequence
scons: *** [interfaces\clib\include\cantera_clib\ctconnector.h] Error 1
scons: building terminated because of errors.