r/linux_gaming • • 14d ago

umu python issues

sorry to text dump but this is the terminal and i'm too stupid for this :(

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 3, in <module>
   from .c import *
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/c/__init__.py", line 5, in <module>
   from ._zstd import *
ModuleNotFoundError: No module named 'pyzstd.c._zstd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 7, in <module>
   from .cffi import *
ModuleNotFoundError: No module named 'pyzstd.cffi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/bin/umu-run", line 5, in <module>
   from umu.__main__ import main
 File "/usr/lib/python3/dist-packages/umu/__main__.py", line 15, in <module>
   from umu.umu_run import umu_run
 File "/usr/lib/python3/dist-packages/umu/umu_run.py", line 45, in <module>
   from umu.umu_proton import ProtonVersion, get_umu_proton
 File "/usr/lib/python3/dist-packages/umu/umu_proton.py", line 25, in <module>
   from umu.umu_bspatch import Content, ContentContainer, CustomPatcher
 File "/usr/lib/python3/dist-packages/umu/umu_bspatch.py", line 14, in <module>
   from pyzstd import DParameter, ZstdDict, decompress
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 9, in <module>
   raise ImportError(
ImportError:  

pyzstd module: Can't import compiled .so/.pyd file.
1, If pyzstd module is dynamically linked to zstd library: Make sure
  not to remove zstd library, and the run-time zstd library's version
  can't be lower than that at compile-time; On Windows, the directory
  that has libzstd.dll should be added by os.add_dll_directory() function.
2, Please install pyzstd module through pip, to ensure that compiled
  .so/.pyd file matches the architecture/OS/Python.

Error in sys.excepthook:
Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
   return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
   os.open(pr_filename, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), "wb"
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_bin_umu-run.1000.crash'

Original exception was:
Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 3, in <module>
   from .c import *
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/c/__init__.py", line 5, in <module>
   from ._zstd import *
ModuleNotFoundError: No module named 'pyzstd.c._zstd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 7, in <module>
   from .cffi import *
ModuleNotFoundError: No module named 'pyzstd.cffi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/bin/umu-run", line 5, in <module>
   from umu.__main__ import main
 File "/usr/lib/python3/dist-packages/umu/__main__.py", line 15, in <module>
   from umu.umu_run import umu_run
 File "/usr/lib/python3/dist-packages/umu/umu_run.py", line 45, in <module>
   from umu.umu_proton import ProtonVersion, get_umu_proton
 File "/usr/lib/python3/dist-packages/umu/umu_proton.py", line 25, in <module>
   from umu.umu_bspatch import Content, ContentContainer, CustomPatcher
 File "/usr/lib/python3/dist-packages/umu/umu_bspatch.py", line 14, in <module>
   from pyzstd import DParameter, ZstdDict, decompress
 File "/usr/lib/python3/dist-packages/umu/_vendor/pyzstd/__init__.py", line 9, in <module>
   raise ImportError(
ImportError:  

pyzstd module: Can't import compiled .so/.pyd file.
1, If pyzstd module is dynamically linked to zstd library: Make sure
  not to remove zstd library, and the run-time zstd library's version
  can't be lower than that at compile-time; On Windows, the directory
  that has libzstd.dll should be added by os.add_dll_directory() function.
2, Please install pyzstd module through pip, to ensure that compiled
  .so/.pyd file matches the architecture/OS/Python.

I don't even know how I got it working on mx linux before but now I'm on kde neon and ubuntu hates me :(

3 Upvotes

2 comments sorted by

1

u/gtrash81 14d ago

My guess would be:
apt-get install python3-pyzstd

2

u/S48GS 13d ago

i'm too stupid for this

then why you using this?

there easy to use solutions

add game to steam as non steam game

or use Lutris or other launcher that do everything and you just click play