Be sure to have the sympy package installed before running the > Parametric Application Framework (PAF).
Yes, I have that. It was installed before the last build. ipython paf_unittest.py --> Ran 0 tests in 0.000s OK So, I tried with python2.6: python --version Python 2.6.5 Here are some test results not using ipython: python occ_unittest.py Ran 11 tests in 3.529s OK python paf_unittest.py could not find the resource:a148e300-5740-11d1-a904-080036aaa103.Location MSG:/backups-650mb/pythonocc-read-only/src/contrib/GEOM/src/GEOMImpl/GEOMImpl_IShapesOperations.cpp [142] : GEOMImpl_IShapesOperations::GEOMImpl_IShapesOperations [PAF] all operations registered [PAF] ParametricModelingContext initialized [PAF] Parameter X created [PAF] parameter: _commit value: False [PAF] Parameter Y created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b2278> > <function IsPositive at 0xa2add4c> rule: False exception raised while evaluating rule: <OCC.PAF.Parametric.Rule object at 0xa2b1e8c> the function that raised an error is: <function IsPositive at 0xa2add4c> with parameter: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b2278> > [PAF] Parameter Y created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b23f8> > <function IsPositive at 0xa2add4c> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b20f8> > <function IsPositive at 0xa2add4c> rule: True .[PAF] Parameter X created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b23f8> > <function IsPositive at 0xa2add4c> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b2578> > <function IsPositive at 0xa2add4c> rule: True [PAF] parameter: X value: 10 [PAF] parameter: X value: 10 [PAF] parameter: X value: 10 [PAF] parameter: X value: 10 .[PAF] parameter: X value: 10 [PAF] Pre-Solver callback added [PAF] Parameter X created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b23f8> > <function IsPositive at 0xa2add4c> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b26e0> > <function IsPositive at 0xa2add4c> rule: True [PAF] parameter: Y value: 5 Y :old parameter value, new parameter value: 5 26.0 error 21.0 [PAF] Parameter Y created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b2800> > <function IsPositive at 0xa2add4c> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0xa2b26e0> > <function IsPositive at 0xa2add4c> rule: True [PAF] parameter: Y value: 26.0 Y :old parameter value, new parameter value: 26.0 26.0 error 0.0 [PAF] parameter: Y value: 26.0 . ---------------------------------------------------------------------- Ran 3 tests in 0.161s OK Tests of PAF examples seem to fail: $ python test_box.py [...] [PAF] parameter: _commit value: False changed parameter p.Z2 from 28 to 29 [PAF] Parameter Z2 created [PAF] parameter: _commit value: False changed parameter p.Z2 from 29 to 30 [PAF] Parameter Z2 created python paf_smesh.py [...] R1 value: 5.2 [...] MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/StdMeshers/StdMeshers_MEFISTO_2D.cpp [273] : ... End Triangulation Generated Triangle Number 220 MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/StdMeshers/StdMeshers_MEFISTO_2D.cpp [274] : Node Number 135 MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/StdMeshers/StdMeshers_MEFISTO_2D.cpp [186] : StdMeshers_MEFISTO_2D::Compute MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/StdMeshers/StdMeshers_MEFISTO_2D.cpp [273] : ... End Triangulation Generated Triangle Number 194 MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/StdMeshers/StdMeshers_MEFISTO_2D.cpp [274] : Node Number 122 MSG:/backups-650mb/pythonocc-read-only/src/contrib/SMESH/src/SMESH/SMESH_Gen.cpp [288] : VSR - SMESH_Gen::Compute() finished, OK = 1 [...] p.Z2 and p.Y2 from 15 to 16 R1 value: 5.4 p.Z2 and p.Y2 from 16 to 17 and continues looping. Seems broken? Is that normal? John _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users