[ase-users] having 'pylab' problem in STM study
sudip chakraborty
sudiphys at gmail.com
Wed Apr 13 23:43:00 CEST 2011
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
More information about the ase-users
mailing list