matplotlib import problem

"ailpein@...287..." <ailpein@...287...> writes:

I have strange problem while I am importing matplotlib.

  File "/usr/lib/python2.6/xml/sax/", line 6, in <module>
    import os, urlparse, urllib, types
  File "/usr/lib/python2.6/", line 26, in <module>
    import socket
  File "", line 7, in <module>
    except socket.error:
AttributeError: 'module' object has no attribute 'error'

Note how Python prints the full path of and but a
bare filename for You probably have a file named in
your current working directory that is inadvertently getting imported by


Jouni K. Seppänen