Skip to content

Mod manager fails when trying to install a mod inside a .7z file #11

@pedromothsin

Description

@pedromothsin

Describe the bug
Error inside the logs file:
[2026-03-03 07:48:46] Installing Engine Fixes - Main File-17230-7-0-20-1772078239.7z …
[2026-03-03 07:48:46] Installing: Engine Fixes - Main File-17230-7-0-20-1772078239.7z
[2026-03-03 07:48:46] Extracting with py7zr…
[2026-03-03 07:48:46] py7zr failed ((b'\x03\x03\x01\x1b', 'BCJ2 filter is not supported by py7zr. Please consider to contribute to XZ/liblzma project and help Python core team implementing it. Or please use another tool to extract it.')), retrying with bsdtar…
[2026-03-03 07:48:46] Install error: bsdtar failed: bsdtar: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
[2026-03-03 07:48:46] Traceback (most recent call last):
File "/tmp/.mount_AmethyHCpLGG/usr/app/gui/install_mod.py", line 246, in install_mod_from_archive
z.extractall(extract_dir)
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 1008, in extractall
self._extract(path=path, callback=callback, writer_factory=factory)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 659, in _extract
self.worker.extract(
~~~~~~~~~~~~~~~~~~~^
self.fp,
^^^^^^^^
path,
^^^^^
parallel=(not self.password_protected and not self._filePassed),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 1347, in extract
raise exc_info[1].with_traceback(exc_info[2])
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 1372, in extract_single
self._extract_single(fp, files, path, src_end, q, skip_notarget)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 1442, in _extract_single
crc32 = self.decompress(fp, f.folder, obfp, f.uncompressed, f.compressed, src_end, q)
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/py7zr.py", line 1497, in decompress
decompressor = folder.get_decompressor(compressed_size)
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/archiveinfo.py", line 442, in get_decompressor
self.decompressor = SevenZipDecompressor(self.coders, packsize, self.unpacksizes, self.crc, self.password)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/compressor.py", line 612, in init
self.methods_map: list[bool] = [SupportedMethods.is_native_coder(coder) for coder in coders]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/compressor.py", line 1128, in is_native_coder
cls.raise_unsupported_method_id(coder)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/tmp/.mount_AmethyHCpLGG/opt/python3.13/lib/python3.13/site-packages/py7zr/compressor.py", line 1179, in raise_unsupported_method_id
raise UnsupportedCompressionMethodError(
...<5 lines>...
)
py7zr.exceptions.UnsupportedCompressionMethodError: (b'\x03\x03\x01\x1b', 'BCJ2 filter is not supported by py7zr. Please consider to contribute to XZ/liblzma project and help Python core team implementing it. Or please use another tool to extract it.')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/.mount_AmethyHCpLGG/usr/app/gui/install_mod.py", line 257, in install_mod_from_archive
raise RuntimeError(f"bsdtar failed: {result.stderr.strip()}")
RuntimeError: bsdtar failed: bsdtar: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

Is the issue with a specific game or a general Issue?
I believe it's a general issue, but it happens on Skyrim AE

To Reproduce
Steps to reproduce the behavior:
Happens when trying to install the mod "SSE Engine Fixes (skse64 plugin)" with the mod manager.

Expected behavior
It succeeds in installing .rar files, so I expected it would also work with .7z files.

Desktop (please complete the following information):

  • Linux/CachyOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions