[SOLVED] Failed to retrieve game library. There might be some problems contacting lutris.net

Good evening people

I have an issue when starting Lutris I am greeted by the error. Failed to retrieve game library. There might be some problems contacting lutris.net. Running installers also fail, The app does not seem to think that I have internet

Output from lutris -d

ERROR 2019-11-14 20:29:20,481 [jobs.target:32]:Error while completing task <bound method RuntimeUpdater.update of <lutris.runtime.RuntimeUpdater object at 0x7fac67c14fd0>>: module ‘platform’ has no attribute ‘dist’
<class ‘AttributeError’> module ‘platform’ has no attribute ‘dist’
INFO 2019-11-14 20:29:20,481 [lutriswindow.toggle_connection:580]:Connected to lutris.net as DeadWheel
ERROR 2019-11-14 20:29:20,482 [jobs.target:32]:Error while completing task <function sync_from_remote at 0x7fac67cd4790>: module ‘platform’ has no attribute ‘dist’
<class ‘AttributeError’> module ‘platform’ has no attribute ‘dist’
File “/usr/lib/python3.8/site-packages/lutris/util/jobs.py”, line 30, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3.8/site-packages/lutris/runtime.py”, line 143, in update
for remote_runtime in self._iter_remote_runtimes():
File “/usr/lib/python3.8/site-packages/lutris/runtime.py”, line 152, in _iter_remote_runtimes
request = http.Request(RUNTIME_URL)
File “/usr/lib/python3.8/site-packages/lutris/util/http.py”, line 48, in init
self.headers = {“User-Agent”: self.user_agent}
File “/usr/lib/python3.8/site-packages/lutris/util/http.py”, line 64, in user_agent
PROJECT, VERSION, " ".join(platform.dist()), platform.machine()
File “/usr/lib/python3.8/site-packages/lutris/util/jobs.py”, line 30, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3.8/site-packages/lutris/sync.py”, line 87, in sync_from_remote
remote_library = api.get_library()
File “/usr/lib/python3.8/site-packages/lutris/api.py”, line 86, in get_library
request = http.Request(url, headers={“Authorization”: "Token " + credentials[“token”]})
File “/usr/lib/python3.8/site-packages/lutris/util/http.py”, line 48, in init
self.headers = {“User-Agent”: self.user_agent}
File “/usr/lib/python3.8/site-packages/lutris/util/http.py”, line 64, in user_agent
PROJECT, VERSION, " ".join(platform.dist()), platform.machine()

Lutris version 0.5.3

Dist Arch

uname -a Linux starforge 5.3.11-arch1-1 #1 SMP PREEMPT Tue, 12 Nov 2019 22:19:48 +0000 x86_64 GNU/Linux

Hello,

I have the same errors as well as the same distribution

do you have any solution ?

greetings

No unfortunately not :slightly_frowning_face:

oh hey, it seems to be the exact same issue that I have as well! I posted a topic of my own before looking to see if anyone else had the same problem, oops heh.

Hi,

Same distro same problem. :smiley:

Same here with Manjaro.

Same issue with Fresh install of ArchLinux

Same issue, also fresh ArchLinux install.
I was able to install a game yesterday morning (CET), not anymore in the afternoon, no results come up when I click “Search Lutris.net” from the desktop app.
Same errors when I run from the teminal.

Same issue. Arch, as well.

Sounds like something with Lutris on AUR?

Same here, Arch based EndeavourOS

Could be, but I am installing from community repository, and that means the bug is there as well. Is this correct?

Yup… I didn’t checked

The solution by now is to go for lutris-git package on AUR

Can confirm. Installing lutris-git from AUR seems to work.

1 Like

Related issue:

sweet thank you lutris-git confirmed working

confirming that uninstalling and reinstalling the git build solves my issues for the time being

In-case someone wanted to fix the current install.

I fixed this issue by editing /usr/lib/python3.8/site-packages/lutris/util/http.py

63c63,65
<         return "{} {}".format(PROJECT, VERSION)
---
>         return "{}/{} ({} {})".format(
>             PROJECT, VERSION, " ".join(platform.dist()), platform.machine()
>         )

This is the diff output of the edit.

1 Like

Thanks aboogesnickle, worked like a charm.

Thanks, nice patch !