Comments (7)
I just pushed the fix to factory. Was trivial after the large changes to how contractions are now all inlined functions instead of pseudo functions. I am still hunting for more easy fixes before this becomes released.
from nuitka.
from nuitka.
Thanks for the response. So is this a numpy problem or not? Have you been able to use nuitka with numpy?
from nuitka.
I've stumbled upon the same issue on OSX, pyenv, target interpreter CPython-3.6.2, Scons using PyPy2-5.7.0. The app is a django app, NumPy is not used.
$ nuitka --recurse-all \
--show-progress \
--show-memory \
--show-modules \
--output-dir=./nuitka-dist \
--python2-for-scons=$HOME/.pyenv/versions/nuitka-build/bin/python \
--standalone \
--python-flag=no_site \
--nofreeze-stdlib \
./nuitka_entrypoint.py
# ./nuitka_entrypoint.py
from waitress import serve
from .wsgi import application
if __name__ == '__main__':
serve(application, listen='0.0.0.0:8000')
Problem with <Node 'EXPRESSION_ASYNC_WAIT'> at /Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/jinja2/asyncfilters.py:72
Traceback (most recent call last):
File "/Users/max/.pyenv/versions/python362/bin/nuitka", line 211, in <module>
MainControl.main()
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/MainControl.py", line 766, in main
main_module = main_module
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/MainControl.py", line 639, in compileTree
main_module = main_module
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/MainControl.py", line 323, in makeSourceDirectory
Finalization.prepareCodeGeneration(module)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/finalizations/Finalization.py", line 33, in prepareCodeGeneration
Operations.visitTree(tree, visitor)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
visitTree(visitable, visitor)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
visitTree(visitable, visitor)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 36, in visitTree
visitTree(visitable, visitor)
[Previous line repeated 9 more times]
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/tree/Operations.py", line 26, in visitTree
visitor.onEnterNode(tree)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/finalizations/FinalizeMarkups.py", line 52, in onEnterNode
self._onEnterNode(node)
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/finalizations/FinalizeMarkups.py", line 159, in _onEnterNode
search = search.getParent()
File "/Users/max/.pyenv/versions/3.6.2/envs/python362/lib/python3.6/site-packages/nuitka/nodes/FunctionNodes.py", line 447, in getParent
assert False
AssertionError
from nuitka.
Failed expression https://github.com/pallets/jinja/blob/01d9e7e906386d24ef3d067bee40401a138098e6/jinja2/asyncfilters.py#L72
from nuitka.
After excluding jinja2
from recursing into, the process fails at
Total memory usage before running scons: 778.03 MB (815824896 bytes):
Init/del calls:
CodeObjectSpec 8925 177 8748
CompiledPythonModule 275 10 265
CompiledPythonPackage 53 0 53
ExpressionAsyncIter 4 0 4
ExpressionAsyncNext 4 0 4
ExpressionAsyncWait 8 0 8
ExpressionAsyncgenObjectBody 2 0 2
ExpressionAttributeLookup 34711 1038 33673
ExpressionAttributeLookupSpecial 252 12 240
ExpressionBuiltinAnonymousRef 8 0 8
ExpressionBuiltinBool 44 6 38
ExpressionBuiltinBytearray1 8 1 7
ExpressionBuiltinBytes 11 0 11
ExpressionBuiltinChr 2 0 2
ExpressionBuiltinClassmethod 84 0 84
ExpressionBuiltinCompile 9 0 9
ExpressionBuiltinDict 78 31 47
ExpressionBuiltinDir1 12 0 12
ExpressionBuiltinEval 2 0 2
ExpressionBuiltinExceptionRef 4156 774 3382
ExpressionBuiltinExec 17 0 17
ExpressionBuiltinFloat 31 3 28
ExpressionBuiltinFrozenset 19 6 13
ExpressionBuiltinGetattr 475 11 464
ExpressionBuiltinGlobals 2426 202 2224
ExpressionBuiltinHasattr 1628 19 1609
ExpressionBuiltinHash 12 0 12
ExpressionBuiltinHex 3 0 3
ExpressionBuiltinId 41 0 41
ExpressionBuiltinImport 2392 202 2190
ExpressionBuiltinInt 217 8 209
ExpressionBuiltinIsinstance 981 16 965
ExpressionBuiltinIter1 3494 116 3378
ExpressionBuiltinIter2 1 0 1
ExpressionBuiltinLen 678 11 667
ExpressionBuiltinList 228 7 221
ExpressionBuiltinLocalsUpdated 1214 17 1197
ExpressionBuiltinMakeException 687 2 685
ExpressionBuiltinNext1 2268 86 2182
ExpressionBuiltinNext2 3 0 3
ExpressionBuiltinOpen 67 10 57
ExpressionBuiltinOrd 27 12 15
ExpressionBuiltinRef 3595 3215 380
ExpressionBuiltinSet 188 101 87
ExpressionBuiltinSetattr 148 2 146
ExpressionBuiltinSlice 645 414 231
ExpressionBuiltinStaticmethod 60 3 57
ExpressionBuiltinStr 168 36 132
ExpressionBuiltinSum1 7 0 7
ExpressionBuiltinSum2 3 0 3
ExpressionBuiltinSuper 475 1 474
ExpressionBuiltinTuple 159 2 157
ExpressionBuiltinType1 1285 19 1266
ExpressionBuiltinType3 14 0 14
ExpressionBuiltinVars 9 0 9
ExpressionBuiltinXrange1 61 21 40
ExpressionBuiltinXrange2 8 0 8
ExpressionBuiltinXrange3 11 1 10
ExpressionCall 3272 51 3221
ExpressionCallEmpty 4227 305 3922
ExpressionCallKeywordsOnly 509 28 481
ExpressionCallNoKeywords 22106 6205 15901
ExpressionCaughtExceptionTracebackRef 126 7 119
ExpressionCaughtExceptionTypeRef 3407 121 3286
ExpressionCaughtExceptionValueRef 256 7 249
ExpressionClassBody 1172 15 1157
ExpressionComparison 2406 65 2341
ExpressionComparisonExceptionMatch 3281 114 3167
ExpressionComparisonIn 3111 86 3025
ExpressionComparisonIs 1417 99 1318
ExpressionComparisonIsNOT 812 37 775
ExpressionComparisonNOTIn 353 10 343
ExpressionConditional 3827 60 3767
ExpressionConditionalAND 1310 22 1288
ExpressionConditionalOR 828 20 808
ExpressionConstantBytearrayRef 1 0 1
ExpressionConstantBytesRef 311 136 175
ExpressionConstantDictEmptyRef 27725 24984 2741
ExpressionConstantDictRef 777 182 595
ExpressionConstantEllipsisRef 2 0 2
ExpressionConstantFalseRef 1641 500 1141
ExpressionConstantFloatRef 91 24 67
ExpressionConstantFrozensetRef 6 0 6
ExpressionConstantIntRef 12614 4795 7819
ExpressionConstantListEmptyRef 1306 219 1087
ExpressionConstantListRef 323 124 199
ExpressionConstantNoneRef 9189 1656 7533
ExpressionConstantSetEmptyRef 118 4 114
ExpressionConstantSetRef 18 0 18
ExpressionConstantSliceRef 407 8 399
ExpressionConstantStrRef 36522 12335 24187
ExpressionConstantTrueRef 1787 502 1285
ExpressionConstantTupleEmptyRef 4786 4560 226
ExpressionConstantTupleRef 7496 1154 6342
ExpressionConstantTypeRef 4353 2444 1909
ExpressionConstantXrangeRef 21 3 18
ExpressionCoroutineObjectBody 10 0 10
ExpressionDictOperationGet 1178 15 1163
ExpressionDictOperationIn 2 0 2
ExpressionFunctionBody 7180 142 7038
ExpressionFunctionCall 2252 28 2224
ExpressionFunctionCreation 9043 163 8880
ExpressionFunctionQualnameRef 1172 1172 0
ExpressionFunctionRef 9419 173 9246
ExpressionGeneratorObjectBody 364 10 354
ExpressionImportModuleHard 156 0 156
ExpressionImportName 2565 77 2488
ExpressionKeyValuePair 3063 260 2803
ExpressionLocalsVariableRef 905 379 526
ExpressionMakeAsyncgenObject 2 0 2
ExpressionMakeCoroutineObject 10 0 10
ExpressionMakeDict 1313 60 1253
ExpressionMakeGeneratorObject 364 10 354
ExpressionMakeList 495 22 473
ExpressionMakeSetLiteral 15 1 14
ExpressionMakeTuple 25428 6348 19080
ExpressionModuleFileAttributeRef 382 10 372
ExpressionOperationBinary 2354 83 2271
ExpressionOperationBinaryAdd 1210 84 1126
ExpressionOperationBinaryDivmod 7 0 7
ExpressionOperationBinaryInplace 304 16 288
ExpressionOperationBinaryMult 221 41 180
ExpressionOperationNOT 2276 214 2062
ExpressionOperationUnary 429 318 111
ExpressionOutlineBody 321 5 316
ExpressionReturnedValueRef 9303 190 9113
ExpressionSelectMetaclass 1172 15 1157
ExpressionSpecialUnpack 2906 76 2830
ExpressionSubscriptLookup 4604 70 4534
ExpressionTempVariableRef 32939 886 32053
ExpressionVariableNameRef 82853 82853 0
ExpressionVariableRef 83530 10117 73413
ExpressionYield 430 20 410
FutureSpec 330 10 320
LocalVariable 21052 476 20576
ModuleVariable 11038 278 10760
ParameterVariable 15035 223 14812
PythonAsyncgenObjectContext 2 2 0
PythonCoroutineObjectContext 10 10 0
PythonFunctionCreatedContext 6068 6068 0
PythonFunctionDirectContext 1697 1697 0
PythonGeneratorObjectContext 308 308 0
PythonInternalModule 1 0 1
PythonMainModule 1 0 1
PythonModuleContext 303 303 0
PythonShlibModule 22 0 22
SourceCodeReference 75956 9440 66516
StatementAssignmentAttribute 3750 78 3672
StatementAssignmentSubscript 1221 8 1213
StatementAssignmentVariable 48656 1281 47375
StatementAssignmentVariableName 32491 32491 0
StatementConditional 13860 676 13184
StatementDelAttribute 26 1 25
StatementDelSubscript 100 4 96
StatementDelVariable 3207 84 3123
StatementDelVariableName 330 330 0
StatementDictOperationRemove 1175 15 1160
StatementDictOperationSet 46 0 46
StatementExpressionOnly 7044 324 6720
StatementGeneratorReturn 15 15 0
StatementGeneratorReturnNone 27 12 15
StatementImportStar 13 0 13
StatementListOperationAppend 315 7 308
StatementLoop 2365 86 2279
StatementLoopBreak 2551 140 2411
StatementLoopContinue 311 8 303
StatementPreserveFrameException 1165 34 1131
StatementPublishException 1165 34 1131
StatementRaiseException 21527 709 20818
StatementReleaseVariable 137449 39540 97909
StatementRestoreFrameException 2561 555 2006
StatementReturn 16692 312 16380
StatementReturnConstant 290 7 283
StatementReturnFalse 164 6 158
StatementReturnNone 6868 4430 2438
StatementReturnTrue 104 3 101
StatementSetLocals 1172 15 1157
StatementSetOperationAdd 17 0 17
StatementSpecialUnpackCheck 1253 32 1221
StatementTry 20515 539 19976
StatementsFrameAsyncgen 2 0 2
StatementsFrameCoroutine 10 0 10
StatementsFrameFunction 7977 1097 6880
StatementsFrameGenerator 364 11 353
StatementsFrameModule 329 17 312
StatementsSequence 165790 87581 78209
TempVariable 14723 438 14285
TraceCollectionBranch 3123815 3123231 584
TraceCollectionFunction 91626 83065 8561
TraceCollectionModule 2476 2156 320
UncompiledPythonModule 187 0 187
UncompiledPythonPackage 8 0 8
VariableTraceAssign 455347 407972 47375
VariableTraceInit 159200 144388 14812
VariableTraceLoopMerge 107386 96812 10574
VariableTraceMerge 786878 711656 75222
VariableTraceUninit 366070 328086 37984
VariableTraceUnknown 1664975 1501341 163634
nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.c: In function ‘jinja2$asyncsupport$$$function_2_generate_async$$$asyncgen_1_generate_async’:
nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.c:1872:48: error: ‘coroutine’ undeclared (first use in this function)
tmp_assign_source_3 = MAKE_ASYNC_ITERATOR( coroutine, tmp_value_name_1 );
^~~~~~~~~
nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.c:1872:48: note: each undeclared identifier is reported only once for each function it appears in
nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.c: In function ‘jinja2$asyncsupport$$$function_16_auto_aiter$$$asyncgen_1_auto_aiter’:
nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.c:11993:48: error: ‘coroutine’ undeclared (first use in this function)
tmp_assign_source_1 = MAKE_ASYNC_ITERATOR( coroutine, tmp_value_name_1 );
^~~~~~~~~
scons: *** [nuitka-dist/nuitka_entrypoint.build/module.jinja2.asyncsupport.o] Error 1
from nuitka.
Seems Nuitka only handled @rpath and not @loader_path. Also the @rpath was only done for Python3 it seems, which must have been an oversight. The next push later today is going to correct that.
The MAKE_ASYNC_ITERATOR issue has been deal with already and is currently OK on develop branch.
The original issue with the Jinja code is not yet fixed, but I hope to get to it soon.
Yours,
Kay
from nuitka.
Related Issues (20)
- UnicodeDecodeError: 'cp932' codec can't decode byte 0x85 in position 56546: illegal multibyte sequence HOT 7
- Handle exit signal with --windows-console-mode=attach HOT 3
- Pandera's check doesn't work after bundling HOT 4
- Forward slash character in path incorrectly rejected on Windows HOT 5
- Error, failed to evaluate condition 'no_docstrings and no_asserts' in this context, exception was ''NuitkaPluginAntiBloat' object has no attribute 'decideAssertions' HOT 1
- [BUG]UnicodeDecodeError on nuitka 2.4 HOT 21
- ValueError: list.remove(x): x not in list HOT 1
- Error in using nuitka-hints.py to perform hints compilation. Any compatible problem between nuitka 2.4.4 and nuitka-hints.py? HOT 1
- Data files missing for Perfetto module HOT 1
- [BUG] --jobs options with negative values is not working on nuitka 2.4 HOT 3
- use onefile failed to run, how to check this error? HOT 1
- [Question] Does Nuitka support multiprocessing? (Yes) HOT 2
- [BUG] Can't import python native ssl module (ImportError) HOT 2
- Can't run the compiled spacy application: No module named 'spacy.lexeme' HOT 5
- cannot import gssapi library properly
- `anyio`'s `to_process.run_sync` breaks after compilation by nuitka HOT 3
- AttributeError: 'nuitka_resource_reader_files' object has no attribute 'suffix' HOT 2
- Multicore execution - Do Binaries compiled by Nuitka, run concurrently unlike Phyton? HOT 2
- Please add Anti injection to the Nutika exe to prevent dlls to be injected into it like pyshell and more HOT 2
- Nuitka Module Importing External Numba .so file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.