Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740048 - games-util/lutris installs lutris-wrapper using system python3
Summary: games-util/lutris installs lutris-wrapper using system python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 08:25 UTC by Harm Geerts
Modified: 2020-09-11 08:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harm Geerts 2020-09-02 08:25:13 UTC
The script /usr/share/lutris/bin/lutris-wrapper is used to start (some?) games and when lutris is build for a different python version than the current system version this will break the lutris-wrapper.

# file /usr/lib64/python-exec/python3.7/lutris
/usr/lib64/python-exec/python3.7/lutris: Python script, ASCII text executable

# eselect python show --python3
python3.8

# head -n1 /usr/share/lutris/bin/lutris-wrapper 
#!/usr/bin/env python3

Reproducible: Always

Steps to Reproduce:
1. Build lutris for pythonX
2. Set pythonY as system python3
3. lutris-wrapper cannot start games
Actual Results:  
Starting a diablo3 from lutris I see the following error:

2020-09-02 10:13:15,077: Running Lutris 0.5.6
2020-09-02 10:13:15,077: Using X.Org
2020-09-02 10:13:15,077: Running Mesa driver 20.1.2 on Radeon RX 580 Series (POLARIS10, DRM 3.37.0, 5.7.0-gentoo, LLVM 10.0.0) (0x67df)
2020-09-02 10:13:15,077: GPU: 1002:67DF 1462:3418 using amdgpu drivers
2020-09-02 10:13:15,091: Vulkan is supported
2020-09-02 10:13:15,092: Updating DXVK versions

(lutris:27704): Gtk-CRITICAL **: 10:13:18.311: gtk_tree_model_sort_real_unref_node: assertion 'elt->ref_count > 0' failed
2020-09-02 10:13:20,099: Replacing /home/harm/games/diablo-iii/drive_c/windows/system32/dxgi with DXVK version
2020-09-02 10:13:20,100: Replacing /home/harm/games/diablo-iii/drive_c/windows/system32/d3d11 with DXVK version
2020-09-02 10:13:20,101: Replacing /home/harm/games/diablo-iii/drive_c/windows/system32/d3d10core with DXVK version
2020-09-02 10:13:20,101: Replacing /home/harm/games/diablo-iii/drive_c/windows/system32/d3d9 with DXVK version
2020-09-02 10:13:20,102: Replacing /home/harm/games/diablo-iii/drive_c/windows/syswow64/dxgi with DXVK version
2020-09-02 10:13:20,102: Replacing /home/harm/games/diablo-iii/drive_c/windows/syswow64/d3d11 with DXVK version
2020-09-02 10:13:20,103: Replacing /home/harm/games/diablo-iii/drive_c/windows/syswow64/d3d10core with DXVK version
2020-09-02 10:13:20,104: Replacing /home/harm/games/diablo-iii/drive_c/windows/syswow64/d3d9 with DXVK version
2020-09-02 10:13:20,134: Changing resolution to 1920x1080
Error processing line 1 of /usr/lib/python3.8/site-packages/virtualenvwrapper-4.8.4-py3.8-nspkg.pth:

  Traceback (most recent call last):
    File "/usr/lib/python3.7/site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "/usr/lib/python3.7/importlib/__init__.py", line 51, in <module>
      _w_long = _bootstrap_external._w_long
  AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'

Remainder of file ignored
Traceback (most recent call last):
  File "/usr/share/lutris/bin/lutris-wrapper", line 16, in <module>
    from lutris.util.log import logger
  File "/usr/lib/python3.7/site-packages/lutris/util/log.py", line 6, in <module>
    from gi.repository import GLib
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 24, in <module>
    from pkgutil import extend_path
  File "/usr/lib/python3.7/pkgutil.py", line 5, in <module>
    import importlib
  File "/usr/lib/python3.7/importlib/__init__.py", line 51, in <module>
    _w_long = _bootstrap_external._w_long
AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long'
2020-09-02 10:13:25,158: Game still running (state: running)
2020-09-02 10:13:25,158: Stopping Diablo III (wine)
2020-09-02 10:13:25,261: Switching resolution of HDMI-A-1 to 1920x1080

Expected Results:  
diablo3 should start

Switching the system python3 back to 3.7 fixes this issue.
Comment 1 Larry the Git Cow gentoo-dev 2020-09-11 08:09:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29b588944a03fb6f123226952666c5b0a3f99d86

commit 29b588944a03fb6f123226952666c5b0a3f99d86
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-09-11 08:04:55 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-09-11 08:08:59 +0000

    games-util/lutris: Bump to version 0.5.7.1
    
    Converted to only use a single python implementation in order to
    avoid bug #740048
    
    Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    
    Closes: https://bugs.gentoo.org/733828
    Closes: https://bugs.gentoo.org/740048
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 games-util/lutris/Manifest                         |  1 +
 .../lutris/files/lutris-0.5.7-copy_paste_fix.patch | 38 ++++++++++
 games-util/lutris/lutris-0.5.7.1.ebuild            | 82 ++++++++++++++++++++++
 3 files changed, 121 insertions(+)