No qt4agg backends running on example file

Hi,

I am using Ubuntu 10.10, and installed matplotlib from the
repository. But when running an example file embedding plot in Qt4 I
got the following errors:

[11:34 PM] $ python embedding_in_qt4.py
Traceback (most recent call last):
File "embedding_in_qt4.py", line 16, in <module>
   from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
as FigureCanvas
ImportError: No module named backends.backend_qt4agg

Any extra steps for installing Qt4Agg backend ?

Thanks !

Best regards,
Forest

Essentially, I am having the same problem but installed from SVN. How do you install extra backends? I haven't seen where to do this. Although I want the TKAgg but I have installed TK/TCL.

I am running 10.04 Ubuntu.

Cheers,
Jeff

···

On 02/18/2011 03:37 PM, Forest Yang wrote:

Hi,

  I am using Ubuntu 10.10, and installed matplotlib from the
repository. But when running an example file embedding plot in Qt4 I
got the following errors:

[11:34 PM] $ python embedding_in_qt4.py
Traceback (most recent call last):
  File "embedding_in_qt4.py", line 16, in<module>
    from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
as FigureCanvas
ImportError: No module named backends.backend_qt4agg

Any extra steps for installing Qt4Agg backend ?

Thanks !

Best regards,
Forest

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Essentially, I am having the same problem but installed from SVN. How do
you install extra backends? I haven't seen where to do this. Although I
want the TKAgg but I have installed TK/TCL.

Do you have the python-tk package installed? If not, then after installing it you will need to rebuild mpl, since there is an extension module for tk.

I am running 10.04 Ubuntu.

Cheers,
Jeff

Hi,

   I am using Ubuntu 10.10, and installed matplotlib from the
repository. But when running an example file embedding plot in Qt4 I
got the following errors:

[11:34 PM] $ python embedding_in_qt4.py
Traceback (most recent call last):
   File "embedding_in_qt4.py", line 16, in<module>
     from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
as FigureCanvas
ImportError: No module named backends.backend_qt4agg

Any extra steps for installing Qt4Agg backend ?

Try installing the python-qt4 package. There is no extension code for the qt* backends, so I suspect this is all you need.

Eric

···

On 02/17/2011 06:41 PM, Jeffrey Spencer wrote:

On 02/18/2011 03:37 PM, Forest Yang wrote:

Thanks !

Best regards,
Forest

When I bold it doesn’t find Tkinter could this be the issue?? I have python-tk already installed. It finds it fine when I install the Debian package but not when I get it from SVN.

Cheers,
Jeff

Code below is from build:

BUILDING MATPLOTLIB
matplotlib: 1.1.0svn
python: 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC
4.4.3]
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: 9.22.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.42
Tkinter: no
* 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. Tkinter present, but header files are not
* found. You may need to install development
* packages.
pkg-config: looking for pygtk-2.0 gtk±2.0
* Package pygtk-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing pygtk-2.0.pc' to the PKG_CONFIG_PATH * environment variable No package 'pygtk-2.0' found * Package gtk+-2.0 was not found in the pkg-config * search path. Perhaps you should add the directory * containinggtk±2.0.pc’ to the PKG_CONFIG_PATH
* environment variable No package ‘gtk±2.0’ found
* You may need to install ‘dev’ package(s) to
* provide header files.
Gtk+: no
* Could not find Gtk+ headers in any of
* ‘/usr/local/include’, ‘/usr/include’, ‘.’
Mac OS X native: no
Qt: no
Qt4: Qt: 4.6.2, PyQt4: 4.7.2
Cairo: 1.8.8

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.5
pytz: 2010o

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.12
ghostscript: 8.71
latex: 3.1415926
pdftops: 0.12.4

[Edit setup.cfg to suppress the above messages]

···

============================================================================
pymods [‘pylab’]
packages [‘matplotlib’, ‘matplotlib.backends’, ‘matplotlib.backends.qt4_editor’, ‘matplotlib.projections’, ‘matplotlib.testing’, ‘matplotlib.testing.jpl_units’, ‘matplotlib.tests’, ‘mpl_toolkits’, ‘mpl_toolkits.mplot3d’, ‘mpl_toolkits.axes_grid’, ‘mpl_toolkits.axes_grid1’, ‘mpl_toolkits.axisartist’, ‘matplotlib.sphinxext’, ‘matplotlib.tri’, ‘matplotlib.delaunay’]
running build
running build_py
copying lib/matplotlib/mathtext.py -> build/lib.linux-x86_64-2.6/matplotlib
copying lib/matplotlib/backends/backend_svg.py -> build/lib.linux-x86_64-2.6/matplotlib/backends
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-x86_64-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-x86_64-2.6/matplotlib/mpl-data
copying lib/matplotlib/tests/baseline_images/test_axes/canonical.svg -> build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_axes
copying lib/matplotlib/tests/baseline_images/test_axes/canonical.pdf -> build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_axes
copying lib/matplotlib/tests/baseline_images/test_axes/canonical.png -> build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_axes
copying lib/matplotlib/tests/baseline_images/test_image/image_interps.pdf -> build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_image
running build_ext

On Fri, Feb 18, 2011 at 5:48 PM, Eric Firing <efiring@…202…> wrote:

On 02/17/2011 06:41 PM, Jeffrey Spencer wrote:

Essentially, I am having the same problem but installed from SVN. How do

you install extra backends? I haven’t seen where to do this. Although I

want the TKAgg but I have installed TK/TCL.

Do you have the python-tk package installed? If not, then after

installing it you will need to rebuild mpl, since there is an extension

module for tk.

I am running 10.04 Ubuntu.

Cheers,

Jeff

On 02/18/2011 03:37 PM, Forest Yang wrote:

Hi,

I am using Ubuntu 10.10, and installed matplotlib from the

repository. But when running an example file embedding plot in Qt4 I

got the following errors:

[11:34 PM] $ python embedding_in_qt4.py

Traceback (most recent call last):

File “embedding_in_qt4.py”, line 16, in

 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg

as FigureCanvas

ImportError: No module named backends.backend_qt4agg

Any extra steps for installing Qt4Agg backend ?

Try installing the python-qt4 package. There is no extension code for

the qt* backends, so I suspect this is all you need.

Eric

Thanks !

Best regards,

Forest


The ultimate all-in-one performance toolkit: Intel® Parallel Studio XE:

Pinpoint memory and threading errors before they happen.

Find and fix more than 250 security defects in the development cycle.

Locate bottlenecks in serial and parallel code that limit performance.

http://p.sf.net/sfu/intel-dev2devfeb


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

When I bold it doesn't find Tkinter could this be the issue??

I can't parse that.

I have
python-tk already installed. It finds it fine when I install the Debian
package but not when I get it from SVN.

Cheers,
Jeff

Code below is from build:

BUILDING MATPLOTLIB
matplotlib: 1.1.0svn
python: 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC
4.4.3]
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: 9.22.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.42
Tkinter: no
* 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. Tkinter present, but header files are not
* found. You may need to install development
* packages.

You need to install the Tk development packages.

···

On Fri, Feb 18, 2011 at 4:21 AM, Jeffrey Spencer <jeffspencerd@...287...> wrote: