Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuitka打包问题 #71

Open
Star-tears opened this issue May 31, 2024 · 0 comments
Open

nuitka打包问题 #71

Star-tears opened this issue May 31, 2024 · 0 comments

Comments

@Star-tears
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant