yuzhiblue 发表于 2024-7-28 23:21

使用nuitka打包python脚本时出现unused-but-set-variable 错误,如何解决?

如题。错误原文如下:
module.comtypes.tools.codegenerator.packing.c: In function 'impl_comtypes$tools$codegenerator$packing$$$function__2_calc_packing':
module.comtypes.tools.codegenerator.packing.c:2151:17: error: variable 'tmp_try_except_1__unhandled_indicator' set but not used [-Werror=unused-but-set-variable]
2151 |   nuitka_bool tmp_try_except_1__unhandled_indicator = NUITKA_BOOL_UNASSIGNED;
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors

scons: *** Error 1
FATAL: Failed unexpectedly in Scons C backend compilation.
Nuitka:WARNING:   Complex topic! More information can be found at
Nuitka:WARNING: https://nuitka.net/info/scons-backend-failure.html
Nuitka-Reports: Compilation crash report written to file 'nuitka-crash-report.xml'.

qfxldhw 发表于 2024-7-28 23:50

目录中不要有中文试试

yuzhiblue 发表于 2024-7-29 20:36

qfxldhw 发表于 2024-7-28 23:50
目录中不要有中文试试

目录中没有中文。还是不行。
页: [1]
查看完整版本: 使用nuitka打包python脚本时出现unused-but-set-variable 错误,如何解决?