You are not logged in.

#1 2025-09-30 22:27:36

gio
Member
Registered: 2025-09-30
Posts: 2

[SOLVED] Can't install python-screeninfo giving UnicodeDecodeError

I was trying to install the needed dependecies for the theme https://github.com/mylinuxforwork/. While I was doing that, I encountered an error in python-screeninfo and waypaper-2.7-1 (that is using python-screeninfo). Here are the logs:

AUR Explicit (1): python-screeninfo-0.8.1-2
...
==> Starting build()...

Getting build dependencies for wheel...

Building wheel...
The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.
Traceback (most recent call last):
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 26: invalid continuation byte

ERROR: Backend subprocess exited when trying to invoke build_wheel
==> ERROR: An error occurred in build().
The operation will be aborted...
-> error making: python-screeninfo - exit status 4
-> Installation of the following packages failed. Manual intervention is required:
python-screeninfo - exit status


both the packages are giving me the same errors: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 26: invalid continuation byte
These are my locales settings

locale

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: it
   X11 Layout: (unset)

and inside /etc/locale.conf I've

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8



python version -> 3.13.7
Thank you in advance for your help

Last edited by gio (2025-10-02 12:00:25)

Offline

#2 2025-10-02 11:59:53

gio
Member
Registered: 2025-09-30
Posts: 2

Re: [SOLVED] Can't install python-screeninfo giving UnicodeDecodeError

I had a non UTF-8 character in my email configurated for git. Python was trying to build packages using poetry that was reading my git's email from ~/.gitconfig. I changed the non UTF-8 (typo) character and everything worked correctly.

Offline

Board footer

Powered by FluxBB