Backend problem

Hi all,

How can I resolve the following backend problem ?
What are the default library and include directories for tcl and tk ?
Where should I define DISPLAY in that context ?

python setup.py build --help

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.7
                Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
                         * Using default library and include directories for
                         * Tcl and Tk because a Tk window failed to open.
                         * You may need to define DISPLAY for Tk to work so
                         * that setup can determine where your libraries are
                         * located.

Any pointer would be appreciated.

  Nils

What platform are you on?

There is apparently no good way to find the path to the Tcl/Tk header files. The setup script currently tries to import Tkinter, and create a window, in order to make an API call that returns the path. (Crazy, I know). Therefore, if it can't create a window (for example you're on a remote terminal without X forwarding), this will fail. In that case, matplotlib uses a hardcoded path to Tcl/Tk which is platform-specific. Does it fail to compile the TkAgg backend later on? If so, can you send the compiler output message? That will at least show us where it is looking for the Tcl/Tk header files.

Note that different versions of Tcl/Tk and different Linux distributions put these files in different places, so it's a constant battle to keep up with the hardcoded paths. If you're running the latest Whiz-bang Linux Alpha, or something, that might explain it.

Mike

Nils Wagner wrote:

···

Hi all,

How can I resolve the following backend problem ?
What are the default library and include directories for tcl and tk ?
Where should I define DISPLAY in that context ?

python setup.py build --help

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.7
                Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
                         * Using default library and include directories for
                         * Tcl and Tk because a Tk window failed to open.
                         * You may need to define DISPLAY for Tk to work so
                         * that setup can determine where your libraries are
                         * located.

Any pointer would be appreciated.

  Nils
  
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA