Mac Lion Python install: Matplotlib ends in mysql error -


I am installing Python / MMP / SPP / Maplib / ISSLL on my Mac Lion. I had previously installed Python 2.7.3 and mysqldb. I was then updated to 4.3 XCode and used to install numpy, scipy, etc.

At this time I am able to import many packages in Python without Python, but matplotlib dies:

  Python 2.7.3 (v2.7.3: 70274d53c1dd, 9 April 2012, 20:52:43) [GCC 4.2.1 (Created 5666) (dot 3) on Darwin "help", "Copyright", "Credit" or "License" & Gt for more information. ; & Gt; & Gt; Import samples & gt; & Gt; & Gt; Import SPP & gt; & Gt; & Gt; Import _mysql / library / framework / python Framework / Version-2.7 / Lib / Python 2.7 / site-package / MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg / _mysql.py: 3: User Alert: Module _m Sql Already / Library / Framworks / Python. Framework / Version -2.7 / lib / python2.7 / site-packages / MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg / _mysql was already imported. PYC, but / user / myname / pypy to sys.path & gt; & Gt; & Gt; Being added to Import matplotlib error 2002: The socket from local MySQL server can not be connected via '/tmp/mysql.sock' (2)   

if the question is basic, but I understand Can not come up with warning, or the last error ...

Something strange Internal namespace is collision (considering that this is not the case if you are in MySQL build directory) Matplotlib does not use mysql in any way, I get it from a clone of the matplotlib source:

  $ & gt; Grep -ir mysql *   

No more hits found. But I think the obvious answer is not to import matplotlib from within mysql build directory ...

Comments