Lutris not launching

I don't have optimus-manager-gitor any of its derivatives installed, unlike the recent solution presented in 1727. But I have the same problem, terminal output when running 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'

Tried re-installing, and installing lutris-git and building from AUR. No luck.

When using lutris, I get this error:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "/usr/lib/python3.10/io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)

inxi -Faz:

[🔴] × inxi -Faz
System:
Kernel: 5.15.10-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/vmlinuz-linux-zen
root=UUID=271f832d-09f2-4b21-a369-ae6519f69c12 rw rootflags=subvol=@
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=0 cgroup_enable=memory swapaccount=1
resume=UUID=bef431c9-3bd8-4fcc-9de0-55d0e0864379
Desktop: KDE Plasma 5.23.4 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: ROG STRIX B350-F GAMING v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 5603
date: 07/28/2020
CPU:
Info: model: AMD Ryzen 7 1700 bits: 64 type: MT MCP arch: Zen
family: 0x17 (23) model-id: 1 stepping: 1 microcode: 0x8001138
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 768 KiB desc: d-8x32 KiB; i-8x64 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 2x8 MiB
Speed (MHz): avg: 2780 high: 3205 min/max: 1550/3000 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2832 2: 2602
3: 2721 4: 3108 5: 2644 6: 2728 7: 2700 8: 3182 9: 2549 10: 2702 11: 2560
12: 3047 13: 2789 14: 2558 15: 2559 16: 3205 bogomips: 95806
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] vendor: eVga.com.
driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 07:00.0
chip-ID: 10de:1b06 class-ID: 0300
Device-2: Logitech Webcam C930e type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 1-2:2 chip-ID: 046d:0843 class-ID: 0102
Display: x11 server: X.Org 1.21.1.2 compositor: kwin_x11 driver:
loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 3440x1440 s-dpi: 109 s-size: 802x333mm (31.6x13.1")
s-diag: 868mm (34.2")
Monitor-1: DP-2 res: 3440x1440 dpi: 109 size: 800x330mm (31.5x13.0")
diag: 865mm (34.1")
OpenGL: renderer: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 495.46 direct render: Yes
Audio:
Device-1: NVIDIA GP102 HDMI Audio vendor: eVga.com. driver: snd_hda_intel
v: kernel bus-ID: 07:00.1 chip-ID: 10de:10ef class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 09:00.3 chip-ID: 1022:1457 class-ID: 0403
Device-3: Logitech Webcam C930e type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 1-2:2 chip-ID: 046d:0843 class-ID: 0102
Device-4: SAVITECH JDS Labs Element DAC type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-3:2 chip-ID: 262a:1048
class-ID: 0102
Sound Server-1: ALSA v: k5.15.10-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
port: d000 bus-ID: 04:00.0 chip-ID: 8086:1539 class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: br-0dc7692bb377 state: down mac: <filter>
IF-ID-2: docker0 state: down mac: <filter>
IF-ID-3: virbr0 state: down mac: <filter>
IF-ID-4: virbr1 state: down mac: <filter>
RAID:
Supported mdraid levels: raid0
Device-1: md0 maj-min: 9:0 type: mdraid level: raid-0 status: active
size: 849.75 GiB
Info: report: N/A blocks: 891025408 chunk-size: 512k super-blocks: 1.2
Components: Online:
0: sdb1 maj-min: 8:17 size: 425 GiB
1: sdc1 maj-min: 8:33 size: 425 GiB
Drives:
Local Storage: total: 2.54 TiB used: 918.53 GiB (35.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: SSD 950 PRO 512GB size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 2B0QBXX7 temp: 47.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:9 vendor: Samsung model: SSD 960 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3B7QCXE7
temp: 26.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT525MX300SSD1
size: 489.05 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: R060 scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 860 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 4B6Q scheme: GPT
Partition:
ID-1: / raw-size: 121.64 GiB size: 121.64 GiB (100.00%)
used: 86.82 GiB (71.4%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
ID-2: /boot raw-size: 400 MiB size: 400 MiB (100.00%)
used: 215.5 MiB (53.9%) fs: btrfs dev: /dev/nvme0n1p8 maj-min: 259:8
ID-3: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
used: 25.5 MiB (26.6%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /home raw-size: 250.86 GiB size: 250.86 GiB (100.00%)
used: 108.78 GiB (43.4%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7
ID-5: /var/log raw-size: 121.64 GiB size: 121.64 GiB (100.00%)
used: 86.82 GiB (71.4%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
ID-6: /var/tmp raw-size: 121.64 GiB size: 121.64 GiB (100.00%)
used: 86.82 GiB (71.4%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p5 maj-min: 259:5
ID-2: swap-2 type: zram size: 15.62 GiB used: 2.92 GiB (18.7%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 46.0 C mobo: 38.0 C gpu: nvidia temp: 58 C
Fan Speeds (RPM): cpu: 364 fan-2: 326 fan-3: 340 fan-4: 361 fan-6: 344
gpu: nvidia fan: 44%
Power: 12v: N/A 5v: N/A 3.3v: 3.31 vbat: 3.27
Info:
Processes: 514 Uptime: 10m wakeups: 0 Memory: 15.62 GiB
used: 4.95 GiB (31.7%) Init: systemd v: 249 tool: systemctl Compilers:
gcc: 11.1.0 alt: 10 clang: 13.0.0 Packages: pacman: 2251 lib: 546
Shell: fish v: 3.3.1 running-in: konsole inxi: 3.3.11

Did you apply the garuda-update for the python fix as per the announcement the other day?

Yes, I ran update , and checked for rebuilds.

Ok. I asked only because I saw the last version in the Arch repo was updated for python and in the aur the last comment says to simply rebuild.
Let's wait for gamers (I'm not one); :wink:

Just in case...
Did you reboot?

1 Like

Odd that, Lutris runs fine for me. I am using the 'community' version, not the chaotic-aur, btw.

Have you done a 'garuda-update' in terminal?

2 Likes

yes, I believe that it is the same as update. I ran it for certainties sake, nothing changed.

Note that Lutris community gets me into the GUI, but I can't use Python:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "/usr/lib/python3.10/io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)

The error is very strange considering:

╭─can@Pyramidal in ~ took 34ms
✦ [🔴] × pyenv shell system

╭─can@Pyramidal in ~ took 30ms
✦  ╰─λ python
Python 3.10.1 (main, Dec 11 2021, 17:22:55) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> io.text_encoding
<built-in function text_encoding>
>>>

OK this is crazy, the troubleshooting got me thinking, why not run Lutris after pyenv shell system. It works!

The bottom line is that pyenv and Lutris seem to not play well with each other when pyenv shell is not system. Make sure to try out pyenv shell system, if you use this combination before proceeding to deeper troubleshooting :slight_smile:

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.