[Bug 752647] [NEW] "import pylab" in a python console flags error "No module named _tkagg"

Launchpad Bug Tracker 752647 at bugs.launchpad.net
Thu Apr 7 21:08:04 UTC 2011


You have been subscribed to a public bug by Julian Taylor (jtaylor):

I upgraded from Maverick to Natty Beta 1 yesterday evening. Upon firing
up a python console and issuing "import pylab" I get the following
error:

manjul at chaar:~$ python
Python 2.7.1+ (r271:86832, Mar 24 2011, 00:39:14) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/pymodules/python2.7/matplotlib/pylab.py", line 247, in <module>
    from matplotlib.pyplot import *
  File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 78, in <module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/__init__.py", line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 8, in <module>
    import tkagg                 # Paint image to Tk photo blitter extension
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/tkagg.py", line 1, in <module>
    import _tkagg
ImportError: No module named _tkagg
>>> 

The module was fully functional before the upgrade. All python packages
have been installed from the repos and there has been no customization
so far.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: python-matplotlib 0.99.3-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.40-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Wed Apr  6 11:45:56 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: matplotlib
UpgradeStatus: Upgraded to natty on 2011-04-06 (0 days ago)

** Affects: matplotlib (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: apport-bug i386 natty
-- 
"import pylab" in a python console flags error "No module named _tkagg"
https://bugs.launchpad.net/bugs/752647
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list