Comment #2 on issue 3979 by [email protected]: Maximum recursion depth
error in Sympy when using non commutative symbols
http://code.google.com/p/sympy/issues/detail?id=3979
Thank you, here it follows the requested information:
Traceback (most recent call last):
File "stack.py", line 15, in <module>
f.simplify()
File "C:\Python27\Lib\site-packages\sympy\core\expr.py", line 2906, in
simplify
return simplify(self, ratio, measure)
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
3699, in simplify
expr = trigsimp(expr, deep=True)
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
1426, in trigsimp
return trigsimpfunc(expr)
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
1419, in <lambda>
'matching': (lambda x: futrig(x)),
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4272, in futrig
e = bottom_up(e, lambda x: _futrig(x, **kwargs))
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4044, in bottom_up
for a in rv.args])
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4047, in bottom_up
rv = F(rv)
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4272, in <lambda>
e = bottom_up(e, lambda x: _futrig(x, **kwargs))
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4342, in _futrig
e = greedy(tree, objective=Lops)(e)
File "C:\Python27\Lib\site-packages\sympy\strategies\core.py", line 115,
in minrule
return min([rule(expr) for rule in rules], key=objective)
File "C:\Python27\Lib\site-packages\sympy\strategies\core.py", line 42,
in chain_rl
expr = rule(expr)
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4310, in <lambda>
lambda x: _eapply(factor, x, trigs),
File "C:\Python27\Lib\site-packages\sympy\simplify\simplify.py", line
4235, in _eapply
return func(e)
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 5700,
in factor
return factor_nc(f)
File "C:\Python27\Lib\site-packages\sympy\core\exprtools.py", line 1142,
in factor_nc
return expr.func(*[factor_nc(a) for a in expr.args])
File "C:\Python27\Lib\site-packages\sympy\core\exprtools.py", line 1156,
in factor_nc
c = gcd(c, Mul._from_args(a[0]))
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 4734,
in gcd
return domain.to_sympy(domain.gcd(a, b))
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 191, in gcd
return a.gcd(b)
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 99, in gcd
return f.__class__(gcd(f.ex, f.__class__(g).ex))
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 4734,
in gcd
return domain.to_sympy(domain.gcd(a, b))
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 191, in gcd
return a.gcd(b)
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 99, in gcd
return f.__class__(gcd(f.ex, f.__class__(g).ex))
THIS BLOCK IS REPEATED MANY TIMES (
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 4734,
in gcd
return domain.to_sympy(domain.gcd(a, b))
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 191, in gcd
return a.gcd(b)
File "C:\Python27\Lib\site-packages\sympy\polys\domains\expressiondomain.py",
line 99, in gcd
return f.__class__(gcd(f.ex, f.__class__(g).ex))
END OF REPEATED BLOCK )
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 4729,
in gcd
(F, G), opt = parallel_poly_from_expr((f, g), *gens, **args)
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 3912,
in parallel_poly_from_expr
return _parallel_poly_from_expr(exprs, opt)
File "C:\Python27\Lib\site-packages\sympy\polys\polytools.py", line 3964,
in _parallel_poly_from_expr
reps, opt = _parallel_dict_from_expr(exprs, opt)
File "C:\Python27\Lib\site-packages\sympy\polys\polyutils.py", line 295,
in _parallel_dict_from_expr
reps, gens = _parallel_dict_from_expr_no_gens(exprs, opt)
File "C:\Python27\Lib\site-packages\sympy\polys\polyutils.py", line 235,
in _parallel_dict_from_expr_no_gens
raise GeneratorsNeeded("specify generators to give %s a meaning" % arg)
File "C:\Python27\Lib\site-packages\sympy\core\basic.py", line 450, in
__repr__
return sstr(self, order=None)
File "C:\Python27\Lib\site-packages\sympy\printing\str.py", line 756, in
sstrs = p.doprint(expr)
File "C:\Python27\Lib\site-packages\sympy\printing\printer.py", line 231,
in doprint
return self._str(self._print(expr))
File "C:\Python27\Lib\site-packages\sympy\printing\printer.py", line 255,
in _print
return getattr(self, printmethod)(expr, *args, **kwargs)
File "C:\Python27\Lib\site-packages\sympy\printing\str.py", line 274, in
_print_Mul
a_str = map(lambda x: self.parenthesize(x, prec), a)
File "C:\Python27\Lib\site-packages\sympy\printing\str.py", line 274, in
<lambda>
a_str = map(lambda x: self.parenthesize(x, prec), a)
File "C:\Python27\Lib\site-packages\sympy\printing\str.py", line 28, in
parenthesize
return self._print(item)
File "C:\Python27\Lib\site-packages\sympy\printing\printer.py", line 255,
in _print
return getattr(self, printmethod)(expr, *args, **kwargs)
File "C:\Python27\Lib\site-packages\sympy\printing\str.py", line 535, in
_print_Integer
return str(expr.p)
RuntimeError: maximum recursion depth exceeded while calling a Python object
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.