JustinEzequiel
Programmer
Greetings all,
We're trying to retrieve the code for an old python 2.4 program that was converted into a single-file executable using py2exe.
Programmer left without updating the files in SVN.
Using Seven Zip, I was able to retrieve from the .EXE file the *.pyo files for the imported modules.
(The main script however is not so easily retrieved.)
These .PYO files convert easily back to the .PY source using easypythondecompiler.
Using resourcesviewer, I am able to retrieve what I thought was the main script.
screenshot
However, easypythondecompiler complains with "Invalid pyc/pyo file - Magic value mismatch!"
leading me to think I "retrieved" the main script incorrectly.
Do you have any idea that may help?
We're trying to retrieve the code for an old python 2.4 program that was converted into a single-file executable using py2exe.
Programmer left without updating the files in SVN.
Using Seven Zip, I was able to retrieve from the .EXE file the *.pyo files for the imported modules.
(The main script however is not so easily retrieved.)
These .PYO files convert easily back to the .PY source using easypythondecompiler.
Using resourcesviewer, I am able to retrieve what I thought was the main script.
screenshot
However, easypythondecompiler complains with "Invalid pyc/pyo file - Magic value mismatch!"
leading me to think I "retrieved" the main script incorrectly.
Do you have any idea that may help?