I recently switched to the EPD version of ipython (I have the 64-bit student edition), and now I'm having trouble with pylab. When I type "import pylab" it gives me the following error
ImportError Traceback (most recent call last)
<ipython-input-1-0c66bb86b884> in <module>()
----> 1 import pylab
/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/pylab.py in <module>()
----> 1 from matplotlib.pylab import *
2 import matplotlib.pylab
3 __doc__ = matplotlib.pylab.__doc__
/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/pylab.py in <module>()
219 silent_list, iterable, dedent
220
--> 221 from matplotlib import mpl # pulls in most modules
222
223 from matplotlib.dates import date2num, num2date,\
/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/mpl.py in <module>()
1 from matplotlib import artist
----> 2 from matplotlib import axis
3 from matplotlib import axes
4 from matplotlib import cbook
5 from matplotlib import collections
/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/axis.py in <module>()
8 from matplotlib.artist import allow_rasterization
9 import matplotlib.cbook as cbook
---> 10 import matplotlib.font_manager as font_manager
11 import matplotlib.lines as mlines
12 import matplotlib.patches as mpatches
/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/font_manager.py in <module>()
50 import matplotlib
51 from matplotlib import afm
---> 52 from matplotlib import ft2font
53 from matplotlib import rcParams, get_configdir
54 from matplotlib.cbook import is_string_like
ImportError: dlopen(/Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/ft2font.so, 2): Symbol not found: _FT_Attach_File
Referenced from: /Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/ft2font.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/ft2font.so
I need pylab/matplotlib to live, so this is bad. Interestingly enough, when I double click on PyLab (64-bit).app in my /Applications/Enthought/ folder it opens up a terminal and pylab runs fine, it just doesn't work when I call it from the command line, or when I use notebook. If I could get python to use the version of pylab that I got from EPD then everything would be fine, but by default it imports the thing from /Library/Python/2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.7-intel.egg/matplotlib/ where something is wrong with ft2font.so.
echo $PATHandwhich ipython? - Tony S Yu