Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to launch lutris on endeavouros (arch linux) #5350

Open
albert-softie opened this issue Mar 9, 2024 · 2 comments
Open

unable to launch lutris on endeavouros (arch linux) #5350

albert-softie opened this issue Mar 9, 2024 · 2 comments

Comments

@albert-softie
Copy link

updated my system a few nights ago and any time i try to launch lutris it immediately crashes

Traceback (most recent call last):
  File "/usr/bin/lutris", line 58, in <module>
    from lutris.gui.application import Application  # pylint: disable=no-name-in-module
ModuleNotFoundError: No module named 'lutris'
@strycore
Copy link
Member

strycore commented Mar 9, 2024

It's not us, it's you (or Endeavor / Arch)

Some of the reasons this could happen:

  • You have updated Python to a newer version and the Lutris package hasn't been updated to that version
  • You have messed around with pyenv and Lutris is using the wrong python version

I want to find out the root cause of this so we can find ways to prevent it.
Right now, I'm considering a port of Lutris to Qt which would allow us to """""compile""""" the code into a single binary and not depend on the state of the user's Python installation. But if we go that route, this is going to take a very long time to achieve. There might be some workarounds we can find in the mean time.

@sol8712
Copy link

sol8712 commented Mar 31, 2024

I put some time into this issue today and ive solved it for me, i hope others with the issue can confirm the fix.

After comparing a fresh OS install on a vm to my non-working lutris install I noticed when i ranwhich python and which python3 the output on my non-working system was the wrong directory.

For me on Manjaro(Arch) the directory for each command should show /usr/bin, to set this correctly you just need to make sure there is no other versions of python overwriting it in local user folders such as /usr/local/bin or /home/user/.local/lib. Some programs like pyenv and conda change these directories automatically.

You should also make sure the lutris module is actually in the right python folder /usr/lib/python3.11/site-packages/lutris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants