【发布时间】:2020-11-29 21:36:38
【问题描述】:
我的文件已损坏,我唯一的备份位于 pychache 文件夹中。我曾尝试使用 uncompyle6,但它给出了如下所示的错误。我不确定这是什么原因,但我假设这是因为它引用了其他文件中的变量或函数。如何反编译引用其他文件的文件?
Parse error at or near `POP_EXCEPT' instruction at offset 1476
@osutracker.before_loop
async def before_printer(self):
print('waiting...')
await self.bot.wait_until_ready()
# file osu.cpython-38.pyc
# Deparsing stopped due to parse error
文件:https://cdn.discordapp.com/attachments/437091189792047125/782360883861913640/osu.cpython-38.pyc
【问题讨论】:
-
为什么不尝试在沙盒环境中生成一个新的 pyc,看看 uncompyle6 如何处理对其他文件的引用。也许那些其他文件必须可用于 uncompyle6?