$ ./my_script.exe
Hello World!
$ uncompyle6.exe my_script.pyc
Traceback (most recent call last):
File "c:\python36\lib\site-packages\xdis\load.py", line 131, in load_module_from_file_object
float_version = float(magics.versions[magic][:3])
KeyError: b'\xe3\x00\x00\x00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python36\Scripts\uncompyle6.exe\__main__.py", line 9, in <module>
File "c:\python36\lib\site-packages\uncompyle6\bin\uncompile.py", line 181, in main_bin
**options)
File "c:\python36\lib\site-packages\uncompyle6\main.py", line 232, in main
linemap_stream, do_fragments)
File "c:\python36\lib\site-packages\uncompyle6\main.py", line 133, in decompile_file
source_size) = load_module(filename, code_objects)
File "c:\python36\lib\site-packages\xdis\load.py", line 107, in load_module
fast_load=fast_load, get_code=get_code)
File "c:\python36\lib\site-packages\xdis\load.py", line 136, in load_module_from_file_object
(ord(magic[0:1])+256*ord(magic[1:2]), filename))
ImportError: Unknown magic number 227 in my_script.pyc
$ uncompyle6.exe my_script.pyc
# uncompyle6 version 3.2.5
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: my_script.py
print('Hello World!')
# okay decompiling my_script.pyc