Open AndreyNikiforov opened 1 month ago
Interestingly, running docker buildx build . -o .
against test repo linked above gives error on Win10 with Docker Desktop, but works fine in Github Codespace.
Win10:
> docker buildx version
github.com/docker/buildx v0.15.1-desktop.1 5a84cb97872a2e717a86a0dec58b20fd3f0bea46
GHCS:
> docker buildx version
github.com/docker/buildx v0.15.1 1c1dbb2e4cb5363110f42102744a08d034c2300d
Per the troubleshooting docs please build with
--debug
and provide the full output.
Per the troubleshooting docs please build with
--debug
and provide the full output.
Hi @JonathonReinhart, I have the same error when including html files in my package. The output here:
INFO:root:Running StaticX version 0.14.1
INFO:root:Libraries:
INFO:root: elftools: 0.31
DEBUG:root:External tools:
INFO:root: ldd: /usr/bin/ldd: ldd (Debian GLIBC 2.36-9+deb12u7) 2.36
INFO:root: objcopy: /usr/bin/objcopy: GNU objcopy (GNU Binutils for Debian) 2.40
INFO:root: strip: /usr/bin/strip: GNU strip (GNU Binutils for Debian) 2.40
INFO:root: patchelf: /usr/bin/patchelf: patchelf 0.14.3
DEBUG:root:Arguments:
DEBUG:root: prog: 'tmp_dist/amp-log-scanner'
DEBUG:root: output: 'dist/ampere-log-scanner/amp-log-scanner.sx'
DEBUG:root: libs: None
DEBUG:root: strip: False
DEBUG:root: compress: True
DEBUG:root: debug: True
DEBUG:root:Bootloader: bootloader version 0.14.1 compiled Aug 19 2024 at 09:56:34 by gcc version 12.2.0
INFO:root:Program interpreter: /lib/ld-linux-aarch64.so.1
DEBUG:root:Running ['patchelf', '--remove-rpath', '/tmp/staticx-prog-e0xlg15x']
DEBUG:root:Running ['patchelf', '--set-interpreter', 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii', '--set-rpath', 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr', '--force-rpath', '/tmp/staticx-prog-e0xlg15x']
DEBUG:root:Running ['patchelf', '--no-default-lib', '/tmp/staticx-prog-e0xlg15x']
INFO:root:Using PyInstaller version 6.10.0
INFO:root:Opened PyInstaller archive!
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/_cffi_backend.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/ampere_log_scanner/robot/htmldata/one.jinja
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/charset_normalizer/md.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/charset_normalizer/md__mypyc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_asyncio.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_bisect.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_blake2.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_bz2.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_cn.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_hk.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_iso2022.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_jp.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_kr.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_codecs_tw.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_contextvars.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_csv.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_ctypes.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_datetime.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_decimal.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_elementtree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_hashlib.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_heapq.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_json.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_lzma.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_md5.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_multibytecodec.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_multiprocessing.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_opcode.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_pickle.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_posixshmem.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_posixsubprocess.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_queue.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_random.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_sha1.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_sha256.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_sha3.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_sha512.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_socket.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_ssl.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_statistics.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_struct.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/_uuid.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/array.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/binascii.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/fcntl.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/grp.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/math.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/mmap.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/pyexpat.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/readline.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/resource.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/select.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/syslog.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/termios.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/unicodedata.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/lib-dynload/zlib.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libbz2.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libcrypto.so.3
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libexpat.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libffi.so.8
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libgcc_s.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/liblzma.so.5
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libpython3.10.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libreadline.so.8
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libssl.so.3
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libstdc++.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libtinfo.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libuuid.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/libz.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/markupsafe/_speedups.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy.libs/libgfortran-daac5196-038a5e3c.so.5.0.0
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy.libs/libscipy_openblas64_-3ca770d1.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/_core/_multiarray_tests.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/_core/_multiarray_umath.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/fft/_pocketfft_umath.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/linalg/_umath_linalg.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_bounded_integers.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_common.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_generator.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_mt19937.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_pcg64.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_philox.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/_sfc64.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/bit_generator.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/numpy/random/mtrand.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scikit_learn.libs/libgomp-d22c30c5.so.1.0.0
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy.libs/libgfortran-daac5196.so.5.0.0
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy.libs/libopenblasp-r0-b958c995.3.27.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/_lib/_ccallback_c.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/_lib/_fpumode.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/_lib/_uarray/_uarray.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/_lib/messagestream.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/cluster/_hierarchy.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/cluster/_optimal_leaf_ordering.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/cluster/_vq.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/fft/_pocketfft/pypocketfft.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/integrate/_dop.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/integrate/_lsoda.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/integrate/_odepack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/integrate/_quadpack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/integrate/_vode.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/_bspl.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/_fitpack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/_ppoly.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/_rbfinterp_pythran.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/_rgi_cython.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/dfitpack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/interpolate/interpnd.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_cythonized_array_utils.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_decomp_lu_cython.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_decomp_update.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_fblas.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_flapack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_interpolative.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_matfuncs_expm.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_matfuncs_sqrtm_triu.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/_solve_toeplitz.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/cython_blas.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/linalg/cython_lapack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/ndimage/_nd_image.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/ndimage/_ni_label.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_bglu_dense.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_cobyla.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_direct.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_group_columns.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_highs/_highs_constants.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_highs/_highs_wrapper.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_lbfgsb.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_lsap.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_lsq/givens_elimination.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_minpack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_minpack2.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_moduleTNC.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_pava_pybind.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_slsqp.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_trlib/_trlib.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/optimize/_zeros.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/_csparsetools.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/_sparsetools.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_flow.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_matching.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_min_spanning_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_reordering.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_shortest_path.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_tools.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/csgraph/_traversal.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_dsolve/_superlu.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_propack/_cpropack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_propack/_dpropack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_propack/_spropack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/sparse/linalg/_propack/_zpropack.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_ckdtree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_distance_pybind.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_distance_wrap.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_hausdorff.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_qhull.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/_voronoi.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/spatial/transform/_rotation.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_cdflib.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_comb.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_ellip_harm_2.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_specfun.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_ufuncs.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/_ufuncs_cxx.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/special/cython_special.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_ansari_swilk_statistics.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_biasedurn.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/beta_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/binom_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/hypergeom_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/invgauss_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/nbinom_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/ncf_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/nct_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/ncx2_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_boost/skewnorm_ufunc.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_levy_stable/levyst.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_mvn.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_qmc_cy.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_rcont/rcont.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_sobol.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_stats.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_stats_pythran.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/scipy/stats/_unuran/unuran_wrapper.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/__check_build/_check_build.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/_isotonic.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/_loss/_loss.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_dbscan_inner.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_hdbscan/_linkage.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_hdbscan/_reachability.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_hdbscan/_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_hierarchical_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_k_means_common.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_k_means_elkan.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_k_means_lloyd.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/cluster/_k_means_minibatch.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/decomposition/_cdnmf_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/decomposition/_online_lda_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/feature_extraction/_hashing_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/linear_model/_cd_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/linear_model/_sag_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/linear_model/_sgd_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/manifold/_barnes_hut_tsne.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/manifold/_utils.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_dist_metrics.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_argkmin.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_argkmin_classmode.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_base.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors_classmode.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/_pairwise_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/metrics/cluster/_expected_mutual_info_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/neighbors/_ball_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/neighbors/_kd_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/neighbors/_partition_nodes.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/neighbors/_quad_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/preprocessing/_csr_polynomial_expansion.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/preprocessing/_target_encoder_fast.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/svm/_liblinear.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/svm/_libsvm.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/svm/_libsvm_sparse.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/tree/_criterion.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/tree/_splitter.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/tree/_tree.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/tree/_utils.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_cython_blas.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_fast_dict.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_heap.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_isfinite.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_openmp_helpers.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_random.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_seq_dataset.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_sorting.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_typedefs.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_vector_sentinel.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/_weight_vector.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/arrayfuncs.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/murmurhash.cpython-310-aarch64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-gyyjxqnt/sklearn/utils/sparsefuncs_fast.cpython-310-aarch64-linux-gnu.so
Traceback (most recent call last):
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/elf.py", line 318, in open_elf
return ELFFileX.open(path, mode)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/elf.py", line 263, in open
return cls(open(path, mode), path=path)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/elf.py", line 259, in __init__
super().__init__(stream)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/elftools/elf/elffile.py", line 84, in __init__
self._identify_file()
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/elftools/elf/elffile.py", line 570, in _identify_file
elf_assert(magic == b'\x7fELF', 'Magic number does not match')
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/elftools/common/utils.py", line 80, in elf_assert
_assert_with_exception(cond, msg, ELFError)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/elftools/common/utils.py", line 143, in _assert_with_exception
raise exception_type(msg)
elftools.common.exceptions.ELFError: Magic number does not match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/thanhd/test_env/unified_report/.venv-py3.10/bin/staticx", line 8, in <module>
sys.exit(main())
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/__main__.py", line 49, in main
generate(args.prog, args.output,
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/api.py", line 328, in generate
gen.generate(output=output)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/api.py", line 134, in generate
run_hooks(self)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/hooks/__init__.py", line 12, in run_hooks
hook(sx)
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 49, in process_pyinstaller_archive
h.process()
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in process
binaries = [b for b in binaries if is_dynamic(b)]
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in <listcomp>
binaries = [b for b in binaries if is_dynamic(b)]
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/elf.py", line 332, in is_dynamic
with open_elf(path) as elf:
File "/home/thanhd/test_env/unified_report/.venv-py3.10/lib/python3.10/site-packages/staticx/elf.py", line 320, in open_elf
raise InvalidInputError(f"{path}: Invalid ELF image: {e}")
staticx.errors.InvalidInputError: /tmp/staticx-pyi-gyyjxqnt/ampere_log_scanner/robot/htmldata/one.jinja: Invalid ELF image: Magic number does not match
I'm not doing js or HTML but I'm getting this error. I'm building a pyintsaller -F (onefile) file and then running staticx on it.
Current build environment is python 3.10 on CentOS 7.
If I build with --debug=no-archive I get this:
Traceback (most recent call last):
File "/usr/local/bin/staticx", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/staticx/__main__.py", line 49, in main
generate(args.prog, args.output,
File "/usr/local/lib/python3.10/site-packages/staticx/api.py", line 328, in generate
gen.generate(output=output)
File "/usr/local/lib/python3.10/site-packages/staticx/api.py", line 134, in generate
run_hooks(self)
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/__init__.py", line 12, in run_hooks
hook(sx)
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 49, in process_pyinstaller_archive
h.process()
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in process
binaries = [b for b in binaries if is_dynamic(b)]
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in <listcomp>
binaries = [b for b in binaries if is_dynamic(b)]
File "/usr/local/lib/python3.10/site-packages/staticx/elf.py", line 332, in is_dynamic
with open_elf(path) as elf:
File "/usr/local/lib/python3.10/site-packages/staticx/elf.py", line 320, in open_elf
raise InvalidInputError(f"{path}: Invalid ELF image: {e}")
staticx.errors.InvalidInputError: /tmp/staticx-pyi-6jrv7_eb/__future__.pyc: Invalid ELF image: Magic number does not match
If I build without the debug flag I get it on base_library.zip:
Traceback (most recent call last):
File "/usr/local/bin/staticx", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/staticx/__main__.py", line 49, in main
generate(args.prog, args.output,
File "/usr/local/lib/python3.10/site-packages/staticx/api.py", line 328, in generate
gen.generate(output=output)
File "/usr/local/lib/python3.10/site-packages/staticx/api.py", line 134, in generate
run_hooks(self)
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/__init__.py", line 12, in run_hooks
hook(sx)
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 49, in process_pyinstaller_archive
h.process()
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in process
binaries = [b for b in binaries if is_dynamic(b)]
File "/usr/local/lib/python3.10/site-packages/staticx/hooks/pyinstaller.py", line 71, in <listcomp>
binaries = [b for b in binaries if is_dynamic(b)]
File "/usr/local/lib/python3.10/site-packages/staticx/elf.py", line 332, in is_dynamic
with open_elf(path) as elf:
File "/usr/local/lib/python3.10/site-packages/staticx/elf.py", line 320, in open_elf
raise InvalidInputError(f"{path}: Invalid ELF image: {e}")
staticx.errors.InvalidInputError: /tmp/staticx-pyi-5un_ra58/base_library.zip: Invalid ELF image: Magic number does not match
Adding .js file to pyinstaller breaks staticx with "Invalid ELF image: Magic number does not match" error.
Steps to Reproduce (full repo):
python:3.12
docker image on amd64export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install -y patchelf musl-tools build-essential libssl-dev libffi-dev python3-dev
python3 -m venv .venv && . .venv/bin/activate
BOOTLOADER_CC=musl-gcc pip3 install --disable-pip-version-check pyinstaller==6.7.0 wheel==0.42.0 auditwheel==5.4.0 staticx==0.14.1 scons==4.8.0
print("I am dummy")
var abc="def"
pyinstaller --add-data "dummy.js:dummy.js" --onefile dummy.py --name dummy
staticx --loglevel DEBUG --strip dist/dummy dist/dummy_static
Expect outcome:
dummy
&dummy_static
to appear indist/
Actual outcome: