Reputation: 11
I tried to use a tool called easy python decompile and websites to convert pyc python code to source (.py) again, but I have got an error in magic number.
Also, I tried the following commands using command prompt using pycdc.exe:
pycdc.exe OSV_Main.pyc
I got a little part of my source code and then stopped with the following error:
Error decompyling OSV_Main.pyc: vector::_M_range_check: __n (which is 32) >= this->size() (which is 20)
Please refer to the screenshot of the error: 1 and 2
How can I retrieve all the source code as the version of python I used 3.11?
Upvotes: 0
Views: 723
Reputation: 13152
Looking at the error in your screenshots from that disassembler, I see:
Unsupported opcode: BEFORE_WITH
I also see that you are using python 3.11.
Taking both into account it happens to be the case that this opcode is new in version 3.11
per: Disassembler for Python bytecode
and it looks like your disassembler has just not caught up with 3.11 yet.
Upvotes: 0