[MacPorts] #70438: py312-scipy @1.11.0_0+gfortran: AttributeError: module 'gast' has no attribute 'MatchStar' (was: py312-scipy @1.11.0_0+gfortran fails in build stage)

MacPorts noreply at macports.org
Wed Jul 24 03:18:33 UTC 2024


#70438: py312-scipy @1.11.0_0+gfortran: AttributeError: module 'gast' has no
attribute 'MatchStar'
--------------------------+-----------------------
  Reporter:  zzanderr     |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.9.3
Resolution:               |   Keywords:
      Port:  py312-scipy  |
--------------------------+-----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => michaelld


Comment:

 Looks like the relevant error in the log may be:

 {{{
 [791/1619] Generating scipy/stats/_stats_pythran with a custom command
 FAILED: scipy/stats/_stats_pythran.cpp
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/pythran
 -E ../scipy/stats/_stats_pythran.py -o scipy/stats/_stats_pythran.cpp
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/pythran",
 line 8, in <module>
     sys.exit(run())
              ^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/run.py", line 190, in run
     pythran.compile_pythranfile(args.input_file,
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/toolchain.py", line 541, in compile_pythranfile
     output_file = compile_pythrancode(module_name, fd.read(),
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/toolchain.py", line 442, in compile_pythrancode
     module, error_checker = generate_cxx(module_name, pythrancode, specs,
 opts,
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/toolchain.py", line 142, in generate_cxx
     pm, ir, docstrings = front_middle_end(module_name, code,
 optimizations,
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/toolchain.py", line 109, in front_middle_end
     refine(pm, ir, optimizations, report_times)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/middlend.py", line 57, in refine
     pm.apply(FalsePolymorphism, node, run_times)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 243, in apply
     ret=a.apply(node)
         ^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 200, in apply
     new_node = self.run(node)
                ^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 189, in run
     n = super(Transformation, self).run(node)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 97, in run
     return self.visit(node)
            ^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 79, in visit
     return super(ContextManager, self).visit(node)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ast.py",
 line 407, in visit
     return visitor(node)
            ^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ast.py",
 line 483, in generic_visit
     value = self.visit(value)
             ^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/passmanager.py", line 79, in visit
     return super(ContextManager, self).visit(node)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ast.py",
 line 407, in visit
     return visitor(node)
            ^^^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/pythran/transformations/false_polymorphism.py", line 55, in
 visit_FunctionDef
     if curr.name() != def_.name():
        ^^^^^^^^^^^
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
 /site-packages/beniget/beniget.py", line 112, in name
     elif isinstance(self.node, (ast.MatchStar, ast.MatchAs)):
                                 ^^^^^^^^^^^^^
 AttributeError: module 'gast' has no attribute 'MatchStar'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70438#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list