Hi, On Tue, Jun 21, 2011 at 5:09 PM, Tomo Lazovich <[email protected]> wrote: > Hello sympy-folk, > > I just pulled a fresh master and then did a git rebase on one of my > branches. After I did the rebase, I ran the tests and got a few failures. > I'm running Python 2.6.2 on Mac OS X. They all seemed to be related to > ordered_iter. Is this a problem on my end or something bad in master? Output > below: > > ________________________________________________________________________________ > _________________ sympy/core/tests/test_functions.py:test_Subs > _________________ > File "/users/lazovich/sympy/sympy/core/tests/test_functions.py", line 167, > in test_Subs > assert Subs(f(x), x, 0).doit() == f(0) > File "/Users/lazovich/sympy/sympy/core/function.py", line 904, in __new__ > if not ordered_iter(variables, Tuple): > NameError: global name 'ordered_iter' is not defined > ________________________________________________________________________________ > ________________ sympy/core/tests/test_functions.py:test_deriv1 > ________________ > File "/users/lazovich/sympy/sympy/core/tests/test_functions.py", line 251, > in test_deriv1 > assert f(g(x)).diff(x) == Derivative(g(x), x)*Subs(Derivative(f(x), x), > File "sympy/core/expr.py", line 1832, in diff > return Derivative(self, *new_symbols, **assumptions) > File "/Users/lazovich/sympy/sympy/core/function.py", line 683, in __new__ > obj = expr._eval_derivative(s) > File "/Users/lazovich/sympy/sympy/core/function.py", line 274, in > _eval_derivative > df = self.fdiff(i) > File "/Users/lazovich/sympy/sympy/core/function.py", line 519, in fdiff > arg_dummy), arg_dummy, self.args[argindex-1]) > File "/Users/lazovich/sympy/sympy/core/function.py", line 904, in __new__ > if not ordered_iter(variables, Tuple): > NameError: global name 'ordered_iter' is not defined > ________________________________________________________________________________ > _________ sympy/printing/pretty/tests/test_pretty.py:test_pretty_Subs > __________ > File "/users/lazovich/sympy/sympy/printing/pretty/tests/test_pretty.py", > line 2458, in test_pretty_Subs > expr = Subs(f(x), x, ph**2) > File "/Users/lazovich/sympy/sympy/core/function.py", line 904, in __new__ > if not ordered_iter(variables, Tuple): > NameError: global name 'ordered_iter' is not defined
Those are all happening on the same line in function.py. ordered_iter is imported at the top of that file, line 42 in master: from sympy.core.compatibility import iterable, ordered_iter Are you sure you kept this line when rebasing? Renato -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
