Author Topic: Problem while trying to find conductance  (Read 4029 times)

0 Members and 1 Guest are viewing this topic.

Offline medeepak

  • Heavy QuantumATK user
  • ***
  • Posts: 52
  • Reputation: 0
    • View Profile
Problem while trying to find conductance
« on: January 11, 2011, 06:34 »
Hi
i used this piece of code from tutorials to plot conductance

# Read first transmission spectrum from file struct1.nc
transmission_spectrum = nlread("/root/Desktop/Run1/struct1.nc",TransmissionSpectrum)[0]
#make list of temperatures
temperature_list=numpy.linspace(0,2000,21)*Kelvin
#make list for holding conductance
conductance_list=numpy.zeros(len(temperature_list))
#calculate the conductance for each temperature in the temperature list
for i in range(len(temperature_list)):
    conductance_list=transmission_spectrum.conductance(
         electrode_temperatures=(temperature_list,temperature_list) )
#plot the conductance as function of temperature
import pylab
pylab.figure()
pylab.semilogy(temperature_list,conductance_list)
pylab.xlabel("Temperature (K)")                                   
pylab.ylabel("Conductance (S)")
pylab.show()


but i am getting this error
ImportError: libstdc++.so.5: cannot open shared object file: No such file or directory

i tried creating symbolic link
ln -s /usr/lib/libstdc++.so.6 libstdc++.so.6

but still the problem exists
is libstdc++.so.5 different from libstdc++.so.6
how to make it use libstdc++.so.6

Offline medeepak

  • Heavy QuantumATK user
  • ***
  • Posts: 52
  • Reputation: 0
    • View Profile
Re: Problem while trying to find conductance
« Reply #1 on: January 11, 2011, 06:35 »
my complete error code


    import pylab
  File "./build/atkpython/lib/python2.6/site-packages/pylab.py", line 1, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/pylab.py", line 216, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/mpl.py", line 1, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/artist.py", line 6, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/transforms.py", line 34, in <module>
ImportError: libstdc++.so.5: cannot open shared object file: No such file or directory

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
« Last Edit: January 11, 2011, 07:55 by zh »