HGL
like-gold

Logging into Epic results in a locale error

Hi, got a fresh Arch Linux install and while configuring it I did a typo on the locale.conf file, which resulted in a broken locale systemwide. Since then though I fixed it, all apps are working fine except for Heroic. Here's the error:
An error has occurred! Try to Logout and Login on your Epic account.
Traceback (most recent call last):
File "legendary/cli.py", line 3286, in <module>
File "legendary/cli.py", line 3167, in main
File "legendary/cli.py", line 44, in __init__
File "legendary/core.py", line 80, in __init__
File "locale.py", line 591, in getdefaultlocale
File "locale.py", line 511, in _parse_localename
ValueError: unknown locale: en_GB-UTF-8
[PYI-17546:ERROR] Failed to execute script 'cli' due to unhandled exception!
An error has occurred! Try to Logout and Login on your Epic account.
Traceback (most recent call last):
File "legendary/cli.py", line 3286, in <module>
File "legendary/cli.py", line 3167, in main
File "legendary/cli.py", line 44, in __init__
File "legendary/core.py", line 80, in __init__
File "locale.py", line 591, in getdefaultlocale
File "locale.py", line 511, in _parse_localename
ValueError: unknown locale: en_GB-UTF-8
[PYI-17546:ERROR] Failed to execute script 'cli' due to unhandled exception!
This makes the launcher unusable as it blocks GOG games as well I tried reinstalling it, deleting all cache and configuration files but still nothing. Does anyone know how to fix this? Thanks in advance for the help!
10 Replies
CommandMC
CommandMC3mo ago
What does locale say now? If you're using the Flatpak version of Heroic, also check flatpak run --command=locale com.heroicgameslauncher.hgl
like-gold
like-goldOP3mo ago
It's the native package, both binary and system wide on arch linux. Now the locale says the correct "en_GB.UTF-8"
CommandMC
CommandMC3mo ago
Looking through the Python source here, what are the following environment variables set to: - LC_ALL - LC_CTYPE - LANG - LANGUAGE ?
like-gold
like-goldOP3mo ago
sorry i was out for the night. idk but to me it seems alright
No description
like-gold
like-goldOP3mo ago
this is my locale.conf file
No description
CommandMC
CommandMC3mo ago
Ah, I think I found it? Edit ~/.config/heroic/legendaryConfig/legendary/config.ini, your locale should be in a locale key there It's strange to me that the getdefaultlocale function is raising an exception though. The line it's complaining about there is here: https://github.com/Heroic-Games-Launcher/legendary/blob/d044a20eb7db67c3d5183c6022fb55899e84c98a/legendary/core.py#L79-L80 Not sure what else could be wrong though
like-gold
like-goldOP3mo ago
i do not have that file
adverse-sapphire
adverse-sapphire3mo ago
guys if any problem on arch linux ? [alak@archlinux ~]$ yay -S heroic-games-launcher-bin -> 1 error occurred: * request failed: Get "https://aur.archlinux.org/rpc?arg%5B%5D=heroic-games-launcher-bin&type=info&v=5": EOF -> Failed to find AUR package for heroic-games-launcher-bin:1 error occurred: * request failed: Get "https://aur.archlinux.org/rpc?arg=heroic-games-launcher-bin&by=provides&type=search&v=5": EOF -> No AUR package found for heroic-games-launcher-bin there is nothing to do
jolly-crimson
jolly-crimson3mo ago
this is because the AUR has been getting DDOSed over the last week or so, rather than a heroic problem would be my bet, just try again and it might go through, not sure if they're still having connectivity issues, but it could be that
adverse-sapphire
adverse-sapphire3mo ago
thx its work now

Did you find this page helpful?