Click here to Skip to main content
15,943,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I tried to use a tool called easy python decompile and websites to convert pyc python code to source (.py) again, but I got an error in magic number.

Also, I tried the following commands using command prompt using pycdc.exe:
Python
pycdc.exe OSV_Main.pyc

I got a little part of my source code and then stopped with the following error:
Python
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: Screenshots

What I have tried:

How can I retrieve all the source code as the version of Python I used 3.11?
Posted
Updated 12-Sep-23 8:26am
v3
Comments
Richard MacCutchan 12-Sep-23 13:45pm    
You need to talk to the person who created the tool you are using. Decompiling is never an exact science and there are many ways that it can fail.

1 solution

Decomplication isn't necessarily going to work - there are multiple packages available using which you can obfuscate your code base and secure your intellectual property and decompilers can't "undo" that. And one of the main reasons for compiling Python is to hide the code from prying eyes ... not to mention that decomplication is normally explicitly forbidden in the licence and T&C's!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900