[Bug 1266605] Re: matplotlib crashes after recent tcl/tk update

David Murphy 1266605 at bugs.launchpad.net
Wed Aug 20 22:22:48 UTC 2014


Hi Sandro,

Are you sure? After an initial apt-get purge, I checked, and indeed
/usr/local/lib/python2.7/dist-packages/matplotlib/ remained in place as
you imply. I then moved matplotlib* in the above directory out of the
way, and sure enough python then fails to import. When I re-install
however, it is placed in exactly this directory:

david at spengler:~$ python -c "import matplotlib; print matplotlib"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named matplotlib


david at spengler:~$ sudo apt-get install python-matplotlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdb5.1-java-jni
Use 'apt-get autoremove' to remove it.
Suggested packages:
  python-excelerator python-matplotlib-doc python-nose python-tornado
  python-traits ttf-staypuft
The following NEW packages will be installed:
  python-matplotlib
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/1,421 kB of archives.
After this operation, 7,837 kB of additional disk space will be used.
Selecting previously unselected package python-matplotlib.
(Reading database ... 509799 files and directories currently installed.)
Preparing to unpack .../python-matplotlib_1.3.1-1ubuntu5_amd64.deb ...
Unpacking python-matplotlib (1.3.1-1ubuntu5) ...
Setting up python-matplotlib (1.3.1-1ubuntu5) ...
Processing triggers for python-support (1.0.15) ...


david at spengler:~$ python -c "import matplotlib; print matplotlib"
<module 'matplotlib' from '/usr/lib/pymodules/python2.7/matplotlib/__init__.pyc'>

david at spengler:~$ sudo apt-get purge python-matplotlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdb5.1-java-jni
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  python-matplotlib*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 7,837 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 510097 files and directories currently installed.)
Removing python-matplotlib (1.3.1-1ubuntu5) ...
Processing triggers for python-support (1.0.15) ...


david at spengler:~$ python -c "import matplotlib; print matplotlib"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named matplotlib

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1266605

Title:
  matplotlib crashes after recent tcl/tk update

Status in “matplotlib” package in Ubuntu:
  Fix Released

Bug description:
  matplotlib now segfaults after last weeks tcl/tk update.

  See attach script to reproduce crash

  Exception in Tkinter callback
  Traceback (most recent call last):
    File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1482, in __call__
      return self.func(*args)
    File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 276, in resize
      self.show()
    File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 349, in draw
      tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
    File "/usr/lib/pymodules/python2.7/matplotlib/backends/tkagg.py", line 20, in blit
      tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox_array))
  TclError

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: python-matplotlib 1.3.1-1ubuntu2
  ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
  Uname: Linux 3.12.0-7-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.12.7-0ubuntu3
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Jan  7 11:02:40 2014
  InstallationDate: Installed on 2012-09-23 (470 days ago)
  InstallationMedia: Ubuntu GNOME Remix 12.10 "Quantal Quetzal" - Alpha amd64(20120922)
  SourcePackage: matplotlib
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/1266605/+subscriptions



More information about the Ubuntu-sponsors mailing list