[Paraview] pvpython and matplotlib

Aurélien Marsan aur.marsan at gmail.com
Tue Dec 13 05:11:25 EST 2011


I did not debug this. I just didn't called matplotlib from the python shell
or programmable filter inside Paraview...

But here is a list of points you may have to check, from the python shell
inside Paraview :

   - is the TCL_LIBRARY environment variable correctly set ?
   - is there any numpy package inside the ParaviewDir/Lib/site-package
   directory ?

That said, I had strange behavior too with the 3.10.1 64 bits version of
Paraview.
Although I could correctly import numpy and scipy, the import of
scipy.signal for example failed... I didn't find any explanation to this
until yet...

Le 12 décembre 2011 16:49, Adriano Gagliardi <agagliardi at ara.co.uk> a écrit
:

> **
> Hi Aurelian,
>
> I'm using a 64-bit build of ParaView 3.10.1 on Centos 5.4.
>
> How did you go about debugging this last time?
>
> Thanks,
>
> Adriano
>
> ===================================
>
> Adriano Gagliardi MEng PhD
> Business Sector Leader
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agagliardi at ara.co.uk
> Url: www.ara.co.uk
>
>
>  ------------------------------
> *From:* Aurélien Marsan [mailto:aur.marsan at gmail.com]
> *Sent:* 12 December 2011 15:45
> *To:* agagliardi at ara.co.uk
> *Cc:* paraview at paraview.org
> *Subject:* Re: [Paraview] pvpython and matplotlib
>
>   Good morning Adriano,
>
> All is working fine for me.
> But I remember that pyplot.show() didn't work from the paraview python
> sheel with previous release.
> It looks like you have the 2.4 verions of Python. Which Paraview version
> do you use ?
>
> Regards,
>
> Aurelien
> 2011/12/8 Adriano Gagliardi <agagliardi at ara.co.uk>
>
>>
>> Dear All,
>>
>> I am having issues getting matplotlib to work with a in-house compiled
>> version of pvpython. Although it imports fine, if I try to plot anything
>> using pyplot I exit with a segmentation fault. Likewise, when I exit
>> pvpython, I get a segmentation fault. However, when using matplotlib from
>> the standard release of Python, it all works fine. Other libraries like
>> mysql and numpy are working fine too. This is what I'm running:
>>
>> import matplotlib.pyplot as mp
>> #import pdb; pdb.set_trace()
>> mp.plot([1,2,3])
>> mp.show()
>>
>> Any suggestions what could be wrong or how to go about solving it? I've
>> noticed the -v/-vv flags don't work with pvpython, or -h for that matter.
>> I'm at least finding the point at which I get the segmentation fault, but
>> I
>> can't make head nor tail of it:
>>
>> (Pdb) s
>> > /usr/lib64/python2.4/site-packages/matplotlib/transforms.py(286)zero()
>> -> def zero(): return Value(0)
>> (Pdb) s
>> --Return--
>> >
>>
>> /usr/lib64/python2.4/site-packages/matplotlib/transforms.py(286)zero()-><Bin
>> Op o...1ce469a8> <--- it gives a segmentation fault before this line
>> -> def zero(): return Value(0)
>>
>> All suggestions greatly appreciated.
>>
>> Thanks,
>>
>> Adriano
>>
>> ===================================
>>
>> Adriano Gagliardi MEng PhD
>> Business Sector Leader
>> Computational Aerodynamics
>> Aircraft Research Association Ltd.
>> Manton Lane
>> Bedford
>>
>> Tel: 01234 32 4644
>> E-mail: agagliardi at ara.co.uk
>> Url: www.ara.co.uk
>>
>>
>> **********************************************************************
>> This email contains information that is private and confidential and is
>> intended only for the addressee.
>> If you are not the intended recipient please delete it and notify us
>> immediately by e-mailing the sender.
>> Note: All email sent to or from this address may be accessed by someone
>> other than the recipient, for
>> system management and security reasons.
>> Aircraft Research Association Ltd.  Registered in England, Registration
>> No 503668 Registered Office:
>> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>>
>> **********************************************************************
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
> **********************************************************************
> This email contains information that is private and confidential and is
> intended only for the addressee.
> If you are not the intended recipient please delete it and notify us
> immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone
> other than the recipient, for
> system management and security reasons.
> Aircraft Research Association Ltd.  Registered in England, Registration No
> 503668 Registered Office:
> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>
> **********************************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20111213/64bf1ae2/attachment.htm>


More information about the ParaView mailing list