nuitka打包问题
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start from the reported Nuitka build output and the import statement import lark_oapi as lark, focusing on lark_oapi.api.hire.v1.model and its site submodule. Determine whether the unused submodule can be excluded without breaking parent imports; done means the package links successfully while the required SDK modules remain available.
Written by the indexing model from the issue text.
Description
使用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忽略这个子模块,会在上级模块缺少子模块的错,这该如何解决???
- Dominant language
- Python
- Stars
- 559
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/oapi-sdk-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
larksuite/oapi-sdk-python#163 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
larksuite/oapi-sdk-python#162 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
larksuite/oapi-sdk-python#161 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
larksuite/oapi-sdk-python#160 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
larksuite/oapi-sdk-python#159 ·
All issues in larksuite/oapi-sdk-python
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·