You are not logged in.

#1 2011-04-01 15:08:55

L1011
Member
Registered: 2011-04-01
Posts: 1

Python-matplotlib: segmentation fault error

Hi All!

I'm new an the forum and for my first post I'd like to be expose an issue that I face with the matplotlib tool of python. More precisely, I recently used the apt package to install python, nympy and matplotlib on a linux 64b computer. Everything seemed to be working well expect that when I try to import matplotlib (import matplotlib.pyplot as m for eg.) I get a segmentation fault error.

I´ve been trough several forums trying to apply their suggestions but I could not overcome this issues. Do anybody can give me insight on how to fix this?
Thank you and have a good week-end!

L1011

Offline

#2 2011-06-14 16:31:56

mitch_feaster
Member
From: San Diego, CA
Registered: 2011-02-27
Posts: 55
Website

Re: Python-matplotlib: segmentation fault error

Honestly I'm not familiar with apt on arch, but if you're comfortable installing software from AUR you can try the package build I just cooked up for matplotlib with python3 support:

http://aur.archlinux.org/packages.php?ID=49810

(I'm assuming you were trying to get python3 support, else you would have just installed python2-matplotlib with pacman...)

Offline

#3 2011-06-29 13:46:46

CrazyScientist
Member
From: Lappersdorf, Germany
Registered: 2011-06-29
Posts: 3
Website

Re: Python-matplotlib: segmentation fault error

Hi there,
I was using python-matplotlib (installed with pacman) on Arch 64bit for some time successfully.
But since yesterday I get a seg fault when matplotlib tries to display something using any backend based on GTK.
Backends using Tk or Qt are working.

I also tried to download sources and compile, but that did not solve the problem.

Any ideas? Thanks

Offline

#4 2011-10-31 10:41:50

dejakaymac
Member
Registered: 2011-10-19
Posts: 9

Re: Python-matplotlib: segmentation fault error

In case you haven't gotten to the bottom of this, I recently had exactly the same problem and fixed it by commenting out line 522

self.toolbar.destroy()

in

/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py

Offline

#5 2011-11-13 17:09:07

cvarin
Member
Registered: 2010-11-05
Posts: 7

Re: Python-matplotlib: segmentation fault error

Hi guys,

commenting a line out can fix the thing but you never know the impact such an action can really have. I suggest instead to update the gtk2 package. The problem has been reported on matplotlib forums and it seems it was fixed in gtk2-2.24.8-1.

http://www.mail-archive.com/matplotlib- … 22465.html

Offline

Board footer

Powered by FluxBB