Open astrozot opened 4 years ago
The most recent version is 0.9.4post1, and you appear to have 0.9.3.post0 , can you upgrade and report the result?
I have the same issue on version 0.9.4post1 gast-0.3.2
AssertionError Traceback (most recent call last)
<ipython-input-112-b13d9faa9001> in <module>
----> 1 import pythran
/opt/anaconda3/lib/python3.7/site-packages/pythran/__init__.py in <module>
38
39 import pythran.log
---> 40 from pythran.toolchain import (generate_cxx, compile_cxxfile, compile_cxxcode,
41 compile_pythrancode, compile_pythranfile,
42 test_compile)
/opt/anaconda3/lib/python3.7/site-packages/pythran/toolchain.py in <module>
4 '''
5
----> 6 from pythran.backend import Cxx, Python
7 from pythran.config import cfg
8 from pythran.cxxgen import PythonModule, Include, Line, Statement
/opt/anaconda3/lib/python3.7/site-packages/pythran/backend.py in <module>
6 from __future__ import print_function
7
----> 8 from pythran.analyses import LocalNodeDeclarations, GlobalDeclarations, Scope
9 from pythran.analyses import YieldPoints, IsAssigned, ASTMatcher, AST_any
10 from pythran.analyses import RangeValues, PureExpressions, Dependencies
/opt/anaconda3/lib/python3.7/site-packages/pythran/analyses/__init__.py in <module>
10 """
11
---> 12 from .aliases import Aliases, StrictAliases
13 from .ancestors import Ancestors
14 from .argument_effects import ArgumentEffects
/opt/anaconda3/lib/python3.7/site-packages/pythran/analyses/aliases.py in <module>
4 from pythran.intrinsic import Intrinsic, Class, UnboundValue
5 from pythran.passmanager import ModuleAnalysis
----> 6 from pythran.syntax import PythranSyntaxError
7 from pythran.tables import functions, methods, MODULES
8 from pythran.unparse import Unparser
/opt/anaconda3/lib/python3.7/site-packages/pythran/syntax.py in <module>
5 '''
6
----> 7 from pythran.tables import MODULES
8 from pythran.intrinsic import Class
9 from pythran.utils import isstr
/opt/anaconda3/lib/python3.7/site-packages/pythran/tables.py in <module>
171
172
--> 173 BINARY_UFUNC = {"accumulate": FunctionIntr()}
174
175 CLASSES = {
/opt/anaconda3/lib/python3.7/site-packages/pythran/intrinsic.py in __init__(self, **kwargs)
96 def __init__(self, **kwargs):
97 kwargs.setdefault('combiners', ())
---> 98 super(FunctionIntr, self).__init__(**kwargs)
99 self.combiners = kwargs['combiners']
100 if 'signature' in kwargs:
/opt/anaconda3/lib/python3.7/site-packages/pythran/intrinsic.py in __init__(self, **kwargs)
60 for n in kwargs.get('kwonlyargs', [])],
61 [], None,
---> 62 [to_ast(d) for d in kwargs.get('defaults', [])])
63 self.return_range = kwargs.get("return_range",
64 lambda call: UNKNOWN_RANGE)
/opt/anaconda3/lib/python3.7/site-packages/gast/gast.py in create_node(self, *args, **kwargs)
10 class TypeIgnore(AST):
11 pass
---> 12
13
14 def _make_node(Name, Fields, Attributes, Bases):
AssertionError: Bad argument number for arguments: 7, expecting 6```
installed gast==0.3.0 and restart environment helped me to fix this issue
Issue:
I just installed this package, but I am unable to use it. In particular, if I run
pythran
the following error message is shown:Environment (
conda list
):Details about
conda
and system (conda info
):