Paul, I did so and it continued to work fine. I'm wondering whether it is related to the TCL_LIBRARY variable not being set. Off to recompile it to find out. Thanks, Adriano
=================================== Adriano Gagliardi MEng PhD Business Sector Leader Computational Aerodynamics Aircraft Research Association Ltd. Manton Lane Bedford Tel: 01234 32 4644 E-mail: [email protected] Url: www.ara.co.uk _____ From: Paul Edwards [mailto:[email protected]] Sent: 14 December 2011 14:41 To: [email protected] Cc: [email protected]; Aurélien Marsan Subject: RE: [Paraview] pvpython and matplotlib Does the system python also crash if you set the library path to have the paraview directories? If this is the case you probably gave a conflicting lib in paraview. On 14 Dec 2011 14:32, "Adriano Gagliardi" <[email protected]> wrote: System version is identical. The environment variables are identical with the exception of those relating to window ids. LD_LIBRARY_PATH has changed, but when running ParaView two directories, the paths to the ParaView root and lib directories, have been added to the start. Nothing else is different. Aurelian, TCL_LIBRARY path is set, but I didn't configure this option when compiling ParaView itself. I have numpy in the correct directory location. Thanks, Adriano =================================== Adriano Gagliardi MEng PhD Business Sector Leader Computational Aerodynamics Aircraft Research Association Ltd. Manton Lane Bedford Tel: 01234 32 4644 E-mail: [email protected] Url: www.ara.co.uk _____ From: Paul Edwards [mailto:[email protected]] Sent: 13 December 2011 17:50 To: [email protected] Cc: Aurélien Marsan; [email protected] Subject: Re: [Paraview] pvpython and matplotlib Try comparing environment variables (import os and compare os.environ) In order to check the version print sys.version (after import sys) Regards, Paul 2011/12/12 Adriano Gagliardi <[email protected]> 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: [email protected] Url: www.ara.co.uk _____ From: Aurélien Marsan [mailto:[email protected]] Sent: 12 December 2011 15:45 To: [email protected] Cc: [email protected] 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 <[email protected]> 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: [email protected] Url: www.ara.co.uk <http://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 <http://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 ********************************************************************** _______________________________________________ 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 ********************************************************************** ********************************************************************** 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
