Tests Failing for Master Repo.

37 views
Skip to first unread message

Ankit Vadehrā

unread,
Dec 18, 2014, 5:48:19 AM12/18/14
to sy...@googlegroups.com
I am currently trying to check test-cases for the default symy.git repo and am currently on the most recent version.
Still, it is throwing an error. There's 1 warning for the matplotlib library being a little out-of-date, apart from that:

>>
#Rest al passed, above.
sympy/utilities/tests/test_iterables.py[36] ..........................
..........                                                        [OK]
sympy/utilities/tests/test_lambdify.py[41] ............E..............
..............                                                  [FAIL]
sympy/utilities/tests/test_module_imports.py[1] X                 [OK]
>>

___________________________ xpassed tests ____________________________
sympy/core/tests/test_wester.py: test_V12
sympy/core/tests/test_wester.py: test_T10
sympy/utilities/tests/test_module_imports.py: test_module_imports_are_direct

______________________________________________________________________
____ sympy/utilities/tests/test_lambdify.py:test_numexpr_printer _____
  File "/home/ankitvad/Github/sympy/sympy/utilities/tests/test_lambdify.py", line 181, in test_numexpr_printer
    assert f(*(1, )*nargs) is not None
  File "<string>", line 1, in <lambda>
  File "/usr/lib/python2.7/dist-packages/numexpr/necompiler.py", line 687, in evaluate
    _names_cache[expr_key] = getExprNames(ex, context)
  File "/usr/lib/python2.7/dist-packages/numexpr/necompiler.py", line 608, in getExprNames
    ex = stringToExpression(text, {}, context)
  File "/usr/lib/python2.7/dist-packages/numexpr/necompiler.py", line 231, in stringToExpression
    ex = eval(c, names)
  File "<expr>", line 1, in <module>
TypeError: 'VariableNode' object is not callable

 tests finished: 5773 passed, 137 skipped, 329 expected to fail,
3 expected to fail but passed, 1 exceptions, in 2724.40 seconds
DO *NOT* COMMIT!

Could anyone please explain where and why this might be failing ?
Since my main branch is failing, any update i make still fails and it takes a lot of time to figure out
whether my updation is causing the errors or the main-branch by default.
PS: Travis-Cl takes Hours to check a pull request.. :/

Thanks,
Ankit Vadehra

Peter Brady

unread,
Dec 18, 2014, 8:38:36 AM12/18/14
to sy...@googlegroups.com
Are you using the latest version of numexpr?

Ankit Vadehrā

unread,
Dec 18, 2014, 9:24:46 AM12/18/14
to sy...@googlegroups.com
Nopes.. i think latest is 2.4. And i'm on 2.0.1 .

Thanks, i'll upgrade and see what happens.
The problem is that the debian repository does not have the newest versions, ever. And installing with "pip" sometimes fails.
Also,
Do you have any idea how to update matplotlib?
i'm on v 1.1.1 and there's 1.4.2 out. When i try pip it says that my 'distribute' version is on 0.6.24 and not the 0.6.28 as required, and theres no way to update to 0.6.28.
not using pip, not through the repo.

Any Ideas?

Jason Moore

unread,
Dec 18, 2014, 10:40:26 AM12/18/14
to sy...@googlegroups.com
Installing matploblib via pip is not recommended unless you want to dealing with building it all from source. The conda package manager makes installing and switching between versions of hard-to-build python packages very easy. I would recommend using it for your testing so you can easily pin versions in isolated conda environments.

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/cf4ac7b8-9262-4a85-b6d3-7232a9162138%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Guillaume Gay

unread,
Dec 18, 2014, 10:41:07 AM12/18/14
to sy...@googlegroups.com
Hi,

Best way to solve all that is to use continuum.io anaconda distribution,

you'll have a recent stable for all the scipy stack, in 2.7 and 3.4 flavors of python.

Guillaume
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/cf4ac7b8-9262-4a85-b6d3-7232a9162138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Guillaume Gay, PhD

http://damcb.com

43 rue Horace Bertin
13005 Marseille

+33 953 55 98 89
+33 651 95 94 00

n°SIRET 751 175 233 00020

Peter Brady

unread,
Dec 18, 2014, 10:55:22 AM12/18/14
to sy...@googlegroups.com
I would also recommend using conda/anaconda.  I've been using it for a over a year now and it's greatly simplified life

Ankit Vadehrā

unread,
Dec 18, 2014, 11:00:50 AM12/18/14
to sy...@googlegroups.com
Hmmm... did not know that.
I'll check out conda/anaconda next. I got so confused i just built up some packages from source manually.
Anyways, after updation i'm getting the follwog final result, does this mean that my tests pass or is something incorrect:

___________________________ xpassed tests ____________________________
sympy/core/tests/test_wester.py: test_T10
sympy/core/tests/test_wester.py: test_V12
sympy/utilities/tests/test_module_imports.py: test_module_imports_are_direct

 tests finished: 5774 passed, 137 skipped, 329 expected to fail,
3 expected to fail but passed, in 2893.08 seconds


>>There was NO, "DO *NOT* COMMIT...

Jason Moore

unread,
Dec 18, 2014, 11:33:22 AM12/18/14
to sy...@googlegroups.com
Yes, it looks fine. There are no failures.

Ankit Vadehrā

unread,
Dec 18, 2014, 11:39:28 AM12/18/14
to sy...@googlegroups.com
Thanks ALOT. Seriously, much appreciated. :)
Reply all
Reply to author
Forward
0 new messages