I have gotten a bit further.

But I seem to have some troubles. If you can give me any advice, I will
appreciate it

I tried running the src/Examples/Geometry/airfoil.py which fails, I have
attached the output as pyocc_debug.txt
python test_all.py in src/unittest has some errors, I have attached the
output as pyocc_debug2.txt

Sincerely
Michael


On Wed, Dec 18, 2013 at 10:45 AM, jelle feringa <jelleferi...@gmail.com>wrote:

>
> > would mean 0.12 or newer :)
>
> i agree this is ambivalent
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
[mkl@compute-1-19 Geometry]$ python airfoil.py
Traceback (most recent call last):
  File "airfoil.py", line 104, in <module>
    display, start_display, add_menu, add_function_to_menu = init_display()
  File "/opt/anaconda/lib/python2.7/site-packages/OCC/Display/SimpleGui.py", 
line 185, in init_display
    display.SetBackgroundImage(get_bg_abs_filename())
  File "/opt/anaconda/lib/python2.7/site-packages/OCC/Display/OCCViewer.py", 
line 180, in SetBackgroundImage
    if (Stretch):
NameError: global name 'Stretch' is not defined

[mkl@compute-1-19 unittest]$ python test_all.py                           
Ignoring PAF unittests
testAutoImportOfDependentModules (wrapper_features_unittest.TestWrapperFeatures)
when a module returns an object defined in another module, ... Test: automatic 
import of dependent modules
ok
testDict (wrapper_features_unittest.TestWrapperFeatures) ... Test: python dicts
ok
testDumpToString (wrapper_features_unittest.TestWrapperFeatures) ... Test: 
pickling of TopoDS_Shapes
ok
testFT1 (wrapper_features_unittest.TestWrapperFeatures) ... Test: 
Standard_Integer & by reference transformator
ok
testHash (wrapper_features_unittest.TestWrapperFeatures) ... Test: __hash__ 
overloading
ok
testHashEqOperator (wrapper_features_unittest.TestWrapperFeatures)
test that the == wrapper is ok ... ERROR
testList (wrapper_features_unittest.TestWrapperFeatures) ... Test: python lists
ok
testNEqOperator (wrapper_features_unittest.TestWrapperFeatures)
test that the != wrapper is ok ... ok
testProtectedConstructor (wrapper_features_unittest.TestWrapperFeatures)
test if the classes with protected constructors can be created ... Test: 
protected constructor
ok
testRemovedByRefFeature (wrapper_features_unittest.TestWrapperFeatures)
test that arguments returned by ref transormation is ok ... First point coords 
:  (40.0, 0.0, 0.0)
(40.0, 0.0, 0.0)
ok
testStandardBooleanByRefPassedReturned 
(wrapper_features_unittest.TestWrapperFeatures) ... Test: Standard_Boolean & by 
reference transformator
ok
testStandardIntegerByRefPassedReturned 
(wrapper_features_unittest.TestWrapperFeatures) ... Test: Standard_Integer & by 
reference transformator
ok
testStaticMethod (wrapper_features_unittest.TestWrapperFeatures) ... Test : 
wrapper for C++ static methods
ok
testSubClass (wrapper_features_unittest.TestWrapperFeatures) ... Test: subclass
ok
testTopoDS_ShapeOperators (wrapper_features_unittest.TestWrapperFeatures) ... ok
testTopology (wrapper_features_unittest.TestWrapperFeatures) ... Test: Topology
ok
test_axis (geometry_unittest.TestGeometry) ... Test: axis
ok
test_bezier_surfaces (geometry_unittest.TestGeometry) ... Test: Bezier surfaces
ok
test_bspline (geometry_unittest.TestGeometry) ... Test: bspline
ok
test_circles2d_from_curves (geometry_unittest.TestGeometry) ... Test: circles2d 
from curves
ok
test_curves2d_from_curves (geometry_unittest.TestGeometry) ... Test: curves 2d 
from curves
ok
test_curves2d_from_offset (geometry_unittest.TestGeometry) ... Test: curves 2d 
from offset
ok
test_distances (geometry_unittest.TestGeometry) ... Test: distances
ok
test_parabola (geometry_unittest.TestGeometry) ... Test: parabola
ok
test_pipes (geometry_unittest.TestGeometry) ... Test: pipes
ok
test_point_from_curve (geometry_unittest.TestGeometry) ... Test: point from 
curve
ok
test_point_from_projections (geometry_unittest.TestGeometry) ... Test: point 
from projections
ok
test_points_from_intersection (geometry_unittest.TestGeometry) ... Test: points 
from intersection
ok
test_project_point_on_curve (geometry_unittest.TestGeometry) ... Test: project 
point on curve
Q1: at Distance :4.079132288244904
Q2: at Distance :7.833305801192616
ok
test_surface_from_curves (geometry_unittest.TestGeometry) ... Test: surfaces 
from curves
ok
test_surfaces_from_offsets (geometry_unittest.TestGeometry) ... Test: surfaces 
from offsets
ok
test_surfaces_from_revolution (geometry_unittest.TestGeometry) ... Test: 
surfaces from revolution
ok
test_draft_angle (topology_building_unittest.TestTopologyBuilding) ... Test: 
draft angle
direction (1.0, 0.0, -0.0)
ERROR
test_edge (topology_building_unittest.TestTopologyBuilding) ... Test: edge
ERROR
test_evolved_shape (topology_building_unittest.TestTopologyBuilding) ... Test: 
evolved shape
ok
test_face (topology_building_unittest.TestTopologyBuilding) ... Test: face
ERROR
test_prism (topology_building_unittest.TestTopologyBuilding) ... Test: prism
ok
test_through_sections (topology_building_unittest.TestTopologyBuilding) ... 
Test: through sections
ok
test_wire (topology_building_unittest.TestTopologyBuilding) ... Test: wire
ERROR
test_edge_face (topology_unittest.TestTopology) ... ok
test_edge_wire (topology_unittest.TestTopology) ... ok
test_edges_out_of_scope (topology_unittest.TestTopology) ... ok
test_face_solid (topology_unittest.TestTopology) ... ok
test_kept_reference (topology_unittest.TestTopology)
did we keep a reference after looping several time through a list ... ok
test_nested_iteration (topology_unittest.TestTopology)
check nested looping ... ok
test_number_of_topological_entities (topology_unittest.TestTopology) ... ok
test_vertex_edge (topology_unittest.TestTopology) ... ok
test_vertex_face (topology_unittest.TestTopology) ... ok
test_wire_face (topology_unittest.TestTopology) ... ok
test_wires_out_of_scope (topology_unittest.TestTopology) ... ok
test_brep_feat_extrusion_protrusion 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
brep_feat extrusion protusion
ok
test_brep_feat_local_pipe 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
brep_feat local pipe
ok
test_brep_feat_local_revolution 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
brep_feat local revolution
ok
test_brep_feat_rib 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
brep_feat rib
ok
test_brepfeat_prism 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
brepfeat prism
ok
test_extrusion (topology_local_operations_unittest.TestTopologyLocalOperations) 
... Test: extrusion
ok
test_glue_solids 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: glue 
solids
ok
test_glue_solids_edges 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: glue 
solids edges
ok
test_offset_cube 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
offset cube
ok
test_split_shape 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
split shape
ok
test_thick_solid 
(topology_local_operations_unittest.TestTopologyLocalOperations) ... Test: 
thick solid
ok
test_divide_by_n_pnts (kbe_unittest.TestEdge_Line) ... ok
test_domain (kbe_unittest.TestEdge_Line) ... ok
test_first_last_vertex (kbe_unittest.TestEdge_Line) ... ok
test_length (kbe_unittest.TestEdge_Line) ... ok
test_param2pnt (kbe_unittest.TestEdge_Line) ... ok
test_periodic_rational_closed (kbe_unittest.TestEdge_Line) ... ok
test_pnt2param (kbe_unittest.TestEdge_Line) ... ok
test_trim (kbe_unittest.TestEdge_Line) ... ok
test_distance (kbe_unittest.TestFace_Sphere) ... ok
test_domain (kbe_unittest.TestFace_Sphere) ... ok
test_planar (kbe_unittest.TestFace_Sphere) ... ok
test_trimmed (kbe_unittest.TestFace_Sphere) ... ok
test_pnt (kbe_unittest.TestVertex_Point) ... ERROR
test_tesselate_box (visualization_unittest.TestTesselator) ... ok

======================================================================
ERROR: testHashEqOperator (wrapper_features_unittest.TestWrapperFeatures)
test that the == wrapper is ok
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/wrapper_features_unittest.py", line 
299, in testHashEqOperator
    res = items.index(line)
  File "/opt/anaconda/lib/python2.7/site-packages/OCC/Utils/Construct.py", line 
88, in gp_Pnt_equal
    return self.IsEqual(other, TOLERANCE)
TypeError: in method 'gp_Pnt_IsEqual', argument 2 of type 'gp_Pnt const'

======================================================================
ERROR: test_draft_angle (topology_building_unittest.TestTopologyBuilding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/topology_building_unittest.py", line 
236, in test_draft_angle
    adraft.Add(f, ddd, math.radians(15.), gp_Pln(gp_Ax3(gp_XOY())))
AttributeError: 'module' object has no attribute 'radians'

======================================================================
ERROR: test_edge (topology_building_unittest.TestTopologyBuilding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/topology_building_unittest.py", line 
57, in test_edge
    RedEdge = BRepBuilderAPI_MakeEdge(Elips, 0, math.pi/2)
AttributeError: 'module' object has no attribute 'pi'

======================================================================
ERROR: test_face (topology_building_unittest.TestTopologyBuilding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/topology_building_unittest.py", line 
155, in test_face
    edge1 = BRepBuilderAPI_MakeEdge(circle, 0., math.pi)
AttributeError: 'module' object has no attribute 'pi'

======================================================================
ERROR: test_wire (topology_building_unittest.TestTopologyBuilding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/topology_building_unittest.py", line 
88, in test_wire
    Edge1 = BRepBuilderAPI_MakeEdge(Elips, 0, math.pi/2).Edge()
AttributeError: 'module' object has no attribute 'pi'

======================================================================
ERROR: test_pnt (kbe_unittest.TestVertex_Point)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/pythonocc-master/src/unittest/kbe_unittest.py", line 99, in 
test_pnt
    self.assertEqual(v1, pnt)
  File "/opt/anaconda/lib/python2.7/unittest/case.py", line 515, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/opt/anaconda/lib/python2.7/unittest/case.py", line 505, in 
_baseAssertEqual
    if not first == second:
  File "/opt/anaconda/lib/python2.7/site-packages/OCC/KBE/base.py", line 180, 
in __eq__
    return self.IsEqual(other)
TypeError: in method 'TopoDS_Shape_IsEqual', argument 2 of type 'TopoDS_Shape 
const'

----------------------------------------------------------------------
Ran 75 tests in 0.858s

FAILED (errors=6)
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to