Decompile pyc in 2.7 in python 3 env

651 views Asked by At

I have a package of the of python. All are in pyc. I need to decompile the same. I tried uncompyle6. But when I do the same I am getting the below file entry only in the output.

# uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.1 (default, Dec 14 2018, 19:28:38) 
# [GCC 7.3.0]
# Embedded file name: G:\Packages\source\source_8.5.3\mysite\i18n_backend.py
# Compiled at: 2020-04-21 12:12:30

I suppose that this is because the pyc is compiled in the python 2.7 and I am trying to decompile the same in python 3.7. As my ubuntu doesn't have 2.7, how can I go forward now? There are more than 200 files, that also in subdirectories.

0

There are 0 answers