【问题标题】:Why does Nuitka hinted compilation return error?为什么 Nuitka 提示编译返回错误?
【发布时间】:2021-07-12 22:27:10
【问题描述】:
File "hinted-mods.py", line 275, in __init__ options.recurse_modules.append(f) AttributeError: 'Values' object has no attribute 'recurse_modules'

当我在控制台中执行python nuitka-hints.py main.py 时出现此错误

我使用了此处找到的 nuitka 实用程序的提示编译: https://github.com/Nuitka/NUITKA-Utilities/tree/master/hinted-compilation

【问题讨论】:

    标签: python-3.x nuitka


    【解决方案1】:

    nuitka 选项不再具有“recurse_modules”属性。它被“follow_modules”取代。 就我而言,我只是修改了代码(在hinted-mods.py 中,将所有“recures_modules”替换为“follow_modules”),它就起作用了。 检查此 PR https://github.com/Nuitka/NUITKA-Utilities/pull/63

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多