Re: [Matplotlib-users] Matplotlib-users Digest, Vol 76, Issue 40
Here's the uname -a output: Darwin Pico.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64 I just modified the script that was here: http://matplotlib.org/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd I don't actually have EPD, but it didn't look like there was anything really EPD specific in that script so I used it. Thanks, -Ranjit On Fri, Sep 21, 2012 at 5:59 PM, < matplotlib-users-requ...@lists.sourceforge.net> wrote: > Send Matplotlib-users mailing list submissions to > matplotlib-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > or, via email, send a message with subject or body 'help' to > matplotlib-users-requ...@lists.sourceforge.net > > You can reach the person managing the list at > matplotlib-users-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Matplotlib-users digest..." > > > Today's Topics: > >1. Re: install problem on OSX 10.8 (Benjamin Root) >2. Fwd: install problem on OSX 10.8 (Benjamin Root) >3. Re: Image as marker and axes "equal" aspect ratio (Andrea Gavana) >4. Re: install problem on OSX 10.8 (Damon McDougall) >5. Re: netcdf4-python build (Michael Rawlins) > > > -- > > Message: 1 > Date: Fri, 21 Sep 2012 14:53:26 -0400 > From: Benjamin Root > Subject: Re: [Matplotlib-users] install problem on OSX 10.8 > To: Ranjit Chacko > Cc: matplotlib-users@lists.sourceforge.net > Message-ID: > < > cannq6fk5kj78cpcctd+494giajgwer_n94a29nmymkjnw8b...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Fri, Sep 21, 2012 at 2:19 PM, Ranjit Chacko > wrote: > > > I'm having some trouble compiling matplotlib, and I'm not sure how to fix > > it. Does anyone have any advice on how to proceed given the following > > traceback? > > > > Thanks, > > > > -Ranjit > > > > > Which version of matplotlib? How are you building it (i.e., what set of > directions are you following)? > > Ben Root > -- next part -- > An HTML attachment was scrubbed... > > -- > > Message: 2 > Date: Fri, 21 Sep 2012 15:01:59 -0400 > From: Benjamin Root > Subject: [Matplotlib-users] Fwd: install problem on OSX 10.8 > To: Matplotlib Users > Message-ID: > 3qypnfohwhpjil6pg9hmrpkdjm...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Note: please use "Reply-All" to make sure the mailing list continues to get > this thread. > > Could you do a "uname -a" at the command-line and give us that output? I > was not aware that Apple shipped any 32-bit machines anymore. > > Ben Root > > -- Forwarded message -- > From: Ranjit Chacko > Date: Fri, Sep 21, 2012 at 2:55 PM > Subject: Re: [Matplotlib-users] install problem on OSX 10.8 > To: Benjamin Root > > > I'm just cloned the repo from master yesterday, and I tried running the > following script: > NAME=matplotlib > VERSION=v1.1.x > PREFIX=$HOME > cd matplotlib > export LDFLAGS="-Os -arch i386 -L/usr/X11/lib" > export CFLAGS="-Os -arch i386 -I/usr/X11/include > -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12" > export PKG_CONFIG_PATH="/usr/X11/lib/pkgconfig" > export ARCHFLAGS="-arch i386" > python setup.py build > # use --prefix if you don't want it installed in the default location: > python setup.py install #--prefix=$PREFIX > cd .. > > Thanks, > > -Ranjit > -- next part -- > An HTML attachment was scrubbed... > > -- How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] install problem on OSX 10.8
I'm having some trouble compiling matplotlib, and I'm not sure how to fix it. Does anyone have any advice on how to proceed given the following traceback? Thanks, -Ranjit building 'matplotlib.ft2font' extension gcc -DNDEBUG -g -fwrapv -O3 -Wall -Os -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -arch i386 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/getaround/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/opt/getaround/lib/python2.7/site-packages/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2 -I/opt/getaround/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.4-i386-2.7/src/ft2font.o src/ft2font.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’: src/ft2font.cpp:854: instantiated from here src/ft2font.cpp:854: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available src/ft2font.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’: src/ft2font.cpp:854: instantiated from here src/ft2font.cpp:854: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available src/ft2font.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’: src/ft2font.cpp:854: instantiated from here src/ft2font.cpp:854: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available src/ft2font.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’: src/ft2font.cpp:854: instantiated from here src/ft2font.cpp:854: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available src/ft2font.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’: src/ft2font.cpp:854: instantiated from here src/ft2font.cpp:854: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ but no definition available error: command 'gcc' failed with exit status 1 -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] abort trap
I finally got it to work. I did the compilation of matplotlib with: sudo make -f make.osx fetch deps mpl_build mpl_install sudo python setup.py install as described here: http://blog.hyperjeff.net/?p=160 The first command correctly compiled matplotlib but installed it to /usr/local. The second command incorrectly compiled matplotlib and installed it in the Framework. Copying ft2font.so over from the /usr/local installation fixed the problem "Abort trap" problem. On Tue, Jun 29, 2010 at 9:56 AM, Ranjit Chacko wrote: > I just recompiled freetype-2.4.12 and checked the version of > /usr/local/lib/libfreetype.6.dylib with otool -l: > Load command 3 > cmd LC_ID_DYLIB > cmdsize 64 > name /usr/local/lib/libfreetype.6.dylib (offset 24) >time stamp 1 Wed Dec 31 16:00:01 1969 > current version 11.0.0 > compatibility version 11.0.0 > > And I checked matplotlib's ft2font.so with otool -L: > > ft2font.so: > /usr/local/lib/libfreetype.6.dylib (compatibility version 11.0.0, > current version 11.0.0) > /usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current > version 1.2.5) > /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current > version 7.9.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 125.2.0) > /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current > version 1.0.0) > > And now that they match I get "Abort trap" on loading matplotlib.pyplot and > it looks as if ft2font.so has something to do with it: > > > Thread 0 Crashed: Dispatch queue: com.apple.main-thread > 0 libSystem.B.dylib 0x7fff84a893d6 __kill + 10 > 1 libSystem.B.dylib 0x7fff84b29972 abort + 83 > 2 libgcc_s.1.dylib 0x000100487d51 uw_init_context_1 > + 385 > 3 libgcc_s.1.dylib 0x0001004884cc _Unwind_Resume + > 76 > 4 ft2font.so0x0001017b046d > FT2Font::FT2Font(std::string) + 4269 (Extensions.hxx:629) > 5 ft2font.so0x0001017b0af8 > ft2font_module::new_ft2font( > Py::Tuple const&) + 408 (ft2font.cpp:1728) > 6 ft2font.so0x0001017b3d52 > Py::ExtensionModule::invoke_method_varargs(std::string > const&, Py::Tuple const&) + 162 (Extensions.hxx:422) > 7 ft2font.so0x0001017c25a0 > method_varargs_call_handler + 512 > > It looks like the sage developers encountered this problem and this is how > they fixed it: > http://trac.sagemath.org/sage_trac/ticket/7022 > > All it does is take the plane vanilla matplotlib-0.99.1.spkg spkg and add a > little script that simply rebuilds f2font.so again using *exactly* the same > command lines used by distutils to build that extension. That's it. For some > reason -- probably involving environment variables (?) -- this fixes the > problem. I consider this a temporary 1-sage release solution until the > matplotlib developers (or me) come up with a real fix. > > How do I rebuild f2font.so? > > > >> >> -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] abort trap
I just recompiled freetype-2.4.12 and checked the version of /usr/local/lib/libfreetype.6.dylib with otool -l: Load command 3 cmd LC_ID_DYLIB cmdsize 64 name /usr/local/lib/libfreetype.6.dylib (offset 24) time stamp 1 Wed Dec 31 16:00:01 1969 current version 11.0.0 compatibility version 11.0.0 And I checked matplotlib's ft2font.so with otool -L: ft2font.so: /usr/local/lib/libfreetype.6.dylib (compatibility version 11.0.0, current version 11.0.0) /usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) And now that they match I get "Abort trap" on loading matplotlib.pyplot and it looks as if ft2font.so has something to do with it: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x7fff84a893d6 __kill + 10 1 libSystem.B.dylib 0x7fff84b29972 abort + 83 2 libgcc_s.1.dylib 0x000100487d51 uw_init_context_1 + 385 3 libgcc_s.1.dylib 0x0001004884cc _Unwind_Resume + 76 4 ft2font.so0x0001017b046d FT2Font::FT2Font(std::string) + 4269 (Extensions.hxx:629) 5 ft2font.so0x0001017b0af8 ft2font_module::new_ft2font( Py::Tuple const&) + 408 (ft2font.cpp:1728) 6 ft2font.so0x0001017b3d52 Py::ExtensionModule::invoke_method_varargs(std::string const&, Py::Tuple const&) + 162 (Extensions.hxx:422) 7 ft2font.so0x0001017c25a0 method_varargs_call_handler + 512 It looks like the sage developers encountered this problem and this is how they fixed it: http://trac.sagemath.org/sage_trac/ticket/7022 All it does is take the plane vanilla matplotlib-0.99.1.spkg spkg and add a little script that simply rebuilds f2font.so again using *exactly* the same command lines used by distutils to build that extension. That's it. For some reason -- probably involving environment variables (?) -- this fixes the problem. I consider this a temporary 1-sage release solution until the matplotlib developers (or me) come up with a real fix. How do I rebuild f2font.so? > > -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] abort trap
I tried again by compiling version 2.4.11 of freetype instead of the latest and recompiling matplotlib with that and now I get the following less severe error: Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", line 6, in from matplotlib.figure import Figure, figaspect File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", line 18, in from axes import Axes, SubplotBase, subplot_class_factory File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", line 12, in import matplotlib.axis as maxis File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 10, in import matplotlib.font_manager as font_manager File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 52, in from matplotlib import ft2font ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/local/lib/libfreetype.6.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so Reason: Incompatible library version: ft2font.so requires version 11.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 On Mon, Jun 28, 2010 at 5:43 PM, Ranjit Chacko wrote: > I've been having some trouble with compiling matplotlib on Snow Leopard. I > managed to get rid of all my old problems by recompiling everything with > gcc-4.2. > > But now when I import matplotlib.pyplot I get an Abort trap message and > python quits. Here is part of the error message I get: > > Thread 0 Crashed: Dispatch queue: com.apple.main-thread > 0 libSystem.B.dylib 0x7fff84a893d6 __kill + 10 > 1 libSystem.B.dylib 0x7fff84b29972 abort + 83 > 2 libgcc_s.1.dylib 0x000100487d51 uw_init_context_1 > + 385 > 3 libgcc_s.1.dylib 0x0001004884cc _Unwind_Resume + > 76 > 4 ft2font.so0x0001017b046d > FT2Font::FT2Font(std::string) + 4269 (Extensions.hxx:629) > 5 ft2font.so0x0001017b0af8 > ft2font_module::new_ft2font(Py::Tuple const&) + 408 (ft2font.cpp:1728) > 6 ft2font.so0x0001017b3d52 > Py::ExtensionModule::invoke_method_varargs(std::string > const&, Py::Tuple const&) + 162 (Extensions.hxx:422) > 7 ft2font.so0x0001017c25a0 > method_varargs_call_handler + 512 > > It seems like freetype is the problem and from a little googling I see that > the sage developers also had a problem with this. Does anyone know how to > fix this? > > Thanks, > > -Ranjit > > -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] abort trap
I've been having some trouble with compiling matplotlib on Snow Leopard. I managed to get rid of all my old problems by recompiling everything with gcc-4.2. But now when I import matplotlib.pyplot I get an Abort trap message and python quits. Here is part of the error message I get: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x7fff84a893d6 __kill + 10 1 libSystem.B.dylib 0x7fff84b29972 abort + 83 2 libgcc_s.1.dylib 0x000100487d51 uw_init_context_1 + 385 3 libgcc_s.1.dylib 0x0001004884cc _Unwind_Resume + 76 4 ft2font.so0x0001017b046d FT2Font::FT2Font(std::string) + 4269 (Extensions.hxx:629) 5 ft2font.so0x0001017b0af8 ft2font_module::new_ft2font(Py::Tuple const&) + 408 (ft2font.cpp:1728) 6 ft2font.so0x0001017b3d52 Py::ExtensionModule::invoke_method_varargs(std::string const&, Py::Tuple const&) + 162 (Extensions.hxx:422) 7 ft2font.so0x0001017c25a0 method_varargs_call_handler + 512 It seems like freetype is the problem and from a little googling I see that the sage developers also had a problem with this. Does anyone know how to fix this? Thanks, -Ranjit -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Symbol not found
It didn't work. But I may have misunderstood your instructions. Here's the output from compiling matplotlib: http://pastebin.org/363870 Here's what I did. Set export CC=gcc-4.2 Set export MACOSX_DEPLOYMENT_TARGET=10.5 Downloaded and compiled libpng-1.4.3 Downloaded and compiled libfreetype-2.3.12 Downloaded matplotlib-0.99.3 Modified src/_png.cpp in matplotlib Replaced setupext.py with your version. sudo python setup.py build sudo python setup.py install Any obvious mistakes? Thanks again for your help, -Ranjit On Mon, Jun 28, 2010 at 1:05 PM, Friedrich Romstedt < friedrichromst...@gmail.com> wrote: > 2010/6/28 Ranjit Chacko : > > I just tried compiling with the following command: > > sudo make -f make.osx fetch deps mpl_build mpl_install > > I don't know, I saw now so many people running into trouble with > make.osx, would you, as a test case, please apply the following steps > to your installation: > > First, I see that the freetype is linked in statically, but still it > cannot be loaded on startup time (this _something_foobar symbol seems > the first one it attemts to load). I remember that make.osx is > intended for binary distributable generation, and therefore it links > statically. > > I want to propose a different solution here. > > Would you please modify first your matplotlib setupext.py in the > following way. We'll attemt a build without make.osx and fetch etc., > but a real distutil build with dynamic linking :-) !: > > On the line with 'darwin' : [], add: > >'darwin' : ['/usr/local'], > > and maybe also '/usr/X11/lib' or '/usr/X11' and let the /lib suffix > alone, but I think as you installed pkg-config, it could maybe work > also out of the box. For me, I were not aware of pkg-config for OS X, > so I still don't have it :-). If you are not sure, simply try to run > pkg-config in the console, by tab expansion, if it finds it, it's > installed. > > I also attach the modified files for your convenience, but you should > use diff because I built that time 0.99.1.2, and something may have > changed by that. > > Then, please compile (if you did not already do that), libpng 1.4 (not > 1.2!) and libfreetype2 from the official sources. Always use the > following environment variables: > > export CC=gcc-4.2 > (To not use 4.0 occasionally) > export MACOSX_DEPLOYMENT_TARGET=10.5 > (To avoid certain warnings which are quite annoying during build. If > you attemt to use py2app for deployment on 10.3 or 10.4 you should > modify of course.) > > It is important that you compile *all* your software which is > incorporated with the same variables. Well, at least I by accident > one time set _TARGET to another value after ./configure, and it > refused to compile then. So, feel free to experiment, but please > document properly and, most important, tell us the results! I'm still > in the ascending branch of my OS X learning curve. > > Maybe now it's the right moment to compile Python (1.6.5, I think not > 1.7) and then numpy again with this settings. For Python, use > > ./configure --enable-framework > > Then compile libfreetype2. Compile libpng 1.4 or whatever. > > Now it's time to compile matplotlib itself. Just use the usual flags, > and, for me, it worked like a charm. But one modification has to be > made: matplotlib isn't compatible with libpng 1.4 from the beginning, > please add the following lines to src/_png.cpp: > > #define png_infopp_NULL (png_infopp)NULL > #define int_p_NULL (int*)NULL > > Somewhere before the actual code, it doesn't matter where, but after > the #include of course. I also attach the file, same > applies, run diff before. It's my obligation to provide a proper > matplotlib patch for this issue, but for now please patch by hand. > > There are several reasons why to compile Python yourself: It will use > the new Tcl/Tk, which is much more beautiful than the old one. It > will compile with the compatible flags. Well that's it I think. If > you intend to use PIL btw, you have to compile Python yourself. > > Now you should be done. If you run into some problems, please tell us. > > Friedrich > -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Symbol not found
I just tried compiling with the following command: sudo make -f make.osx fetch deps mpl_build mpl_install At first it was failing almost immediately, but then I changed make.osx so that it was fetching zlib-1.2.5 and it got further but still failed. The log is at the link below: http://pastebin.org/363644 On Mon, Jun 28, 2010 at 9:36 AM, Ranjit Chacko wrote: > I edited the make.osx file also which you can see here: > http://titanpad.com/94eSOCozk4 > > > > On Mon, Jun 28, 2010 at 9:19 AM, Ranjit Chacko wrote: > >> Thanks so much for your help. I really appreciate it. >> >> This is what I get when I run otool: >> ft2font.so (architecture ppc7400): >> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version >> 1.2.3) >> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current >> version 7.9.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current >> version 88.3.11) >> /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current >> version 1.0.0) >> /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version >> 47.1.0) >> ft2font.so (architecture i386): >> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version >> 1.2.3) >> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current >> version 7.9.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current >> version 88.3.11) >> /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current >> version 1.0.0) >> >> This is the output of gcc --version: >> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) >> >> And the output of g++: >> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) >> >> I'm not really sure what the steps I followed are anymore. After things >> didn't work I just tried different things I saw described on different blogs >> or mailing list archives. >> >> I'm not sure if I used pkg-config though. I'm trying to compile matplotlib >> on 10.6. At first nothing was working, and then I downloaded Xcode again and >> checked off the option to include the 10.4 libraries, so both are present >> now. Both gcc-.40 and gcc-4.2 are present but I'm not really sure what's >> being used when. >> >> Thanks again. >> >> -Ranjit >> >> >> On Sun, Jun 27, 2010 at 2:22 PM, Friedrich Romstedt < >> friedrichromst...@gmail.com> wrote: >> >>> First, since you said you used pkg-config I would like to know what >>> libfreetype the ft2font.so lib is actually linked against. Can you >>> issue an otool -L ft2font.so in the matplotlib's directory? This will >>> tell you what libs are used. >>> >>> I think most important is the compiler used, but since you are on 10.4 >>> apparently, I don't know what the recent compiler for you is. Is it >>> gcc-4.0? (It seems to be.) Are there other gcc's around which could >>> have been used for the libfreetype2, or for Python itself? Can you >>> issue in a clean shell gcc --version, and it seems you used c++ as the >>> command for .cpp sources, right, so can you issue c++ --version too? >>> >>> And what were your steps to get it build from the weird errors you >>> posted before (I didn't get a clue from them). >>> >>> I don't know if I can help you but at least I can try to, right >>> >>> Friedrich >>> >>> 2010/6/25 Ranjit Chacko : >>> > I finally somehow managed to get matplotlib to compile but now when I >>> try to >>> > import matplotlib.pyplot I get the following error: >>> > >>> > ImportError: >>> > >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >>> > 2): Symbol not found: _FT_Attach_File >>> > Referenced from: >>> > >>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >>> > Expected in: dynamic lookup >>> >> >> > -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Symbol not found
Hi Ben, Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib developer wiki doesn't turn up anything. There isn't anything in the ~/.matplotlib directory. I just went ahead and recompiled numpy and matplotlib, and got the same error. -Ranjit On Fri, Jun 25, 2010 at 12:59 PM, Benjamin Root wrote: > Ranjit, > > There are a couple of possibilities. The first is that the TrueType fonts > packages weren't detected during the build, so matplotlib compiled without > it, leading to your issue. I have also seen an issue where your > ~/.matplotlib/ needs to be cleaned out of font-related files. Another > possibility has to do with building both numpy and matplotlib. I have found > that if I update the numpy source code and rebuild it, then I have to > rebuild matplotlib. Now that you managed to get a complete build. I would > go back and completely eliminate the build directories of matplotlib (and > numpy, if you have it), and rebuild. Build numpy first if you have that > from source, and then build matplotlib. > > So, first double-check your TrueType Font packages and see if you comply > with the dependencies listed on the developer wiki. If so, then check your > .matplotlib directory for any fontCache files and remove it. Lastly, do a > complete clean and rebuild of matplotlib (the cleaning part is very > important). > > I hope that helps, > Ben Root > > On Fri, Jun 25, 2010 at 11:56 AM, Ranjit Chacko wrote: > >> I finally somehow managed to get matplotlib to compile but now when I try >> to import matplotlib.pyplot I get the following error: >> >> Traceback (most recent call last): >> File "", line 1, in >> AttributeError: 'module' object has no attribute 'pyplot' >> >>> from matplotlib import pyplot as plot >> Traceback (most recent call last): >> File "", line 1, in >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", >> line 6, in >> from matplotlib.figure import Figure, figaspect >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", >> line 18, in >> from axes import Axes, SubplotBase, subplot_class_factory >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", >> line 12, in >> import matplotlib.axis as maxis >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", >> line 10, in >> import matplotlib.font_manager as font_manager >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", >> line 52, in >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >> 2): Symbol not found: _FT_Attach_File >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >> Expected in: dynamic lookup >> >> What is going wrong here? >> >> Thanks, >> >> -Ranjit >> >> >> >> -- >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> ___ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Symbol not found
I finally somehow managed to get matplotlib to compile but now when I try to import matplotlib.pyplot I get the following error: Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'pyplot' >>> from matplotlib import pyplot as plot Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", line 6, in from matplotlib.figure import Figure, figaspect File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", line 18, in from axes import Axes, SubplotBase, subplot_class_factory File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", line 12, in import matplotlib.axis as maxis File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 10, in import matplotlib.font_manager as font_manager File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 52, in from matplotlib import ft2font ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, 2): Symbol not found: _FT_Attach_File Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so Expected in: dynamic lookup What is going wrong here? Thanks, -Ranjit -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib-users Digest, Vol 49, Issue 66
I tried compiling matplotlib following these directions and it failed on the build step. Any idea what's going wrong here: gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/opt/local/include/freetype2 -I/opt/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o -framework Tcl -framework Tk i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: Tcl: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: -framework: linker input file unused because linking not done powerpc-apple-darwin10-gcc-4.0.1: Tk: linker input file unused because linking not done c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6/src/agg_py_transforms.o build/temp.macosx-10.3-fat-2.6/src/_tkagg.o build/temp.macosx-10.3-fat-2.6/CXX/cxx_extensions.o build/temp.macosx-10.3-fat-2.6/CXX/cxxsupport.o build/temp.macosx-10.3-fat-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-fat-2.6/CXX/cxxextensions.o -L/opt/local/lib -lstdc++ -lm -lfreetype -lz -lz -lstdc++ -lm -o build/lib.macosx-10.3-fat-2.6/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (ppc) for architecture ppc collect2: ld returned 1 exit status ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: in /opt/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (i386) for architecture i386 collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccuCbz2a.out (No such file or directory) error: command 'c++' failed with exit status 1 -- > > Message: 1 > Date: Thu, 24 Jun 2010 20:58:37 -0400 > From: Adam J Richards > Subject: Re: [Matplotlib-users] Mac OS X 10.6 dmg install (Tim Gray) > To: matplotlib-users@lists.sourceforge.net > Message-ID: <4c23ff3d.1000...@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Tim, > > From what I gather you are trying to install everything from source the > trying to install via the dmg. I did a fresh install of python, > matplotlib and a number of other packages today (on 10.6) and maybe it > would be helpful to see how to install from source. When installing > Python, be sure to use --enable-framework. I used a /usr/local prefix > though this may be somewhere else for you. > > $ wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tar.bz2 > $ tar -jxvf Python-2.6.5.tar.bz2 > $ cd Python-2.6.5 > $ ./configure --prefix=/usr/local --enable-framework > $ make > $ make install > > It appears that you have already installed numpy and so you would also > need the following: > > dateutils > $ sudo wget > http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz > $ sudo tar xzf python-dateutil-1.5.tar.gz > $ cd python-dateutil-1.5 > $ sudo /usr/local/bin/python setup.py install > > freetype > $ > > http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz > $ sudo tar xzf freetype-2.3.12.tar.gz > $ cd freetype-2.3.12 > $ sudo ./configure --prefix=/usr/local > $ sudo make > $ sudo make install > > libpng > $ sudo wget > > http://sourceforge.net/projects/libpng/files/01-li