Skip to content

Invalid argument exception extracting package generated with Python 2.2 #12

@LukeUsher

Description

@LukeUsher

I have been tasked with making changes to a legacy product that we no longer have source code for; the application was developed with Python2.2 and packaged with pyinstaller.

pyinstxtractor-ng identifies the package as being built with Pyinstaller 2.0/Python2.2, but the extraction of the archive fails with an exception when attempting to locate the TOC; could it be an unsupported format?

[+] Processing app.exe
[+] Pyinstaller version: 2.0
[+] Python version: 2.2
[+] Length of package: 978984 bytes
[+] Found 6 files in CArchive
[+] Beginning extraction...please standby
Traceback (most recent call last):
  File "pyinstxtractor-ng.py", line 527, in <module>
  File "pyinstxtractor-ng.py", line 509, in main
  File "pyinstxtractor-ng.py", line 328, in extractFiles
  File "pyinstxtractor-ng.py", line 421, in _extractPyz
OSError: [Errno 22] Invalid argument

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions