[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
ooops, sorry false alarm. I forgot to run scons to install new version of this script, hold on. -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
ok... so I installed new script. I forgot to set version=trunk so it was a full recompile ;) And now I get another error: Running script ../../yade/examples/concrete/uniax.py /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream Traceback (most recent call last): File /home/janek/tmp/ZZ/BIN/lib/yade-bzr1734/gui/PythonUI_rc.py, line 128, in module execfile(runtime.script) File ../../yade/examples/concrete/uniax.py, line 69, in module spheres=pack.randomDensePack(pack.inHyperboloid((0,0,-.5*specimenLength),(0,0,.5*specimenLength),.25*specimenLength,.2*specimenLength),spheresInCell=2000,radius=sphereRadius,memoizeDb='/tmp/triaxPackCache.sqlite',young=young,poisson=poisson,frictionAngle=frictionAngle,physParamsClass='CpmMat',density=density) File /home/janek/tmp/ZZ/BIN/lib/yade-bzr1734/py/yade/pack.py, line 267, in randomDensePack raise RuntimeError(ERROR: database,memoizeDb, not compatible with randomDensePack (deprecated format or not db created by randomDensePack)) RuntimeError: ('ERROR: database', '/tmp/triaxPackCache.sqlite', ' not compatible with randomDensePack (deprecated format or not db created by randomDensePack)') So I deleted this file /tmp/triaxPackCache.sqlite and ran the script again... And now it is running. It only printed few warnings: ja...@atak:~/tmp/ZZ/BIN/bin$ ./yade-bzr1734 ../../yade/examples/concrete/uniax.py INFO /home/janek/tmp/ZZ/yade/core/yade.cpp:266 main: Loading /home/janek/.yade-bzr1734/preferences.xml INFO /home/janek/tmp/ZZ/yade/core/yade.cpp:268 main: Loading plugins INFO gui/qt3/YadeQtMainWindow.cpp:64 YadeQtMainWindow: Loading configuration file: /home/janek/.yade-bzr1734/QtGUIPreferences.xml. Python TCP server listening on localhost:9000, auth cookie is `sdycsk' Running script ../../yade/examples/concrete/uniax.py /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream INFO pkg/common/RenderingEngine/OpenGLRenderingEngine/OpenGLRenderingEngine.cpp:68 initgl: (re)initializing GL for gldraw methods. also in the OpenGL view I see it being compressed and some circles/wire- spheres appearing and disappearing around. But after 9000 they stopped appearing around, and it is just compressing. I'll let you know when it will finish. -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
I suppose that it works now: ja...@atak:~/tmp/ZZ/BIN/bin$ rm /tmp/triaxPackCache.sqlite ja...@atak:~/tmp/ZZ/BIN/bin$ ./yade-bzr1734 ../../yade/examples/concrete/uniax.py INFO /home/janek/tmp/ZZ/yade/core/yade.cpp:266 main: Loading /home/janek/.yade-bzr1734/preferences.xml INFO /home/janek/tmp/ZZ/yade/core/yade.cpp:268 main: Loading plugins INFO gui/qt3/YadeQtMainWindow.cpp:64 YadeQtMainWindow: Loading configuration file: /home/janek/.yade-bzr1734/QtGUIPreferences.xml. Python TCP server listening on localhost:9000, auth cookie is `sdycsk' Running script ../../yade/examples/concrete/uniax.py /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream INFO pkg/common/RenderingEngine/OpenGLRenderingEngine/OpenGLRenderingEngine.cpp:68 initgl: (re)initializing GL for gldraw methods. INFO extra/PeriodicInsertionSortCollider.cpp:432 action: Loaded to 1e+11 done, going to 1e+08 now INFO pkg/common/RenderingEngine/OpenGLRenderingEngine/OpenGLRenderingEngine.cpp:68 initgl: (re)initializing GL for gldraw methods. INFO extra/PeriodicInsertionSortCollider.cpp:428 action: Finished Packing saved to the database /tmp/triaxPackCache.sqlite Timestep 1.2521980674e-06 INFO /home/janek/tmp/ZZ/yade/core/Omega.cpp:272 saveSimulation: Saving file :memory:initial init init done, will now run. INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:40 init: Setting initial length to 0.19226 (between #21 and #390) INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:64 init: Strain speed will be 0.019226, strain rate 0.1; velocities will be set directly at the beginning. INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:84 init: Stress will be updated every 79 steps. __ __ _ \ \ / /_ _| _ \ ___ / ___|___ _ __ ___ ___ | | ___ \ V / _` | | | |/ _ \ | | / _ \| '_ \/ __|/ _ \| |/ _ \ | | (_| | |_| | __/ | |__| (_) | | | \__ \ (_) | | __/ |_|\__,_|/ \___| \\___/|_| |_|___/\___/|_|\___| In [1]: 20090825T103420p3155 tension 2.89257753603e-05 299967.505565 20090825T103420p3155 tension 4.38269323642e-05 877874.455292 20090825T103420p3155 tension 5.87280893678e-05 1458510.79307 20090825T103420p3155 tension 7.36292463717e-05 2039108.81177 20090825T103420p3155 tension 8.80295241485e-05 2039108.81177 20090825T103420p3155 tension 0.000102930681152 2608309.68231 20090825T103420p3155 tension 0.000117831838156 3105548.79418 20090825T103420p3155 tension 0.000131981676319 3478610.11643 20090825T103420p3155 tension 0.000146757613516 3629749.68248 20090825T103420p3155 tension 0.000161533550713 3629749.68248 20090825T103420p3155 tension 0.000176184268104 3865066.494 20090825T103420p3155 tension 0.000189958446847 4025471.16199 20090825T103420p3155 tension 0.00020448394443 4125289.87333 20090825T103420p3155 tension 0.00021888407 4185554.4989 20090825T103420p3155 tension 0.000232908840563 4185554.4989 20090825T103420p3155 tension 0.000246432579693 4185061.20288 20090825T103420p3155 tension 0.00026083285747 4081887.81576 20090825T103420p3155 tension 0.000275233135246 3734761.59853 20090825T103420p3155 tension 0.000289257753603 3325755.76535 20090825T103420p3155 tension 0.000303031932346 3325755.76535 20090825T103420p3155 tension 0.000313174736693 3143992.54529 20090825T103420p3155 tension 0.000321063584519 2863445.39658 20090825T103420p3155 tension 0.000330955949252 2714962.53932 20090825T103420p3155 tension 0.000338844797078 2588289.81719 20090825T103420p3155 tension 0.000346733644903 2588289.81719 20090825T103420p3155 tension 0.000354497272922 2456690.91919 20090825T103420p3155 tension 0.000362386120748 2363146.17701 20090825T103420p3155 tension 0.000370274968573 2247115.25037 20090825T103420p3155 tension 0.000378289036206 2137743.83668 20090825T103420p3155 tension 0.000386428323645 2137743.83668 20090825T103420p3155 tension 0.000394442391277 2034592.31657 Damaged, switching to compression... init INFO /home/janek/tmp/ZZ/yade/core/Omega.cpp:238 loadSimulation: Loading file :memory:initial Reversing plot data init done, will now run. INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:40 init: Setting initial length to 0.19226 (between #21 and #390) INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:64 init: Strain speed will be -0.19226, strain rate -1; velocities will be set directly at the beginning. INFO pkg/dem/Engine/StandAloneEngine/UniaxialStrainer.cpp:84 init: Stress will be updated every 7 steps.
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
OK, I let it run until the end... and it produced one file (in the attachment), and an error: INFO pkg/dem/Engine/DeusExMachina/TriaxialCompressionEngine.cpp:234 applyCondition: UnbalancedForce=0.024853, rel stress 0.0048636 Packing saved to the database /tmp/triaxPackCache.sqlite Traceback (most recent call last): File /home/janek/tmp/ZZ/BIN/lib/yade-ZZ-test-fast/gui/PythonUI_rc.py, line 128, in module execfile(runtime.script) File ../../yade/examples/concrete/uniaxial/rb.py, line 68, in module bb=utils.uniaxialTestFeatures() File /home/janek/tmp/ZZ/BIN/lib/yade-ZZ-test-fast/py/yade/utils.py, line 486, in uniaxialTestFeatures dim=aabbDim(); axis=dim.index(max(dim)) AttributeError: 'tuple' object has no attribute 'index' File in the attachment. ** Attachment added: triaxPackCache.sqlite http://launchpadlibrarian.net/30714831/triaxPackCache.sqlite -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
I didn't notice anywhere (I'm blind, or is that this 2.5 incompatibility problem): 1. tensile/compressive strength 2. curve in gnuplot file -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
Janek, I mean: try again, please. -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
You should get something like this at the end: [...] 20090824T191100p10899 compression -0.00240422028947 -17908342.1724 20090824T191100p10899 compression -0.00300402316377 -11794465.9303 Damaged, stopping. Strengths fc=-2.70021e+07, ft=3.34939e+06, |fc/ft|=8.06182 gnuplot 20090824T191100p10899.gnuplot Bye. (you will have different values and the gnuplot plot might be a little bogus for concrete, but that is the public version of the CPM model). -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
The file examples/concrete/uniaxial/rb.py does not exist anymore. But instead I see there examples/concrete/uniax.py which gives following error (ah, ok, you have renamed it): Running script ../../yade/examples/concrete/uniax.py /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module pylab was already imported from /usr/lib/pymodules/python2.5/pylab.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream /usr/lib/python2.5/site-packages/pytz/__init__.py:32: UserWarning: Module matplotlib was already imported from /usr/lib/pymodules/python2.5/matplotlib/__init__.py, but /usr/lib/pymodules/python2.5 is being added to sys.path from pkg_resources import resource_stream Traceback (most recent call last): File /home/janek/tmp/ZZ/BIN/lib/yade-ZZ-test-fast/gui/PythonUI_rc.py, line 128, in module execfile(runtime.script) File ../../yade/examples/concrete/uniax.py, line 69, in module spheres=pack.randomDensePack(pack.inHyperboloid((0,0,-.5*specimenLength),(0,0,.5*specimenLength),.25*specimenLength,.2*specimenLength),spheresInCell=2000,radius=sphereRadius,memoizeDb='/tmp/triaxPackCache.sqlite',young=young,poisson=poisson,frictionAngle=frictionAngle,physParamsClass='CpmMat',density=density) File /home/janek/tmp/ZZ/BIN/lib/yade-ZZ-test-fast/py/yade/pack.py, line 266, in randomDensePack except OperationalError: NameError: global name 'OperationalError' is not defined Most strange that now it doesn't even start calculations. It errors before generating the sample. Let me know when to try again :) -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
1. Can you retry examples/concrete/uniaxia/rb.py with r1717? You compiled without GTS, right? 2. Can you try scripts/simple-scene-graph.py and type yp.plot.plot() after a while it runs? It seems like error of your matplotlib installation or the initialization. If that doesn't work, please try commenting out the matplotlib.use('TkAgg') line at the beginning of py/plot.py, or try using some of the other backends (GTKCairo and QtAgg), if that makes any difference. Thanks -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
in r1717 rb.py runs. I can see some spheres being compresses. Should I let it run for some time? python-matplotlib version 0.98.3-5 It just worked when using GTKCairo - I can see two plots. so maybe I would need to install some package to have it working with Tcl? with QtAgg it segfaults, backtrace showing a problem with qt (and nothing useful at all): (gdb) bt #0 0x7f0c1290f383 in QBoxLayout::setupGeom () from /usr/lib/libqt-mt.so.3 #1 0x7f0c129102a0 in QBoxLayout::setGeometry () from /usr/lib/libqt-mt.so.3 #2 0x7f0bd447ed19 in sipQHBoxLayout::setGeometry () from /usr/lib/pymodules/python2.5/qt.so #3 0x7f0c128cc81b in QLayout::activate () from /usr/lib/libqt-mt.so.3 #4 0x7f0c128ccaea in QLayout::eventFilter () from /usr/lib/libqt-mt.so.3 #5 0x7f0bd447f39b in sipQHBoxLayout::eventFilter () from /usr/lib/pymodules/python2.5/qt.so #6 0x7f0c12925972 in QObject::activate_filters () from /usr/lib/libqt-mt.so.3 #7 0x7f0c129259c7 in QObject::event () from /usr/lib/libqt-mt.so.3 #8 0x7f0c12956df3 in QWidget::event () from /usr/lib/libqt-mt.so.3 #9 0x7f0bd45cca6b in sipQWidget::event () from /usr/lib/pymodules/python2.5/qt.so #10 0x7f0c128d0953 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #11 0x7f0c128d162e in QApplication::notify () from /usr/lib/libqt-mt.so.3 #12 0x7f0c128d203a in QApplication::sendPostedEvents () from /usr/lib/libqt-mt.so.3 #13 0x7f0c128869dd in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #14 0x7f0c128e5001 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #15 0x7f0c128e4eb2 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #16 0x7f0be23508c7 in QtGUI::run () from /home/janek/tmp/ZZ/BIN/lib/yade-ZZ-test-fast/gui/libQtGUI.so #17 0x0047dcb7 in main () I need to leave for today. see you on monday, maybe sunday. -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
[Yade-dev] [Bug 416906] Re: some scripts possibly not compatible with python 2.5
Oh yes, let run rb.py till the very end, it should report tensile/compressive strength, save the curve to gnuplot file and exit (much faster with the optimized build). -- some scripts possibly not compatible with python 2.5 https://bugs.launchpad.net/bugs/416906 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Python 2.5 should be fully supported because it is in lenny, squeeze and hardy, which we want to support for 0.20. All scripts should be checked that they work with python 2.5. The initial report was use of itertools.product in yade.pack by Janek. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp