Skip to content

nuitka打包问题 #71

Open
Open
@Star-tears

Description

@Star-tears

使用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忽略这个子模块,会在上级模块缺少子模块的错,这该如何解决???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions