← Back to team overview

yade-dev team mailing list archive

[Bug 416906] Re: some scripts possibly not compatible with python 2.5

 

I bzr upped:
janek@atak:~/tmp/ZZ/yade$ bzr up
 M  py/pack.py
All changes applied successfully.
Updated to revision 1734.

unfortunately the error is the same...:

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-bzr1733/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-bzr1733/py/yade/pack.py", line 266, in randomDensePack
    except OperationalError:
NameError: global name 'OperationalError' is not defined

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