|  1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
 | Traceback (most recent call last):
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 134, in generate
    run_hooks(self)
  File "/root/venv311/lib/python3.11/site-packages/staticx/hooks/__init__.py", line 12, in run_hooks
    hook(sx)
  File "/root/venv311/lib/python3.11/site-packages/staticx/hooks/pyinstaller.py", line 49, in process_pyinstaller_archive
    h.process()
  File "/root/venv311/lib/python3.11/site-packages/staticx/hooks/pyinstaller.py", line 76, in process
    self._add_required_deps(binary)
  File "/root/venv311/lib/python3.11/site-packages/staticx/hooks/pyinstaller.py", line 152, in _add_required_deps
    self.sx.add_library(deppath, exist_ok=True)
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 171, in add_library
    libpath = self._handle_lib_symlinks(libpath)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 236, in _handle_lib_symlinks
    self.sxar.add_symlink(arcname, target)
  File "/root/venv311/lib/python3.11/site-packages/staticx/archive.py", line 95, in add_symlink
    self.tar.addfile(t)
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/tarfile.py", line 2250, in addfile
    self.fileobj.write(buf)
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/lzma.py", line 240, in write
    compressed = self._compressor.compress(data)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Internal error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 328, in generate
    gen.generate(output=output)
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 133, in generate
    with self.sxar as ar:
  File "/root/venv311/lib/python3.11/site-packages/staticx/archive.py", line 72, in __exit__
    self.close()
  File "/root/venv311/lib/python3.11/site-packages/staticx/archive.py", line 78, in close
    self.tar.close()
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/tarfile.py", line 2013, in close
    self.fileobj.write(NUL * (BLOCKSIZE * 2))
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/lzma.py", line 240, in write
    compressed = self._compressor.compress(data)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Internal error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/venv311/bin/staticx", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/venv311/lib/python3.11/site-packages/staticx/__main__.py", line 49, in main
    generate(args.prog, args.output,
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 324, in generate
    with gen:
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 55, in __exit__
    self._cleanup()
  File "/root/venv311/lib/python3.11/site-packages/staticx/api.py", line 71, in _cleanup
    self.sxar.close()
  File "/root/venv311/lib/python3.11/site-packages/staticx/archive.py", line 82, in close
    self.xzf.close()
  File "/root/.pyenv/versions/3.11.13/lib/python3.11/lzma.py", line 147, in close
    self._fp.write(self._compressor.flush())
                   ^^^^^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Internal error
 |