Installation fails on older machines probably due to encoding issues
When installing on older machines I get the error attached with this message.
>> python3 setup.py install
running install /usr/local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning, running build
running build_py
creating build
creating build/lib
creating build/lib/lisaconstants
copying lisaconstants/__init__.py -> build/lib/lisaconstants
copying lisaconstants/cheader.py -> build/lib/lisaconstants
copying lisaconstants/constants.py -> build/lib/lisaconstants
copying lisaconstants/meta.py -> build/lib/lisaconstants
running install_lib
creating /usr/local/lib/python3.6/site-packages/lisaconstants
copying build/lib/lisaconstants/__init__.py -> /usr/local/lib/python3.6/site-packages/ lisaconstants
copying build/lib/lisaconstants/cheader.py -> /usr/local/lib/python3.6/site-packages/ lisaconstants
copying build/lib/lisaconstants/constants.py -> /usr/local/lib/python3.6/site-packages/ lisaconstants
copying build/lib/lisaconstants/meta.py -> /usr/local/lib/python3.6/site-packages/ lisaconstants
byte-compiling /usr/local/lib/python3.6/site-packages/lisaconstants/__init__.py to __init__.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/lisaconstants/cheader.py to cheader.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/lisaconstants/constants.py to constants.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/lisaconstants/meta.py to meta.cpython-36.pyc
running install_egg_info
running egg_info
creating lisaconstants.egg-info
writing lisaconstants.egg-info/PKG-INFO
writing dependency_links to lisaconstants.egg-info/dependency_links.txt
writing top-level names to lisaconstants.egg-info/top_level.txt
writing manifest file 'lisaconstants.egg-info/SOURCES.txt'
writing manifest file 'lisaconstants.egg-info/SOURCES.txt'
Copying lisaconstants.egg-info to /usr/local/lib/python3.6/site-packages/ lisaconstants-1.1.3-py3.6.egg-info
running install_scripts
creating /usr/local/include/python3.6m
creating /usr/local/include/python3.6m/lisaconstants
installing C++ header file -> /usr/local/include/python3.6m/lisaconstants/ lisaconstants.hpp
Traceback (most recent call last):
File "setup.py", line 49, in <module>
cmdclass={'install': InstallHeaders}
File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in
setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup dist.run_commands()
File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run()
File "setup.py", line 23, in run generator.write(out, 'c++')
File "/codes/constants/lisaconstants/cheader.py", line 50, in write file.write(content)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 6413: ordinal not in range(128)
Edited by Jean-Baptiste Bayle