You are not logged in.

#1 2022-12-01 16:59:05

Phx_Blaster007
Member
Registered: 2022-07-08
Posts: 5

Borked python with pyenv resulting in unlaunchable Lutris [Solved]

I've recently done

pyenv init

, which is the following:

# Add pyenv executable to PATH by running
# the following interactively:

set -Ux PYENV_ROOT $HOME/.pyenv
set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths

# Load pyenv automatically by appending
# the following to ~/.config/fish/config.fish:

pyenv init - | source


# Restart your shell for the changes to take effect.

That worked great, and now

python -V

returns whatever I set

pyenv global

to, which is expected. However, now I get the following error when I try and launch lutris:

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

Any ideas? Let me know if there are any logs I should include.

Last edited by Phx_Blaster007 (2022-12-01 20:23:35)

Offline

#2 2022-12-01 17:04:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,660

Re: Borked python with pyenv resulting in unlaunchable Lutris [Solved]

Of course you do, you need to run lutris from the repository outside of your pyenv. That's point of them, advising to set up a pyenv unconditionally will obviously break everything that doesn't expect a pyenv.

Offline

#3 2022-12-01 17:06:55

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: Borked python with pyenv resulting in unlaunchable Lutris [Solved]

Phx_Blaster007 wrote:

now I get the following error when I try and launch lutris:

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

Any ideas? Let me know if there are any logs I should include.

does it happen always with any Python version?
I'm NOT an expert, but what if you set a Virtual Environment instead?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB