oapi-sdk-python icon indicating copy to clipboard operation
oapi-sdk-python copied to clipboard

nuitka打包问题

Open Star-tears opened this issue 8 months ago • 0 comments

使用nuitka打包遭遇以下报错

module.lark_oapi.api.hire.v1.model.c: In function 'modulecode_lark_oapi$api$hire$v1$model':
module.lark_oapi.api.hire.v1.model.c:11425:33: warning: implicit declaration of function 'IMPORT_HARD_LARK_OAPI__API__HIRE__V1__MODEL__SITE' [-Wimplicit-function-declaration]
11425 |         tmp_star_imported_280 = IMPORT_HARD_LARK_OAPI__API__HIRE__V1__MODEL__SITE();
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module.lark_oapi.api.hire.v1.model.c:11425:31: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
11425 |         tmp_star_imported_280 = IMPORT_HARD_LARK_OAPI__API__HIRE__V1__MODEL__SITE();
      |                               ^              
Nuitka-Scons: Backend linking program with 7061 files (no progress information available for this stage).
/usr/bin/ld: ./module.lark_oapi.api.hire.v1.model.o: in function `modulecode_lark_oapi$api$hire$v1$model':
module.lark_oapi.api.hire.v1.model.c:(.text+0x82ea): undefined reference to `IMPORT_HARD_LARK_OAPI__API__HIRE__V1__MODEL__SITE'
collect2: error: ld returned 1 exit status

在这句import lark_oapi as lark把lark所有模块都加载了,实际根本没用到这个模块,还不能nuitka忽略这个子模块,会在上级模块缺少子模块的错,这该如何解决???

Star-tears avatar May 31 '24 05:05 Star-tears