Newer versions of Python3 have a problem with utf-8 encoding during installation
Issue #865
resolved
In cmake/scripts/generate-swig-interface.py
and site-packages/dolfin_utils/documentation/extractdocumentation.py
files need to opened correctly for utf-8 reading. Not clear whether to use 'rb'
mode, or io.open()
.
Comments (10)
-
-
reporter I encountered with Python3.6 in CentOS
-
reporter So maybe OS related. @johannr also had same in debian.
-
Yes, but that was with Python 3.5.3.
-
I think the version is a red herring. Works fine for me under macOS with Python 3.6.
-
It can be reproduced in
debian:unstable
Docker container with the following commands:apt-get update && \ apt-get -y install git python3-ply && \ git clone https://bitbucket.org/fenics-project/dolfin.git && \ cd dolfin && \ python3 cmake/scripts/generate-swig-interface.py
-
Use
io.open(name, encoding="utf8")
, that's what we've done everywhere else. -
I have made a fix in pull request #362, but there is now a problem with Python 2.
-
Fixed in a1529b0.
-
- changed status to resolved
- Log in to comment
What qualifies as 'newer'?