From: Alexander K. <ak...@na...> - 2012-11-22 09:57:50
|
Hi Subha, thanks for your explanations! >> 3) help(moose) crashes with 'Segmentation fault' message >> help(moose.connect) and moose.doc(moose.Compartment) work fine >> > [...] > The only solution I could find till now makes it impossible to use "from > moose import *" and use the MOOSE classes. This is very common practice in > spite of being frowned upon by the Python style guides. So we need more > work to track it down. Yes, this works: from moose import * help(moose) help(moose.connect) moose.doc(moose.Compartment) >> This is after creating link libhdf5.so.6->libhdf5.so; same happens >> on another machine which runs source-build moose and doesn't need >> that workaround. >> > > Is that a release or a debug build? The default, i.e. 'release'. Here is my build script (where PKG is a stage directory): build() { sed -i -e 's/pymoose: CXX.*/& -I$(shell python -c "import numpy; print numpy.get_include()")/' \ -e 's/.*HOME.*/#&/' \ -e 's/.*update-icon-caches.*/#&/' \ Makefile make SVN=0 || exit make DESTDIR=$PKG install || exit rm -v $PKG/usr/bin/moosegui ln -sv ../share/moose/gui/MooseGUI.py $PKG/usr/bin/moosegui rm -rv $PKG/usr/share/{applications,doc,moose/Demos} } Regards, Alex. |