varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.21k stars 146 forks source link

setup.py crashes with UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 40: invalid continuation byte #630

Open jainal09 opened 1 year ago

jainal09 commented 1 year ago

Version of Variety 09bec1d master commit (latest at the time of filing bug)

Describe the bug Followed all the installation steps and got the below error

Traceback (most recent call last):

  File "/home/jainal09/variety/setup.py", line 54, in <module>

    DistUtilsExtra.auto.setup(

  File "/home/jainal09/variety/venv/lib/python3.10/site-packages/python_distutils_extra-2.39-py3.10.egg/DistUtilsExtra/auto.py", line 95, in setup

    __manpages(attrs, src)

  File "/home/jainal09/variety/venv/lib/python3.10/site-packages/python_distutils_extra-2.39-py3.10.egg/DistUtilsExtra/auto.py", line 325, in __manpages

    for line in fd:

  File "/usr/lib/python3.10/codecs.py", line 322, in decode

    (result, consumed) = self._buffer_decode(data, self.errors, final)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 40: invalid continuation byte

Context Every time I run python3 setup.py install

To Reproduce

Clone the git repository: git clone https://github.com/varietywalls/variety.git && cd variety

Run python3 setup.py install. By default, this will install Variety into /usr/local; for a local installation, use python3 setup.py install --prefix $HOME/.local.

Run variety from the command line or its desktop menu entry.

Desktop environment and version Gnome.

OS name and version Ubuntu 22.04.2 LTS \n \l

PRETTY_NAME="Ubuntu 22.04.2 LTS"

NAME="Ubuntu"

VERSION_ID="22.04"

VERSION="22.04.2 LTS (Jammy Jellyfish)"

VERSION_CODENAME=jammy

ID=ubuntu

ID_LIKE=debian

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

UBUNTU_CODENAME=jammy

jainal09 commented 1 year ago

Can confirm this issue is happening on variety-0.8.10 too.