[ase-users] having 'pylab' problem in STM study

Marcin Dulak Marcin.Dulak at fysik.dtu.dk
Thu Apr 14 09:55:08 CEST 2011


Hi,

it's seems that you have installed dateutil package that requires python 
 >= 3.0 (http://niemeyer.net/python-dateutil), or it's just a bug in 
dateutil.
It's always better to use the package that comes with you Linux 
distribution, and as a rule to never install packages manually
(from tarballs or python eggs) as root.

Best regards,

Marcin

sudip chakraborty wrote:
> Hello everybody
>   I am a new user in ASE and it's really optimum according to my
> requirement. I have a question regarding the STM study. For getting
> stm image can we do without having Gpaw code? I have installed ase
> 3.4.1. along with numpy and matplotlib also. But while running the
> following script I am getting some unusual error of pylab. As a
> beginner of Python I am not getting what exactly the problem is. I
> will be reall grateful if somebody can illuminate me in this problem.
>
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°my
> script°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
>
> from ase.calculators.test import make_test_dft_calculation
> from ase.dft.stm import STM
> import matplotlib
> import pylab as p
> #from ase.io import view
> from ase.visualize import primiplotter as p
> atoms = make_test_dft_calculation()
> stm = STM(atoms, [0, 1, 2])
> c = stm.get_averaged_current(4.5)
> h = stm.scan(c)
> plot.contourf()
> p.hot()
> p.colorbar()
> p.view()
>
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°Error I
> am getting°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
>
> Traceback (most recent call last):
>   File "stm_line2.py", line 4, in <module>
>     import pylab as p
>   File "/usr/local/lib64/python2.6/site-packages/pylab.py", line 1, in <module>
>     from matplotlib.pylab import *
>   File "/usr/local/lib64/python2.6/site-packages/matplotlib/pylab.py",
> line 220, in <module>
>     from matplotlib import mpl  # pulls in most modules
>   File "/usr/local/lib64/python2.6/site-packages/matplotlib/mpl.py",
> line 3, in <module>
>     from matplotlib import axes
>   File "/usr/local/lib64/python2.6/site-packages/matplotlib/axes.py",
> line 19, in <module>
>     import matplotlib.dates as mdates
>   File "/usr/local/lib64/python2.6/site-packages/matplotlib/dates.py",
> line 119, in <module>
>     from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \
>   File "/usr/local/lib64/python2.6/site-packages/python_dateutil-2.0-py2.6.egg/dateutil/rrule.py",
> line 13, in <module>
>     import _thread
> ImportError: No module named _thread
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
>
> cheers
> SC
>
> _______________________________________________
> 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