[SciPy-User] Intro tutorial checklist failure
Gökhan Sever
gokhansever at gmail.com
Fri Aug 14 16:05:05 EDT 2009
Hello,
As posted below the output of the script seemingly there is something wrong
with the matplotlib tests. I have matplotlib installed and working properly
however the script fails to test this. Manual testing of the test plot
functions work properly as expected.
I don't have scipy and mayavi installed yet since there are two bizarre
installation issues that I have had and posted on the lists, and still
couldn't figure out. All were working extremely nicely on Fedora 10 (The
source code installations) but there must be somethings wrong with some
critical libraries or some tools' being so up-to-date.
[gsever at ccn python-repo]$ python intro_tut_checklist.py
Running tests:
__main__.test_imports('setuptools', None) ... MOD: setuptools, version:
0.6c9
ok
__main__.test_imports('IPython', None) ... MOD: IPython, version:
0.11.bzr.r1205
ok
__main__.test_imports('numpy', None) ... MOD: numpy, version: 1.4.0.dev
ok
__main__.test_imports('scipy', None) ... ERROR
__main__.test_imports('scipy.io', None) ... ERROR
__main__.test_imports('matplotlib', <function validate_mpl at 0xb7a83614>)
... ERROR
__main__.test_imports('pylab', None) ... ERROR
__main__.test_imports('enthought.mayavi.api', None) ... ERROR
__main__.test_loadtxt(array([[ 0., 1.], ... ok
__main__.test_loadtxt(array([('M', 21, 72.0), ('F', 35, 58.0)], ... ok
__main__.test_loadtxt(array([ 1., 3.]), array([ 1., 3.])) ... ok
__main__.test_loadtxt(array([ 2., 4.]), array([ 2., 4.])) ... ok
Simple plot generation. ... ERROR
Plots with math ... ERROR
======================================================================
ERROR: __main__.test_imports('scipy', None)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 91, in check_import
exec "import %s as m" % mnames
File "<string>", line 1, in <module>
ImportError: No module named scipy
======================================================================
ERROR: __main__.test_imports('scipy.io', None)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 91, in check_import
exec "import %s as m" % mnames
File "<string>", line 1, in <module>
ImportError: No module named scipy.io
======================================================================
ERROR: __main__.test_imports('matplotlib', <function validate_mpl at
0xb7a83614>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 106, in check_import
validator(m)
File "intro_tut_checklist.py", line 69, in validate_mpl
m.use('Agg')
AttributeError: 'module' object has no attribute 'use'
======================================================================
ERROR: __main__.test_imports('pylab', None)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 91, in check_import
exec "import %s as m" % mnames
File "<string>", line 1, in <module>
File "/home/gsever/Desktop/python-repo/matplotlib/lib/pylab.py", line 1,
in <module>
from matplotlib.pylab import *
ImportError: No module named pylab
======================================================================
ERROR: __main__.test_imports('enthought.mayavi.api', None)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 91, in check_import
exec "import %s as m" % mnames
File "<string>", line 1, in <module>
ImportError: No module named mayavi.api
======================================================================
ERROR: Simple plot generation.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 166, in test_plot
from matplotlib import pyplot as plt
ImportError: cannot import name pyplot
======================================================================
ERROR: Plots with math
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "intro_tut_checklist.py", line 175, in test_plot_math
from matplotlib import pyplot as plt
ImportError: cannot import name pyplot
----------------------------------------------------------------------
Ran 14 tests in 0.539s
FAILED (errors=7)
Cleanup - removing temp directory:
/home/gsever/Desktop/python-repo/tmp-testdata-h_qN8x
***************************************************************************
TESTS FINISHED
***************************************************************************
If the printout above did not finish in 'OK' but instead says 'FAILED', copy
and send the *entire* output, including the system information below, for
help.
We'll do our best to assist you. You can send your message to the Scipy
user
mailing list:
http://mail.scipy.org/mailman/listinfo/scipy-user
but feel free to also CC directly: Fernando.Perez at berkeley.edu
==================
System information
==================
os.name : posix
os.uname : ('Linux', 'ccn', '2.6.29.6-217.2.3.fc11.i686.PAE', '#1 SMP
Wed Jul 29 16:05:22 EDT 2009', 'i686')
platform : linux2
platform+ :
Linux-2.6.29.6-217.2.3.fc11.i686.PAE-i686-with-fedora-11-Leonidas
prefix : /usr
exec_prefix : /usr
executable : /usr/bin/python
version_info : (2, 6, 0, 'final', 0)
version : 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
--
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20090814/2c21417f/attachment.html>
More information about the SciPy-User
mailing list