Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
Dave wrote: > Chris, > I did try to use those notes Those notes specifically addressed how to statically link the extra libs, so you probably missed something, which is probably because I didn't write them very clearly. > I posted > a question with the error report on matplotlib-users I saw that, but had no time to help right then. >>I compiled/installed versions of freetype and libpng but I'm not really >>sure if or how to get matplotlib to find them. >>/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag= >>es/matplotlib/ft2font.so: >>Symbol not found: _vsprintf$LDBLStub >> Referenced from: >> >>/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag= >>es/matplotlib/ft2font.so > It was late night when I originally posted this but now I can guess what it > might mean. Is ft2font.so the actual name of the binary freetype library > file? That's an MPL compiled module that should have been created during the build, and it looks like it was. > And let me guess, I need to drag a file with that name into > site-packages/matplotlib? It should be there already. If not, something went wrong with the install. > In general will unix apps that need libraries find them if they are found on > your $PATH or are they hard-coded to look somewhere specific. no, they look for them in the dynamic library path. On Linux, this is defined in /etc/ld.conf. I'm not sure about OS-X. In this case, I think you're right, it's looking for the freetype libs, and not finding them. I'm not sure where they should be, or how to add to the path OS-X looks for them in. > I keep > running into library and path issues again and again on unix systems. I've and fewer of them than on Windows!. My solution was to build MPL against the static libs. It shouldn't be necessary for your own system, but it makes it a lot easier to distribute, and does get rid of the Path issues one you've got it built. I'll spend a few minutes messing with it now, but I don't' actually need it right now, so I won't put in much time. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
On 11/30/05, Chris Barker <[EMAIL PROTECTED]> wrote: Dave wrote:> I'm not done with installs. I tried to install matplotlib from source > to get a current version. That went equally as well (i.e., bad),> possibly for similar reasons, but that's another story.Did you follow the process I used for the older MPL package at pythonmac.org? The instructions should be in the package. If so, whathappened?I'm sorry I don't have the need for it right now, so it's hard to makethe time.By the way, if you get it working, please do contribute it back to pythonmac.org.-Chris--Christopher Barker, Ph.D.OceanographerNOAA/OR&R/HAZMAT (206) 526-6959 voice7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception[EMAIL PROTECTED] Chris, I did try to use those notes and another document from a web site. I posted a question with the error report on matplotlib-users so I'll just summarize here: [I said] I compiled/installed versions of freetype and libpng but I'm not reallysure if or how to get matplotlib to find them. Anyway, I didn't notice errors when matplotlib installed but when running ipython andtyping import pylab I get the exception below./Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=es/matplotlib/font_manager.py 37 import matplotlib 38 from matplotlib import afm---> 39 from matplotlib import ft2font 40 from matplotlib import rcParams, get_data_path, get_home, get_confi=gdir 41ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=es/matplotlib/ft2font.so:Symbol not found: _vsprintf$LDBLStub Referenced from:/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag= es/matplotlib/ft2font.so Expected in: dynamic lookup It was late night when I originally posted this but now I can guess what it might mean. Is ft2font.so the actual name of the binary freetype library file? And let me guess, I need to drag a file with that name into site-packages/matplotlib? I don't have acces to the machine right now but I'll try tonight. Originally I thought that the error was coming from an existing module called ft2font.so but perhaps that's not the case? In general will unix apps that need libraries find them if they are found on your $PATH or are they hard-coded to look somewhere specific. I keep running into library and path issues again and again on unix systems. -- Dave ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
On Nov 29, 2005, at 12:41 PM, Trent Mick wrote: > You could either build the readline module to any Python 2.4 and plop > that in. Dropping in the readline.so from the Mac Python build should > work to. Thanks for the hint, Trent! I guess I should have done that already. :-) More precisely, to maybe save some other not-entirely-Mac-clueful folks like me time, if you have installed MacPython and then ActivePython, that's $ cd /Library/Frameworks/Python.framework/Versions $ sudo cp MacPython2.4/lib/python2.4/lib-dynload/readline.so 2.4/lib/ python2.4/lib-dynload/ Works great so far. Gary ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
Dave wrote: > I'm not done with installs. I tried to install matplotlib from source > to get a current version. That went equally as well (i.e., bad), > possibly for similar reasons, but that's another story. Did you follow the process I used for the older MPL package at pythonmac.org? The instructions should be in the package. If so, what happened? I'm sorry I don't have the need for it right now, so it's hard to make the time. By the way, if you get it working, please do contribute it back to pythonmac.org. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
[Trent Mick <[EMAIL PROTECTED]> said] >[Dave wrote] >> I installed the ActivePython 2.4.2 binary on a clean 10.4 system. I >> also installed ipython 0.6.15. ipython complains there is no readline >> support. I did find a readline.so file in >> >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/ >> >> and ipython seems to be using the 2.4.2 python version. >> >> How can I get readline to work, especially in ipython? Is there an >> obvious fix or should I perhaps uninstall the ActivePython version and >> use the 2.4.1 installer and related patches at >> http://undefined.org/python/ > >Currently the readline module is not in ActivePython builds. Mainly this >is due to licensing issues: readline is GPL, ActivePython is free as in >beer. I *do* want to make it a simple separate download to be able to >plop in readline support, but haven't yet had the chance. >You could either build the readline module to any Python 2.4 and plop >that in. Dropping in the readline.so from the Mac Python build should >work to. > >Sincerely, >Trent Thanks for the info Trent. When using ipython it's very much necessary to have readline support. In my case I really only use the arrow keys and tab but I suspect ipython would break if the full module was not provided. I was desperate and, lacking clues or documentation (even Google failed me), I uninstalled the ActiveState version and used the 2.4.1 installer. Frankly I really appreciated the uninstaller script and clear instructions that were part of the ActiveState distribution! Very few packages I've seen are so carefull. I'll probably try it again for a future update. Also, I and I'm sure many others would appreciate a separate download or a few README comments on how to get readline installed if it's needed. For future reference and for the benefit of other readers, I'm still unclear on how to actually get readline working. I had tried to build readline (twice, once standalone using make and once using darwinports) and it seemed to work but I don't know where to place it. This is for OS X but, in general for unix systems how can you tell where a library is supposed to be located? Is there any standard or convention? I tried a few places including /lib-dynload but ipython still complained and I got those telltale '[]^' codes when I tried to use arrow keys. I'm not done with installs. I tried to install matplotlib from source to get a current version. That went equally as well (i.e., bad), possibly for similar reasons, but that's another story. Meanwhile the old machine with rock-solid 10.3.9 and all the python 2.3 toys is quietly enjoying the show. -- Dave ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?
[Dave wrote] > I installed the ActivePython 2.4.2 binary on a clean 10.4 system. I > also installed ipython 0.6.15. ipython complains there is no readline > support. I did find a readline.so file in > > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/ > > and ipython seems to be using the 2.4.2 python version. > > How can I get readline to work, especially in ipython? Is there an > obvious fix or should I perhaps uninstall the ActivePython version and > use the 2.4.1 installer and related patches at > http://undefined.org/python/ Currently the readline module is not in ActivePython builds. Mainly this is due to licensing issues: readline is GPL, ActivePython is free as in beer. I *do* want to make it a simple separate download to be able to plop in readline support, but haven't yet had the chance. You could either build the readline module to any Python 2.4 and plop that in. Dropping in the readline.so from the Mac Python build should work to. Sincerely, Trent -- Trent Mick [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] readline support in ActivePython 2.4.2?
I installed the ActivePython 2.4.2 binary on a clean 10.4 system. I also installed ipython 0.6.15. ipython complains there is no readline support. I did find a readline.so file in /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/ and ipython seems to be using the 2.4.2 python version. How can I get readline to work, especially in ipython? Is there an obvious fix or should I perhaps uninstall the ActivePython version and use the 2.4.1 installer and related patches at http://undefined.org/python/ -- David ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig