You are not logged in.

#1 2007-05-07 17:06:14

Titus
Member
From: Izmir
Registered: 2006-05-11
Posts: 120
Website

matplotlib and segmentation fault

i am using python 2.5 and i've install python-matplotlib adn all its depencies by using pacman.  but i didn't work properly.

from pylab import *
plot([1,2,3])
show()

this code is tutorial about matplotlib but when i use this codes it always return me as a segmentation fault, after all i tried python tut.py --verbose-helpful  command to learn problem but i noticed any problem.

[titus@blackbox ~]$ python tut.py --verbose-helpful
matplotlib data path
/usr/lib/python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/titus
CONFIGDIR=/home/titus/.matplotlib
loaded rc file
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.90.0
verbose.level helpful
interactive is False
platform is linux2
numerix Numeric 24.2
font search path
['/usr/lib/python2.5/site-packages/matplotlib/mpl-data']
loaded ttfcache file /home/titus/.matplotlib/ttffont.cache
backend TkAgg version 8.4
Segmentation fault

do you have any ideas about this? how can i fix this?


In a world without walls,who need windows?

Offline

#2 2007-05-08 15:36:10

Titus
Member
From: Izmir
Registered: 2006-05-11
Posts: 120
Website

Re: matplotlib and segmentation fault

I'm still waiting for your advice, please it's important for my final project.


In a world without walls,who need windows?

Offline

#3 2007-05-16 17:33:57

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: matplotlib and segmentation fault

Hi Titus,
I had the same problem. python-matplotlib from community is built against Numeric and not numpy. I think it should be numpy since everything else is dead.
Also, it uses TkAgg as its default backend. The one I prefer is GTKAgg. Try to set this in /usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc (line 29)

If that doesn't work, try recompiling matplotlib. See my comments in AUR's entry for this http://aur.archlinux.org/packages.php?d … =1&ID=9133

Good luck.

Offline

#4 2007-05-16 21:43:53

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: matplotlib and segmentation fault

Recompiling python-mathplot does not work currently, since the bindings used are not compatible with wxPython 2.8. That's probably also the compiled segmentation fault, since the wxString/wxImage pointer conversion done by SWIG, which isn't supported anymore.

I've played around yesterday patching it, but didn't get far enough, simply didn't have enough time.

//STi

Last edited by STiAT (2007-05-16 21:44:50)


Ability is nothing without opportunity.

Offline

#5 2007-05-16 23:01:14

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: matplotlib and segmentation fault

STiAT wrote:

Recompiling python-mathplot does not work currently

It does here. Using GTKAgg and numpy as backend.

Offline

#6 2007-05-17 07:38:32

nv
Member
Registered: 2006-10-24
Posts: 39

Re: matplotlib and segmentation fault

I would also like to see matplotlib recompiled, therefore I have written a bug report: http://bugs.archlinux.org/task/7183

Maybe if anyone provided a modified PKGBUILD to the bugtracker, the process would be faster. wink

Offline

#7 2007-05-17 14:46:54

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: matplotlib and segmentation fault

Romashka closed the bug #7183
I don't know the reason.

You can see on the aur's entry a modified package and a patch for numpy+GTKAgg (see my comment)

Offline

Board footer

Powered by FluxBB