matplotlib import problem

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

I have strange problem while I am importing matplotlib.

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

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

···

--
Jouni K. Seppänen
http://www.iki.fi/jks