|
From: Yang Z. <yan...@gm...> - 2008-11-19 17:25:29
|
Hi, does anybody know why I'm getting this error importing pylab?
Thanks in advance!
Traceback (most recent call last):
File "/Users/Kates/Documents/ps11.py", line 9, in <module>
from pylab import *
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
line 1, in <module>
from matplotlib.pylab import *
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
line 208, in <module>
from matplotlib import mpl # pulls in most modules
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
line 3, in <module>
from matplotlib import axis
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
line 20, in <module>
from font_manager import FontProperties
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
line 40, in <module>
from matplotlib import ft2font
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
Reason: image not found
--
Yang Zhang
http://www.mit.edu/~y_z/
|
|
From: Joshua L. <dis...@gm...> - 2008-11-19 20:10:32
|
It appears that matplotlib is having trouble finding the freetype dynamic lib in your /usr/X11R6/lib folder when it references it. I'd check that folder to see if the dylib is there. If it isn't, reinstall the X11 dev tools. If it is, something is wrong with the dynamic lib opening, so I'd recommend removing matplotlib from your /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages folder and doing a fresh build/install. Josh On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: > Hi, does anybody know why I'm getting this error importing pylab? > Thanks in advance! > > Traceback (most recent call last): > File "/Users/Kates/Documents/ps11.py", line 9, in <module> > from pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", > line 1, in <module> > from matplotlib.pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", > line 208, in <module> > from matplotlib import mpl # pulls in most modules > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", > line 3, in <module> > from matplotlib import axis > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", > line 20, in <module> > from font_manager import FontProperties > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", > line 40, in <module> > from matplotlib import ft2font > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, > 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > Reason: image not found > > -- > Yang Zhang > http://www.mit.edu/~y_z/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 20:49:24
|
The sensitive root folders (like /usr) are hidden from the Finder so that it's hard for someone that doesn't know about them to accidentally delete/move something sensitive that's supposed to stay put. You can get around this easily either with Terminal or Finder itself. If you're comfortable with Terminal: -Open Terminal -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER -Look at the output. It should spit back "libfreetype.6.dylib" at you. If it spits back nothing, the file is missing. If you're not comfortable with Terminal: -Open a Finder window -From the menubar, click Go -> Go to Folder... -Type "/usr/X11R6/lib" (without quotes) and push ENTER -Look in the list of files yourself to see if the file libfreeype.6.dylib is there. Also, for future reference, when getting help on a mailing list, make sure to hit "Reply-all" instead of just "Reply" so that the conversation stays on the mailing list and doesn't turn into a private email correspondence between just you and one other person. Josh On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: > Thanks! I don't know how to find the /usr/X11R6/lib folder though. I > searched for it, but I couldn't find it. > On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: > > It appears that matplotlib is having trouble finding the freetype > dynamic lib in your /usr/X11R6/lib folder when it references it. I'd > check that folder to see if the dylib is there. If it isn't, reinstall > the X11 dev tools. If it is, something is wrong with the dynamic lib > opening, so I'd recommend removing matplotlib from your > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > folder and doing a fresh build/install. > Josh > On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: > > Hi, does anybody know why I'm getting this error importing pylab? > Thanks in advance! > Traceback (most recent call last): > File "/Users/Kates/Documents/ps11.py", line 9, in <module> > from pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", > line 1, in <module> > from matplotlib.pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", > line 208, in <module> > from matplotlib import mpl # pulls in most modules > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", > line 3, in <module> > from matplotlib import axis > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", > line 20, in <module> > from font_manager import FontProperties > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", > line 40, in <module> > from matplotlib import ft2font > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, > 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > Reason: image not found > -- > Yang Zhang > http://www.mit.edu/~y_z/ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > Katie Thomas > Department of Biology > Massachusetts Institute of Technology | Class of 2010 > > > > |
|
From: Katie T. <th...@MI...> - 2008-11-19 20:53:50
|
So I have downloaded matplotlib I'm sure, but when I type "cd /usr/ X11R6/lib" into the terminal is says "no such file or directory." Do you know what this means? Thanks for all your help, Katie On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: > The sensitive root folders (like /usr) are hidden from the Finder so > that it's hard for someone that doesn't know about them to > accidentally delete/move something sensitive that's supposed to stay > put. You can get around this easily either with Terminal or Finder > itself. > > If you're comfortable with Terminal: > > -Open Terminal > -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER > -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER > -Look at the output. It should spit back "libfreetype.6.dylib" at you. > If it spits back nothing, the file is missing. > > If you're not comfortable with Terminal: > > -Open a Finder window > -From the menubar, click Go -> Go to Folder... > -Type "/usr/X11R6/lib" (without quotes) and push ENTER > -Look in the list of files yourself to see if the file > libfreeype.6.dylib is there. > > Also, for future reference, when getting help on a mailing list, make > sure to hit "Reply-all" instead of just "Reply" so that the > conversation stays on the mailing list and doesn't turn into a private > email correspondence between just you and one other person. > > Josh > > On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> > wrote: >> Thanks! I don't know how to find the /usr/X11R6/lib folder >> though. I >> searched for it, but I couldn't find it. >> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >> >> It appears that matplotlib is having trouble finding the freetype >> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >> check that folder to see if the dylib is there. If it isn't, >> reinstall >> the X11 dev tools. If it is, something is wrong with the dynamic lib >> opening, so I'd recommend removing matplotlib from your >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages >> folder and doing a fresh build/install. >> Josh >> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang >> <yan...@gm...> wrote: >> >> Hi, does anybody know why I'm getting this error importing pylab? >> Thanks in advance! >> Traceback (most recent call last): >> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >> from pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/pylab.py", >> line 1, in <module> >> from matplotlib.pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/pylab.py", >> line 208, in <module> >> from matplotlib import mpl # pulls in most modules >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/mpl.py", >> line 3, in <module> >> from matplotlib import axis >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/axis.py", >> line 20, in <module> >> from font_manager import FontProperties >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/font_manager.py", >> line 40, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/site-packages/matplotlib/ft2font.so, >> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/ft2font.so >> Reason: image not found >> -- >> Yang Zhang >> http://www.mit.edu/~y_z/ >> --------------------------------------------------------------------- >> ---- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> -- Katie Thomas Department of Biology Massachusetts Institute of Technology | Class of 2010 |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 20:57:49
|
Could you try just typing "cd /usr", then "ls" and checking what folders are in there? Is there an X11 folder in there at all? Josh On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote: > So I have downloaded matplotlib I'm sure, but when I type "cd > /usr/X11R6/lib" into the terminal is says "no such file or directory." > Do you know what this means? > Thanks for all your help, > Katie > On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: > > The sensitive root folders (like /usr) are hidden from the Finder so > that it's hard for someone that doesn't know about them to > accidentally delete/move something sensitive that's supposed to stay > put. You can get around this easily either with Terminal or Finder > itself. > If you're comfortable with Terminal: > -Open Terminal > -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER > -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER > -Look at the output. It should spit back "libfreetype.6.dylib" at you. > If it spits back nothing, the file is missing. > If you're not comfortable with Terminal: > -Open a Finder window > -From the menubar, click Go -> Go to Folder... > -Type "/usr/X11R6/lib" (without quotes) and push ENTER > -Look in the list of files yourself to see if the file > libfreeype.6.dylib is there. > Also, for future reference, when getting help on a mailing list, make > sure to hit "Reply-all" instead of just "Reply" so that the > conversation stays on the mailing list and doesn't turn into a private > email correspondence between just you and one other person. > Josh > On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: > > Thanks! I don't know how to find the /usr/X11R6/lib folder though. I > searched for it, but I couldn't find it. > On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: > It appears that matplotlib is having trouble finding the freetype > dynamic lib in your /usr/X11R6/lib folder when it references it. I'd > check that folder to see if the dylib is there. If it isn't, reinstall > the X11 dev tools. If it is, something is wrong with the dynamic lib > opening, so I'd recommend removing matplotlib from your > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > folder and doing a fresh build/install. > Josh > On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: > Hi, does anybody know why I'm getting this error importing pylab? > Thanks in advance! > Traceback (most recent call last): > File "/Users/Kates/Documents/ps11.py", line 9, in <module> > from pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", > line 1, in <module> > from matplotlib.pylab import * > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", > line 208, in <module> > from matplotlib import mpl # pulls in most modules > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", > line 3, in <module> > from matplotlib import axis > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", > line 20, in <module> > from font_manager import FontProperties > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", > line 40, in <module> > from matplotlib import ft2font > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, > 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so > Reason: image not found > -- > Yang Zhang > http://www.mit.edu/~y_z/ > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- > Katie Thomas > Department of Biology > Massachusetts Institute of Technology | Class of 2010 > > > > > -- > Katie Thomas > Department of Biology > Massachusetts Institute of Technology | Class of 2010 > > > > |
|
From: Christopher B. <Chr...@no...> - 2008-11-19 21:05:23
|
Joshua Lippai wrote: > If you're not comfortable with Terminal: > > -Open a Finder window > -From the menubar, click Go -> Go to Folder... You can also re-set finder to show you the hidden dirs -- I always have mine set up that way. The easiest way is to use a utility called "TinkerTool", but you can also change the finder setting with the command line: http://lifehacker.com/software/command-line/show-hidden-files-in-finder-188892.php -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 21:11:08
|
Either way, the problem is that matplotlib is trying to access a file somewhere that doesn't exist (and needs to exist). Make sure you have X11 installed on the computer (simple spotlight search should turn up the app frontend), and then install the X11 package from Apple's Xcode developer tools (available on the install discs for the operating system or online from developer.apple.com in the downloads section of the members site with a free ADC account. If you end up downloading the tools, keep in mind that Xcode Developer Tools 2.5 are the latest working version for OS X 10.4, and 3.1.1 is the latest working version for 10.5 (since it's a large download). Once you're sure you have the X11 tools installed, remove matplotlib and do a clean install. Josh On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote: > Could you try just typing "cd /usr", then "ls" and checking what > folders are in there? Is there an X11 folder in there at all? > > Josh > > On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote: >> So I have downloaded matplotlib I'm sure, but when I type "cd >> /usr/X11R6/lib" into the terminal is says "no such file or directory." >> Do you know what this means? >> Thanks for all your help, >> Katie >> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >> >> The sensitive root folders (like /usr) are hidden from the Finder so >> that it's hard for someone that doesn't know about them to >> accidentally delete/move something sensitive that's supposed to stay >> put. You can get around this easily either with Terminal or Finder >> itself. >> If you're comfortable with Terminal: >> -Open Terminal >> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >> -Look at the output. It should spit back "libfreetype.6.dylib" at you. >> If it spits back nothing, the file is missing. >> If you're not comfortable with Terminal: >> -Open a Finder window >> -From the menubar, click Go -> Go to Folder... >> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >> -Look in the list of files yourself to see if the file >> libfreeype.6.dylib is there. >> Also, for future reference, when getting help on a mailing list, make >> sure to hit "Reply-all" instead of just "Reply" so that the >> conversation stays on the mailing list and doesn't turn into a private >> email correspondence between just you and one other person. >> Josh >> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: >> >> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I >> searched for it, but I couldn't find it. >> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >> It appears that matplotlib is having trouble finding the freetype >> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >> check that folder to see if the dylib is there. If it isn't, reinstall >> the X11 dev tools. If it is, something is wrong with the dynamic lib >> opening, so I'd recommend removing matplotlib from your >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages >> folder and doing a fresh build/install. >> Josh >> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: >> Hi, does anybody know why I'm getting this error importing pylab? >> Thanks in advance! >> Traceback (most recent call last): >> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >> from pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", >> line 1, in <module> >> from matplotlib.pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", >> line 208, in <module> >> from matplotlib import mpl # pulls in most modules >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", >> line 3, in <module> >> from matplotlib import axis >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", >> line 20, in <module> >> from font_manager import FontProperties >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", >> line 40, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, >> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so >> Reason: image not found >> -- >> Yang Zhang >> http://www.mit.edu/~y_z/ >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> > |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 21:15:20
|
Note: If you don't have X11 installed at all (not just the dev tools, but not even X11 itself, which would mean you're running something pre_leopard I assume), you can install this as one of the optional components of your OS X install disc. Josh On Wed, Nov 19, 2008 at 1:11 PM, Joshua Lippai <dis...@gm...> wrote: > Either way, the problem is that matplotlib is trying to access a file > somewhere that doesn't exist (and needs to exist). Make sure you have > X11 installed on the computer (simple spotlight search should turn up > the app frontend), and then install the X11 package from Apple's Xcode > developer tools (available on the install discs for the operating > system or online from developer.apple.com in the downloads section of > the members site with a free ADC account. If you end up downloading > the tools, keep in mind that Xcode Developer Tools 2.5 are the latest > working version for OS X 10.4, and 3.1.1 is the latest working version > for 10.5 (since it's a large download). Once you're sure you have the > X11 tools installed, remove matplotlib and do a clean install. > > Josh > > On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote: >> Could you try just typing "cd /usr", then "ls" and checking what >> folders are in there? Is there an X11 folder in there at all? >> >> Josh >> >> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote: >>> So I have downloaded matplotlib I'm sure, but when I type "cd >>> /usr/X11R6/lib" into the terminal is says "no such file or directory." >>> Do you know what this means? >>> Thanks for all your help, >>> Katie >>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >>> >>> The sensitive root folders (like /usr) are hidden from the Finder so >>> that it's hard for someone that doesn't know about them to >>> accidentally delete/move something sensitive that's supposed to stay >>> put. You can get around this easily either with Terminal or Finder >>> itself. >>> If you're comfortable with Terminal: >>> -Open Terminal >>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >>> -Look at the output. It should spit back "libfreetype.6.dylib" at you. >>> If it spits back nothing, the file is missing. >>> If you're not comfortable with Terminal: >>> -Open a Finder window >>> -From the menubar, click Go -> Go to Folder... >>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >>> -Look in the list of files yourself to see if the file >>> libfreeype.6.dylib is there. >>> Also, for future reference, when getting help on a mailing list, make >>> sure to hit "Reply-all" instead of just "Reply" so that the >>> conversation stays on the mailing list and doesn't turn into a private >>> email correspondence between just you and one other person. >>> Josh >>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: >>> >>> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I >>> searched for it, but I couldn't find it. >>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >>> It appears that matplotlib is having trouble finding the freetype >>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >>> check that folder to see if the dylib is there. If it isn't, reinstall >>> the X11 dev tools. If it is, something is wrong with the dynamic lib >>> opening, so I'd recommend removing matplotlib from your >>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages >>> folder and doing a fresh build/install. >>> Josh >>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: >>> Hi, does anybody know why I'm getting this error importing pylab? >>> Thanks in advance! >>> Traceback (most recent call last): >>> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >>> from pylab import * >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", >>> line 1, in <module> >>> from matplotlib.pylab import * >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", >>> line 208, in <module> >>> from matplotlib import mpl # pulls in most modules >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", >>> line 3, in <module> >>> from matplotlib import axis >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", >>> line 20, in <module> >>> from font_manager import FontProperties >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", >>> line 40, in <module> >>> from matplotlib import ft2font >>> ImportError: >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, >>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >>> Referenced from: >>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so >>> Reason: image not found >>> -- >>> Yang Zhang >>> http://www.mit.edu/~y_z/ >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> -- >>> Katie Thomas >>> Department of Biology >>> Massachusetts Institute of Technology | Class of 2010 >>> >>> >>> >>> >>> -- >>> Katie Thomas >>> Department of Biology >>> Massachusetts Institute of Technology | Class of 2010 >>> >>> >>> >>> >> > |
|
From: Katie T. <th...@MI...> - 2008-11-19 21:06:40
|
Oh, I figured it out. It's not there. How do I reinstall the X11 dev tools? On Nov 19, 2008, at 3:57 PM, Joshua Lippai wrote: > Could you try just typing "cd /usr", then "ls" and checking what > folders are in there? Is there an X11 folder in there at all? > > Josh > > On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> > wrote: >> So I have downloaded matplotlib I'm sure, but when I type "cd >> /usr/X11R6/lib" into the terminal is says "no such file or >> directory." >> Do you know what this means? >> Thanks for all your help, >> Katie >> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >> >> The sensitive root folders (like /usr) are hidden from the Finder so >> that it's hard for someone that doesn't know about them to >> accidentally delete/move something sensitive that's supposed to stay >> put. You can get around this easily either with Terminal or Finder >> itself. >> If you're comfortable with Terminal: >> -Open Terminal >> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >> -Look at the output. It should spit back "libfreetype.6.dylib" at >> you. >> If it spits back nothing, the file is missing. >> If you're not comfortable with Terminal: >> -Open a Finder window >> -From the menubar, click Go -> Go to Folder... >> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >> -Look in the list of files yourself to see if the file >> libfreeype.6.dylib is there. >> Also, for future reference, when getting help on a mailing list, make >> sure to hit "Reply-all" instead of just "Reply" so that the >> conversation stays on the mailing list and doesn't turn into a >> private >> email correspondence between just you and one other person. >> Josh >> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> >> wrote: >> >> Thanks! I don't know how to find the /usr/X11R6/lib folder >> though. I >> searched for it, but I couldn't find it. >> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >> It appears that matplotlib is having trouble finding the freetype >> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >> check that folder to see if the dylib is there. If it isn't, >> reinstall >> the X11 dev tools. If it is, something is wrong with the dynamic lib >> opening, so I'd recommend removing matplotlib from your >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages >> folder and doing a fresh build/install. >> Josh >> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang >> <yan...@gm...> wrote: >> Hi, does anybody know why I'm getting this error importing pylab? >> Thanks in advance! >> Traceback (most recent call last): >> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >> from pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/pylab.py", >> line 1, in <module> >> from matplotlib.pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/pylab.py", >> line 208, in <module> >> from matplotlib import mpl # pulls in most modules >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/mpl.py", >> line 3, in <module> >> from matplotlib import axis >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/axis.py", >> line 20, in <module> >> from font_manager import FontProperties >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/font_manager.py", >> line 40, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/site-packages/matplotlib/ft2font.so, >> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/ft2font.so >> Reason: image not found >> -- >> Yang Zhang >> http://www.mit.edu/~y_z/ >> --------------------------------------------------------------------- >> ---- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> -- Katie Thomas Department of Biology Massachusetts Institute of Technology | Class of 2010 |
|
From: John H. <jd...@gm...> - 2008-11-19 22:01:39
|
On Wed, Nov 19, 2008 at 3:06 PM, Katie Thomas <th...@mi...> wrote: > Oh, I figured it out. It's not there. How do I reinstall the X11 dev I have some notes on how to install on OS X that covers this -- see http://ipython.scipy.org/moin/Py4Science/InstallationOSX The explanation on the xcode dev tools is brief, and reads:: install gcc and other developer tools Install XCode developer tools from the Leopard install CD under optional packages. Verify the install -- check for a working gcc > gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) If you don't have the cd (or not a very recent one), you can get XCodetools from the Apple Developer Connection: http://developer.apple.com/tools/download/ you may have to join (for free) and login. Hope this helps, JDH |