[moin-user] more general problem with utf-8 codec?
Paul Boddie
paul at boddie.org.uk
Wed Jan 22 06:00:56 EST 2020
On Wednesday 22. January 2020 08.07.48 mariusz sapinski wrote:
> Hi,
>
> the problem with codecs for moin continue and I don't find a solution.
> System: Ubuntu 19.10, moin 1.9.9
> Attempt to upgrade moin:
> Below is the output of the upgrade command.
>
> Best regards, Mariusz
>
> Output:
> sudo pip install moin --upgrade
I am hoping that you can upgrade Moin in this way, not having looked at Moin
with pip for a long time, if ever.
> [sudo] password for sapinski:
> Collecting moin
> Using cached
> https://files.pythonhosted.org/packages/db/c4/58872c31f3c242c2cec3a35f493628
> 182979b664645858dafba4071b9cb5/moin-1.9.10.tar.gz Complete output from
> command python setup.py egg_info:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/tmp/pip-install-ezJOdL/moin/setup.py", line 355, in <module>
> setup(**setup_args)
> File "/usr/lib/python2.7/distutils/core.py", line 124, in setup
> dist.parse_config_files()
> File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 697,
> in parse_config_files
> self._parse_config_files(filenames=filenames)
> File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 594,
> in _parse_config_files
> (parser.read_file if six.PY3 else parser.readfp)(reader)
> File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
> self._read(fp, filename)
> File "/usr/lib/python2.7/ConfigParser.py", line 479, in _read
> line = fp.readline()
> File "/usr/lib/python2.7/codecs.py", line 314, in decode
> (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 57:
> invalid start byte
Do you know what it is trying to read here? Maybe there is a list of
configuration files in the setup.py script or setup.cfg.
It looks like ConfigParser has been given a file object by distutils that has
been opened by something like codecs.open. That isn't a problem - it is how I
open files in Python 2 and read Unicode out of them - but it seems as if
something expects UTF-8 and the file contains something else.
Paul
More information about the moin-user
mailing list