Je commence juste à connaître le langage python, et je connais juste les bases. Je trouve un problème en essayant de compiler une petite commande dans ubuntu en utilisant nuitka.Comment surmonter cette erreur de compilation (Nuitka) pour python
Note: La version python que j'utilise ici est python 3.6 Voici mon $ sample.py $.
Print ("Hello user.")
Et voici la ligne de commande i utilisé pour compiler le code ...
nuitka --recurse-on --python-version=3.6 sample.py
Quand j'utilise cette commande, je reçois cela comme sortie ...
sample.build/CompiledAsyncgenType.c: In function
‘Nuitka_Asyncgen_unwrap_value’:
sample.build/CompiledAsyncgenType.c:994:9: warning: implicit declaration
of function ‘_PyGen_SetStopIterationValue’ [-Wimplicit-function-declaration]
_PyGen_SetStopIterationValue(((_PyAsyncGenWrappedValue*)result)->agw_val);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sample.build/CompiledAsyncgenType.o: In function
`Nuitka_Asyncgen_unwrap_value.isra.9':
CompiledAsyncgenType.c:(.text+0x118c): undefined reference to
`_PyGen_SetStopIterationValue'
sample.build/CompiledAsyncgenType.o: In function
`Nuitka_AsyncgenAsend_throw':
CompiledAsyncgenType.c:(.text+0x2337): undefined reference to
`_PyGen_SetStopIterationValue'
sample.build/CompiledAsyncgenType.o: In function
`Nuitka_AsyncgenAthrow_throw':
CompiledAsyncgenType.c:(.text+0x295f): undefined reference to
`_PyGen_SetStopIterationValue'
sample.build/CompiledAsyncgenType.o: In function
`Nuitka_AsyncgenAthrow_iternext':
CompiledAsyncgenType.c:(.text+0x30e8): undefined reference to
`_PyGen_SetStopIterationValue'
sample.build/CompiledAsyncgenType.o: In function
`Nuitka_AsyncgenAsend_tp_iternext':
CompiledAsyncgenType.c:(.text+0x37b7): undefined reference to
`_PyGen_SetStopIterationValue'
sample.build/CompiledAsyncgenType.o:CompiledAsyncgenType.c:(.text+0x3fe7):
more undefined references to `_PyGen_SetStopIterationValue' follow
collect2: error: ld returned 1 exit status
scons: *** [sample.exe] Error 1
S'il vous plaît aidez-moi à résoudre ce problème les gars !! ...
va mettre à jour, après avoir essayé ce que vous avez dit, monsieur ... –