Hi Thomas,
thanks for your reply. > I guess you ran your tests from the latest rev. of the svn trunk (r1105), right? Yes, Revision: 1105. > -generate-swig-files is not a valid option for the installer script. Rather use python generate_swig_files.py I appended a corresponding comment in the wiki (http://code.google.com/p/pythonocc/wiki/InstallationLinux), it seems to be not quite up-to-date in that respect. > The generate_swig_files.py script parses OpenCascade headers to build the *.i SWIG files. It requires indeed pyplusplus, pygccxml and gccxml. However, each time I modify this script, I take care that the folders named /wrapper/SWIG/win32 and /wrapper/SWIG/linux_darwin are sync with these modification. You mean there is no need to run this on my own? I somehow thought it may help with my missing gfortran library issue, that's why I ran it. But it seems as if it's not necessary. > Does it work with this fix? In my opinion, the linker should rather link libgfortran to libSMESH. I thought the CMake script automatically links libSMESH to the right gfortran library according to the fortran compiler you use. Which version of CMake did you install on your machine? Yes, it seems to work. I don't know the details of the linking process and why this or the other works. I assume that my workaround is not the best solution since it links libgfortran to every library (I think). I think, my CMake is the ordinary package supplied by Debian Lenny. It's "Package: cmake, Version: 2.6.0-6". According to `cmake -version` it's "cmake version 2.6-patch 4". > A few other unittests were recently added. You can run all the tests with the test_all.py script (64 tests are available). What is the output on your Debian install ? Unfortunately of those extra tests not all work. I guess the reason might just be a sympy version that is somehow outdated. It is the default Debian Lenny package with a version number of 0.6.1-1. I don't have time to check that now, unfortunately. Here is some part of the output: --- snip --- [...] test_Rule_simple (paf_unittest.TestPAF) ... [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 0x58c2010> > <function IsPositive at 0x49d8aa0> rule: False exception raised while evaluating rule: <OCC.PAF.Parametric.Rule object at 0x55a3a50> the function that raised an error is: <function IsPositive at 0x49d8aa0> with parameter: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0x58c2010> > [PAF] Parameter Y created [PAF] parameter: _commit value: False param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0x480be10> > <function IsPositive at 0x49d8aa0> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0x58c1fe0> > <function IsPositive at 0x49d8aa0> rule: True ok [...] test_relation_sympy (paf_unittest.TestPAF) ... [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 0x480be10> > <function IsPositive at 0x49d8aa0> rule: True param, func: <OCC.PAF.Parametric.Parameter; proxy of <Swig Object of type 'GEOM_Parameter *' at 0x4163fe0> > <function IsPositive at 0x49d8aa0> rule: True error evaluating relation relation: 1 + X**2 ERROR [...] ====================================================================== ERROR: test_relation_sympy (paf_unittest.TestPAF) ---------------------------------------------------------------------- Traceback (most recent call last): File "/work/gero/top-secret-projects/opencascade/pythonOCC-0.4-svn2010_09_21/src/ unittest/paf_unittest.py", line 48, in test_relation_sympy p.X = 5 File "/usr/lib/python2.5/site-packages/OCC/PAF/Parametric.py", line 215, in __setattr__ self.context.set_parameter(name,value, self._commit) File "/usr/lib/python2.5/site-packages/OCC/PAF/Context.py", line 340, in set_parameter pre_solver_callback() File "/usr/lib/python2.5/site-packages/OCC/PAF/Parametric.py", line 80, in eval new_parameter_value = self._relation.evalf(subs=_subs, n=10) #require sympy library TypeError: evalf() got an unexpected keyword argument 'subs' ====================================================================== FAIL: test_curves3d_from_points (geometry_unittest.TestGeometry) ---------------------------------------------------------------------- Traceback (most recent call last): File "/work/gero/top-secret-projects/opencascade/pythonOCC-0.4-svn2010_09_21/src/ unittest/geometry_unittest.py", line 406, in test_curves3d_from_points self.assertTrue(anInterpolation.IsDone()) AssertionError ---------------------------------------------------------------------- Ran 64 tests in 1.017s FAILED (failures=1, errors=1) --- snap --- Gero
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users