Can't launch anything on Lutris

Hi
I recently updated some packages and now i can’t launch anything on Lutris.
This is the error Lutris gives me:

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 9, 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'

I reinstalled python and lutris but nothing has changed.
The distro i use is Gentoo.
Lutris log: https://paste.ubuntu.com/p/ZZGdJN6nJ5/

Probably has to do with multiple versions of Python being installed. Probably 3.7 next to 3.8.

See this stackoverflow post:

I removed python 3.8 and fixed the error, but i still can’t launch anything.
I also launched Lutris in debug mode, seems that every game stops with code 6.
Here’s the dump: https://paste.ubuntu.com/p/dFrxkrhVbG/

The only thing which looks interesting is the first part:

INFO     2020-05-08 00:39:12,551 [startup.check_driver:55]:Using NVIDIA drivers 440.82 for x86_64
INFO     2020-05-08 00:39:12,552 [startup.check_driver:60]:GPU: Unknown
INFO     2020-05-08 00:39:12,552 [startup.check_driver:60]:GPU: Unknown
INFO     2020-05-08 00:39:12,552 [startup.check_driver:79]:GPU: 10DE:0FC6 1458:3553 using nvidia drivers
INFO     2020-05-08 00:39:12,552 [startup.check_driver:79]:GPU: 10DE:1D01 1462:8C98 using nvidia drivers
INFO     2020-05-08 00:39:12,552 [startup.check_driver:79]:GPU: 1002:67B1 1462:2015 using amdgpu drivers
WARNING: Experimental compiler backend enabled. Here be dragons! Incorrect rendering, GPU hangs and/or resets are likely
WARNING: radv is not a conformant vulkan implementation, testing use only.

Yea, that’s the old GPUs i use for folding@home.
I took them off from the rig, but that didn’t solve the problem.
EDIT:
Also i got this now:

Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "/usr/lib/python3.7/_bootlocale.py", line 35, in getpreferredencoding
    if sys.flags.utf8_mode:
AttributeError: 'sys.flags' object has no attribute 'utf8_mode'

Looks like error in python.Have you tried reinstalling it?

Possibly you have an older version of python enabled which is different to the version of python that lutris is now installed for. Try running:
eselect python list
and if you see something like the following

  [1]   python3.6
  [2]   python2.7
  [3]   python3.8 (fallback)
  [4]   python3.7 (fallback)

Then it means that python 3.6 is the default python3 installation, while lutris was installed against python 3.7 based on the output you’ve displayed. You just need to run eselect python set 4 to switch to python 3.7 or adjust your use flags for lutris to set python_targets_python3_<n>, where <n> is set to the minor number of what every version of python3 you have enabled as the default to ensure lutris is running against the system default python.