zrax / pycdc

C++ python bytecode disassembler and decompiler
GNU General Public License v3.0
3.38k stars 646 forks source link

can I recreate .pyc file with content of pyc? #517

Open not-filepile opened 2 months ago

not-filepile commented 2 months ago

I have content of pyc but I can't decompile it. Could not load file test.pyc

image

test.cpython-311.pyc is original pyc and test.pyc is a pyc file that I pasted text from original pyc. So I want to decompile test.pyc. Can I do this?

greenozon commented 2 months ago

please attach your .pyc files 2) pyc is not a text file, so you can't copy-paste it's contents as a text...