scipy: AssertionError: Bad argument number for Assign: 3, expecting 2

Describe your issue.

git clean -xdf
python dev.py build -C-Dblas=blas -C-Dlapack=lapack

...

[795/1588] Generating scipy/stats/_stats_pythran with a custom command
FAILED: scipy/stats/_stats_pythran.cpp 
/path/to//.local/bin/pythran -E ../scipy/stats/_stats_pythran.py -o scipy/stats/_stats_pythran.cpp
Traceback (most recent call last):
  File "/path/to//.local/bin/pythran", line 8, in <module>
    sys.exit(run())
  File "/path/to//.local/lib/python3.10/site-packages/pythran/run.py", line 180, in run
    pythran.compile_pythranfile(args.input_file,
  File "/path/to//.local/lib/python3.10/site-packages/pythran/toolchain.py", line 499, in compile_pythranfile
    output_file = compile_pythrancode(module_name, fd.read(),
  File "/path/to//.local/lib/python3.10/site-packages/pythran/toolchain.py", line 400, in compile_pythrancode
    module, error_checker = generate_cxx(module_name, pythrancode, specs, opts,
  File "/path/to//.local/lib/python3.10/site-packages/pythran/toolchain.py", line 143, in generate_cxx
    pm, ir, docstrings = front_middle_end(module_name, code, optimizations,
  File "/path/to//.local/lib/python3.10/site-packages/pythran/toolchain.py", line 110, in front_middle_end
    refine(pm, ir, optimizations, report_times)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/middlend.py", line 27, in refine
    pm.apply(NormalizeTuples, node, run_times)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 243, in apply
    ret=a.apply(node)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 200, in apply
    new_node = self.run(node)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 189, in run
    n = super(Transformation, self).run(node)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 97, in run
    return self.visit(node)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 79, in visit
    return super(ContextManager, self).visit(node)
  File "/usr/lib64/python3.10/ast.py", line 418, in visit
    return visitor(node)
  File "/usr/lib64/python3.10/ast.py", line 494, in generic_visit
    value = self.visit(value)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 79, in visit
    return super(ContextManager, self).visit(node)
  File "/usr/lib64/python3.10/ast.py", line 418, in visit
    return visitor(node)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/transformations/normalize_tuples.py", line 198, in visit_FunctionDef
    return self.generic_visit(node)
  File "/usr/lib64/python3.10/ast.py", line 494, in generic_visit
    value = self.visit(value)
  File "/path/to//.local/lib/python3.10/site-packages/pythran/passmanager.py", line 79, in visit
    return super(ContextManager, self).visit(node)
  File "/usr/lib64/python3.10/ast.py", line 418, in visit
    return visitor(node)
  **File "/path/to//.local/lib/python3.10/site-packages/pythran/transformations/normalize_tuples.py", line 157, in visit_Assign
    ast.Assign(
  File "/path/to//.local/lib/python3.10/site-packages/gast/gast.py", line 17, in create_node
    assert nbparam in (0, len(Fields)), \
AssertionError: Bad argument number for Assign: 3, expecting 2**
[800/1588] Compiling C++ object scipy/sparse/sparsetools/_sparsetools.cpython-310-x86_64-linux-gnu.so.p/bsr.cxx.o
ninja: build stopped: subcommand failed.
Build failed!

SciPy/NumPy/Python version and system information

git show
commit b37927159235b2fc5854128a7fca390e72a724d1 (HEAD -> custom-mutation, upstream/main)
Merge: 2d27cf728 c8e5d9d07
Author: Tyler Reddy <tyler.je.reddy@gmail.com>
Date:   Mon Aug 28 15:49:40 2023 -0600

    Merge pull request #19152 from anntzer/predecessor
    
    DOC: fix predeces(s)or typo.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 35 (35 by maintainers)

Commits related to this issue

Most upvoted comments

Glad we got to the end here! You were particularly unlucky somehow @enn-nafnlaus, I promise it’s not always this painful. 🤞🏼 it’ll be smoother sailing from here onwards.