question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with multiprocessing plugin on Windows

See original GitHub issue
0.6.11rc1
Python: 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:37:30) [MSC v.1927 32 bit (Intel)]
Executable: C:\Users\andre\AppData\Local\Programs\Python\Python38-32\python.exe
OS: Windows
Arch: x86

Input:

-m nuitka --mingw64 --windows-uac-admin --assume-yes-for-downloads --windows-icon-from-ico=E:\TEST\TEST\test.ico --output-dir=E:\TEST\TEST\Current_build --standalone --plugin-enable=multiprocessing --plugin-enable=numpy --recurse-all "E:\TEST\TEST\test.py"

Output:

Problem with statement at internal:1:
->
Problem with statement at internal:1:
->
Problem with statement at internal:1:
->
Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:466:
->              return self._get_good_object_(

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:465:
->      def _ApplyTypes_(self, dispid, wFlags, retType, argTypes, user, resultCLSID, *args):

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:465:
->      def _ApplyTypes_(self, dispid, wFlags, retType, argTypes, user, resultCLSID, *args):

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:428:
-> class DispatchBaseClass:

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:428:
-> class DispatchBaseClass:

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:428:
-> class DispatchBaseClass:

Problem with statement at C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\__init__.py:428:
-> class DispatchBaseClass:

Nuitka:INFO: Interrupted while working on '<Node 'COMPILED_PYTHON_PACKAGE' with {'filename': 'C:\\Users\\andre\\AppData\\Local\\Programs\\Python\\Python38-32\\lib\\site-packages\\win32com\\client\\__init__.py', 'module_name': <ModuleName win32com.client>, 'code_flags': ''}>'.
Traceback (most recent call last):
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\__main__.py", line 197, in <module>
    main()
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\__main__.py", line 190, in main
    MainControl.main()
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\MainControl.py", line 688, in main
    main_module = createNodeTree(filename=filename)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\MainControl.py", line 146, in createNodeTree
    Optimization.optimize(main_module.getOutputFilename())
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\Optimization.py", line 653, in optimize
    finished = makeOptimizationPass()
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\Optimization.py", line 537, in makeOptimizationPass
    changed = optimizeModule(current_module)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\Optimization.py", line 185, in optimizeModule
    changed = optimizeCompiledPythonModule(module)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\Optimization.py", line 106, in optimizeCompiledPythonModule
    module.computeModule()
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ModuleNodes.py", line 508, in computeModule
    result = module_body.computeStatementsSequence(
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 165, in computeStatementsSequence
    new_statement = statement.computeStatementsSequence(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FrameNodes.py", line 182, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\TryNodes.py", line 112, in computeStatement
    result = tried.computeStatementsSequence(trace_collection=trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\AssignNodes.py", line 278, in computeStatement
    source = trace_collection.onExpression(self.subnode_source)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\OutlineNodes.py", line 227, in computeExpressionRaw
    result = body.computeStatementsSequence(trace_collection=trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\TryNodes.py", line 112, in computeStatement
    result = tried.computeStatementsSequence(trace_collection=trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\TryNodes.py", line 112, in computeStatement
    result = tried.computeStatementsSequence(trace_collection=trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 165, in computeStatementsSequence
    new_statement = statement.computeStatementsSequence(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FrameNodes.py", line 182, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\LocalsDictNodes.py", line 396, in computeStatement
    result, change_tags, change_desc = self.computeStatementSubExpressions(
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\NodeBases.py", line 849, in computeStatementSubExpressions
    expression = trace_collection.onExpression(expression=expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 953, in computeExpressionRaw
    function_body.computeFunctionRaw(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 433, in computeFunctionRaw
    self.computeFunction(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 448, in computeFunction
    result = statements_sequence.computeStatementsSequence(
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\TryNodes.py", line 112, in computeStatement
    result = tried.computeStatementsSequence(trace_collection=trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 165, in computeStatementsSequence
    new_statement = statement.computeStatementsSequence(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FrameNodes.py", line 182, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ReturnNodes.py", line 52, in computeStatement
    expression = trace_collection.onExpression(self.getExpression())
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1130, in computeExpressionRaw
    expression = trace_collection.onExpression(expression=sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 953, in computeExpressionRaw
    function_body.computeFunctionRaw(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 433, in computeFunctionRaw
    self.computeFunction(trace_collection)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 448, in computeFunction
    result = statements_sequence.computeStatementsSequence(
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ConditionalNodes.py", line 578, in computeStatement
    branch_yes_collection.computeBranch(branch=yes_branch)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 729, in computeBranch
    result = branch.computeStatementsSequence(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ConditionalNodes.py", line 595, in computeStatement
    branch_no_collection.computeBranch(branch=no_branch)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 729, in computeBranch
    result = branch.computeStatementsSequence(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\StatementNodes.py", line 167, in computeStatementsSequence
    new_statement = trace_collection.onStatement(statement=statement)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 506, in onStatement
    new_statement, change_tags, change_desc = statement.computeStatement(self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExceptionNodes.py", line 87, in computeStatement
    exception_type = trace_collection.onExpression(
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1130, in computeExpressionRaw
    expression = trace_collection.onExpression(expression=sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1130, in computeExpressionRaw
    expression = trace_collection.onExpression(expression=sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ExpressionBases.py", line 1060, in computeExpressionRaw
    expression = trace_collection.onExpression(sub_expression)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\optimizations\TraceCollections.py", line 487, in onExpression
    r = expression.computeExpressionRaw(trace_collection=self)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\FunctionNodes.py", line 950, in computeExpressionRaw
    needs_visit = owning_module.addUsedFunction(function_body)
  File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\nuitka\nodes\ModuleNodes.py", line 447, in addUsedFunction
    assert function_body in self.getFunctions()
AssertionError

Everything worked on version 0.6.10rc9.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Dec 10, 2020

We keep issues open for as long as the stable version is affected.

0reactions
kayhayencommented, Jan 10, 2021

This was in 0.6.10.1 hotfix already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

multiprocessing in Maya pops up a window - Stack Overflow
I had the same issue using subprocess.Popen in Maya If you pass startupinfo = subprocess.STARTUPINFO.wShowWindow.
Read more >
How to get Python multiprocessing module working on ...
This looks like a kind of ms-windows specific problem... at least a conflict with having an embedded Python interpreter and the environment which ......
Read more >
Yapsy / Bugs / #34 Import errors when plugin attempts to use ...
This is by design both on yapsy's side and on the multiprocessing+windows side, so the only way to solve that is by handling...
Read more >
Why your multiprocessing Pool is stuck (it's full of sharks!)
You're using multiprocessing to run some code across multiple processes, and it just—sits there. It's stuck.
Read more >
Multiprocessing package functions won't run in the interactive ...
Non-Bundled Plugins: io.scheinecker.intellij.coco (1.4.1), ... So we've established Windows has an issue with multiprocessing in interactive mode, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found