Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium Milestone-Release0.7.0 Documentation
New issue 2215 by asmeurer: Failures in the examples
http://code.google.com/p/sympy/issues/detail?id=2215
While looking at issue 719, I noticed that there were several failures in
the examples. You can see them all by running examples/all.py. Here are
the tracebacks from running that in the current master:
Running: intermediate.trees
Traceback (most recent call last):
File "./examples/all.py", line 130, in run_examples
mod.main()
File "./examples/intermediate/trees.py", line 26, in main
num = [s.coeff(n) for n in range(11)]
AttributeError: 'Poly' object has no attribute 'coeff'
===============================================================================
Running: advanced.fem
Traceback (most recent call last):
File "./examples/all.py", line 130, in run_examples
mod.main()
File "./examples/advanced/fem.py", line 181, in main
fe = Lagrange(2,2)
File "./examples/advanced/fem.py", line 142, in __init__
self.compute_basis()
File "./examples/advanced/fem.py", line 164, in compute_basis
Ainv = A.inv()
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/matrices/matrices.py",
line 516, in inv
return self.inverse_GE(iszerofunc=iszerofunc)
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/matrices/matrices.py",
line 1315, in inverse_GE
assert self.det() != 0
AssertionError
===============================================================================
Running: advanced.pidigits
Traceback (most recent call last):
File "./examples/all.py", line 129, in run_examples
mod = load_example_module(example)
File "./examples/all.py", line 114, in load_example_module
mod = __import__(example)
File "./examples/all.py", line 105, in __import__
return imp.load_module(module_name, fp, pathname, description)
File "./examples/advanced/pidigits.py", line 8, in <module>
from sympy.mpmath import libmpf
ImportError: cannot import name libmpf
===============================================================================
Running: advanced.qft
Traceback (most recent call last):
File "./examples/all.py", line 129, in run_examples
mod = load_example_module(example)
File "./examples/all.py", line 114, in load_example_module
mod = __import__(example)
File "./examples/all.py", line 105, in __import__
return imp.load_module(module_name, fp, pathname, description)
File "./examples/advanced/qft.py", line 16, in <module>
from sympy import Basic,exp,Symbol,sin,Rational,I,Mul, Matrix, \
ImportError: cannot import name trim
===============================================================================
Solve Einstein's equations:
Traceback (most recent call last):
File "./examples/all.py", line 130, in run_examples
mod.main()
File "./examples/advanced/relativity.py", line 214, in main
l = dsolve(e, lam(r))
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.py",
line 401, in dsolve
hints = classify_ode(eq, func, dict=True)
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.py",
line 746, in classify_ode
r = _nth_linear_match(reduced_eq, func, order)
File "/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.py",
line 2186, in _nth_linear_match
terms[len(f.args[1:])] += c
KeyError: 2
===============================================================================
SUCCESSFUL:
- beginner.basic
- beginner.differentiation
- beginner.expansion
- beginner.functions
- beginner.limits_examples
- beginner.precision
- beginner.print_pretty
- beginner.series
- beginner.substitution
- beginner.expansion
- intermediate.coupled_cluster
- intermediate.differential_equations
- intermediate.partial_differential_eqs
- intermediate.vandermonde
- advanced.gibbs_phenomenon
- advanced.curvilinear_coordinates
FAILED:
- intermediate.trees
- advanced.fem
- advanced.pidigits
- advanced.qft
- advanced.relativity
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.