[Matplotlib-users] can't import _tkagg
= "/home/gam/packages/tcl8.5.7/lib" < #tcl_inc = "/usr/local/include" < #tk_inc = "/usr/local/include" < #tcl_lib = "/usr/local/lib" < #tk_lib = "/usr/local/lib" < #mag --- > tcl_inc = "/usr/local/include" > tk_inc = "/usr/local/include" > tcl_lib = "/usr/local/lib" > tk_lib = "/usr/local/lib" 1063,1065d1056 < #gam < tk_ver = tcl_ver = '8.5' < #mag 1633: python setup.py build = = = = BUILDING MATPLOTLIB matplotlib: 0.98.5.3 python: 2.6.2 (r262:71600, Aug 5 2009, 09:48:28) [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.3.0 freetype2: 9.7.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.7 Tkinter: Tkinter: 70220, Tk: 8.5, Tcl: 8.5 * Guessing the library and include directories for * Tcl and Tk because the tclConfig.sh and * tkConfig.sh could not be found and/or parsed. wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: no Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: 7.07 latex: 3.14159 pdftops: 3.00 1634: gcc --version gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. == Graham Mark CCS-3 Information Sciences Los Alamos National Laboratory 505-667-8147 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] can't import _tkagg
Yeow! You're right, and thanks a bunch. I saw the line about libtk not being found, of course, but I thought it was a lie. Or at least a mistake. Thanks again. On Aug 6, 2009, at 10:04 AM, Michael Droettboom wrote: > It appears to be importing _tkagg.so just fine, but it depends on > Tcl/Tk itself, notably libtk8.5.so, which it can not find. > > You can see what _tkagg.so depends on with ldd, eg.: > > > ldd ~/usr/lib/python2.5/site-packages/matplotlib/backends/_tkagg.so > libtk8.4.so => /usr/lib/libtk8.4.so (0x006c6000) > libtcl8.4.so => /usr/lib/libtcl8.4.so (0x002ce000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x005b9000) > libfreetype.so.6 => /home/mdroe/usr/lib/libfreetype.so.6 > (0x00c92000) > libz.so.1 => /usr/lib/libz.so.1 (0x00111000) > libm.so.6 => /lib/tls/libm.so.6 (0x00a15000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0046b000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00121000) > libc.so.6 => /lib/tls/libc.so.6 (0x00133000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00a7d000) > libdl.so.2 => /lib/libdl.so.2 (0x00281000) > /lib/ld-linux.so.2 (0x00bd1000) > > You may need to add the path to your libtk8.5.so to your > LD_LIBRARY_PATH (since you mention you built it yourself and put it > in a custom location) and then run ldconfig to get the dynamic > linker to find it. > > Cheers, > Mike == Graham Mark CCS-3 Information Sciences Los Alamos National Laboratory 505-667-8147 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
