[ase-users] TestSuiteError

Marcin Dulak Marcin.Dulak at fysik.dtu.dk
Thu Jan 15 12:30:28 CET 2009


Dear Katsunori,

the errors show that you do not have matplotlib installed,
more specifically you need so called and Agg backend built-in into 
matplotlib.

Best regards,

Marcin

Katsunori_Makino at n.w.rd.honda.co.jp wrote:
> Dear Sir:
>
> I have found that "testase.py" is in python-ase-3.1.0.742.tar.gz,
> not in the stable version.
> .
> Here is the log of the test suite, which shows ERROR.
> (In my computer. (RHEL4.5, python 2.3.4, numpy 1.0.3)
>
> Is matlabplot.py necessary?
>
>  tmp]$ testase.py
> Ag-Cu100.py (ScriptTestCase) ... ok
> asap.py (ScriptTestCase) ... ok
> atom.py (ScriptTestCase) ... ok
> bader.py (ScriptTestCase) ... ok
> build.py (ScriptTestCase) ... ok
> coverage.py (ScriptTestCase) ... ok
> dimer.py (ScriptTestCase) ... ok
> distmom.py (ScriptTestCase) ... ok
> emt.py (ScriptTestCase) ... ok
> emt1.py (ScriptTestCase) ... ok
> example.py (ScriptTestCase) ... ok
> h2.py (ScriptTestCase) ... ok
> io.py (ScriptTestCase) ... ERROR
> langevin.py (ScriptTestCase) ... ok
> magmom.py (ScriptTestCase) ... ok
> md.py (ScriptTestCase) ... ok
> n2.py (ScriptTestCase) ... ok
> neb.py (ScriptTestCase) ... ok
> neighbor.py (ScriptTestCase) ... ok
> properties.py (ScriptTestCase) ... ok
> pull.py (ScriptTestCase) ... ok
> rotate.py (ScriptTestCase) ... ok
> stm.py (ScriptTestCase) ... ok
> strain.py (ScriptTestCase) ... ok
> things.py (ScriptTestCase) ... ok
> trajectory.py (ScriptTestCase) ... ok
> vacancy.py (ScriptTestCase) ... ok
> verlet.py (ScriptTestCase) ... ok
> vib.py (ScriptTestCase) ... ok
> Traceback (most recent call last):
>   File "/usr/bin/ag", line 118, in ?
>     run(opt, args)
>   File "/usr/bin/ag", line 113, in run
>     gui.run(opt.graph)
>   File "/usr/lib/python2.3/site-packages/ase/gui/gui.py", line 248, in run
>     self.plot_graphs(expr=expr)
>   File "/usr/lib/python2.3/site-packages/ase/gui/gui.py", line 320, in
> plot_graphs
>     g.plot(expr=expr)
>   File "/usr/lib/python2.3/site-packages/ase/gui/graphs.py", line 58, in
> plot
>     import matplotlib
> ImportError: No module named matplotlib
>
> An exception occurred!  Please report the issue to
> ase-users at listserv.fysik.dtu.dk - thanks!  Please also report this if
> it was a user error, so that a better error message can be provided
> next time.
> COCu111.py (ScriptTestCase) ... ok
>
> ======================================================================
> ERROR: io.py (ScriptTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/ase/test/__init__.py", line 14, in
> testfile
>     execfile(self.filename, {'display': self.display})
>   File "/usr/lib/python2.3/site-packages/ase/test/io.py", line 17, in ?
>     write('io-test.1', atoms, format=format)
>   File "/usr/lib/python2.3/site-packages/ase/io/__init__.py", line 206, in
> write
>     write(filename, images, **kwargs)
>   File "/usr/lib/python2.3/site-packages/ase/io/png.py", line 37, in
> write_png
>     PNG(atoms, **parameters).write(filename)
>   File "/usr/lib/python2.3/site-packages/ase/io/eps.py", line 135, in write
>     self.write_header()
>   File "/usr/lib/python2.3/site-packages/ase/io/png.py", line 6, in
> write_header
>     from matplotlib.backends.backend_agg import RendererAgg
> ImportError: No module named matplotlib.backends.backend_agg
>
> ----------------------------------------------------------------------
> Ran 30 tests in 28.345s
>
> FAILED (errors=1)
>
> Katsunori Makino
> Honda R&D Co., Ltd.
> katsunori_makino at n.f.rd.honda.co.jp
> +81-48-462-5090
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users
>   

-- 
***********************************
 
Marcin Dulak
Technical University of Denmark
Department of Physics
Building 307, Room 229
DK-2800 Kongens Lyngby
Denmark
Tel.: (+45) 4525 3157
Fax.: (+45) 4593 2399
email: Marcin.Dulak at fysik.dtu.dk

***********************************




More information about the ase-users mailing list