Spectrogram of a wave file?

I am trying to obtain spectrogram of a wav file in python. But it gives the error: 'module' object has no attri...