← Back to team overview

yade-dev team mailing list archive

[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.



References