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

5.17 No Module Lutris #5457

Closed
CharlotteCross1998 opened this issue Apr 27, 2024 · 10 comments
Closed

5.17 No Module Lutris #5457

CharlotteCross1998 opened this issue Apr 27, 2024 · 10 comments

Comments

@CharlotteCross1998
Copy link

After updating to 5.17-2, I get the following error:

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

Downgrading back to 5.16-2 fixes the problem.

@danieljohnson2
Copy link
Contributor

Not a lot to go on, but sounds like #4883. Or maybe #4316.

@CharlotteCross1998
Copy link
Author

Lutris, python and python dependencies are installed via pacman.
pip list --user includes nothing as I'm on a relatively fresh install.

Artix Linux on x86_64 platform.
Python 3.12.3

Packages in .local/lib/python3.11/site-packages include:

  • termcolor
  • aur
  • python_pacman
  • inflection

None of which are listed as dependencies as stated here: https://archlinux.org/packages/extra/any/lutris/. There is nothing else in .local/lib relating to python.

@strycore
Copy link
Member

Is Lutris 0.5.17 correctly being installed in /usr/lib/python3.12/site-packages/lutris/ ?

If you try to open a python console and enter:

import lutris
lutris.__file__

what does it tell you?

@strycore
Copy link
Member

Packages in .local/lib/python3.11/site-packages

Since you are now on Python 3.12, the Python packages in the 3.11 folder are going to be ignored.

@Jacob1Tm
Copy link

same issue here

import lutris
lutris.__file__

returns '/usr/lib/python3.12/site-packages/lutris/__init__.py'
running lutris with python /usr/bin/lutris seems to work correctly though

@strycore
Copy link
Member

running lutris with python /usr/bin/lutris seems to work correctly though

That means your python install is likely broken

@Jacob1Tm
Copy link

running lutris with python /usr/bin/lutris seems to work correctly though

That means your python install is likely broken

Well i found out why now, brew had it's own python which messed up everything

@strycore
Copy link
Member

strycore commented Jun 2, 2024

brew, one more thing to add to the list of things that can possibly mess with a Lutris install.

One day I'll write a script called why-doesnt-lutris-run.sh that will detect all those possible source of problems.

@strycore
Copy link
Member

strycore commented Jun 2, 2024

@CharlotteCross1998 did you manage to run Lutris?

@CharlotteCross1998
Copy link
Author

@CharlotteCross1998 did you manage to run Lutris?

I've re-updated to the latest version and it's working now, yes.

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

4 participants