Some tests or samples do not work.
After installing the pythonocc-core I try to run some samples but they don't work.
wubinbindeMacBook-Air:test Martin$ python /Users/Martin/Documents/pythonocc-core/examples/core_topology_prism.py PyQt4 not found - using PySide
3D rendering pipe initialisation
Display3d class initialization starting ... Aspect_DisplayConnection created. Graphic_Driver created. Cocoa window created. V3d_Viewer created. V3d_View created AIS_InteractiveContext created. Display3d class successfully initialized. ######################################## Segmentation fault: 11
Then I try to run the uint tests, I found the last one crash.
wubinbindeMacBook-Air:test Martin$ python run_tests.py testAutoImportOfDependentModules (core_wrapper_features_unittest.TestWrapperFeatures) Test: automatic import of dependent modules ... ok testProtectedConstructor (core_wrapper_features_unittest.TestWrapperFeatures) Test: protected constructor ... ok testStandardBooleanByRefPassedReturned (core_wrapper_features_unittest.TestWrapperFeatures) ... ok testTopoDS_byref_arguments (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_const_Standard_Integer_byref (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_const_Standard_Real_byref (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_default_constructor_DEFINE_STANDARD_ALLOC (core_wrapper_features_unittest.TestWrapperFeatures) OCE classes the defines standard alllocator can be instanciated ... ok test_dict (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_dump_to_string (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_eq_operator (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_ft1 (core_wrapper_features_unittest.TestWrapperFeatures) Test: Standard_Integer & by reference transformator ... ok test_hash (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_hash_eq_operator (core_wrapper_features_unittest.TestWrapperFeatures) test that the == wrapper is ok ... ok test_inherit_topods_shape (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_list (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_neq_operator (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_pickle_from_file (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_standard_boolean_byref (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_standard_integer_by_ref_passed_returned (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_static_method (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_sub_class (core_wrapper_features_unittest.TestWrapperFeatures) Test: subclass ... ok test_topology (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_traverse_box_topology (core_wrapper_features_unittest.TestWrapperFeatures) ... ok test_axis (core_geometry_unittest.TestGeometry) Test: axis ... ok test_bezier_surfaces (core_geometry_unittest.TestGeometry) Test: Bezier surfaces ... Segmentation fault: 11
How can I fixed it?
Is the core_helloworld.py example pass ?
Yes, it work.
wubinbindeMacBook-Air:getting_started Martin$ python /Users/Martin/Documents/pythonocc-core/examples/core_helloworld.py
PyQt4 not found - using PySide
3D rendering pipe initialisation
Display3d class initialization starting ...
Aspect_DisplayConnection created.
Graphic_Driver created.
Cocoa window created.
V3d_Viewer created.
V3d_View created
AIS_InteractiveContext created.
Display3d class successfully initialized.
######################################## [image: 内嵌图片 1]
Martin Wu //Shenzhen Sunet Industry co.,Ltd. //E-mail:[email protected] [email protected] //TEL:+86-18576761645 //QQ:705768492
2015-12-28 15:27 GMT+08:00 Thomas Paviot [email protected]:
Is the core_helloworld.py example pass ?
— Reply to this email directly or view it on GitHub https://github.com/tpaviot/pythonocc-core/issues/177#issuecomment-167499977 .
ok thank you. What's your os version please ? c compiler ?
I had the same issue on my mac
I fix it by using conda to install the occ.
$ conda install -c https://conda.anaconda.org/dlr-sc pythonocc-core
Did the unit tests run without crash? We have a problem with the test_bezier_surfaces test.
I can't find this test-file

@WBB-Badtaste Just run:
$ python run_tests.py
It's ok
Martin Wu //Shenzhen Sunet Industry co.,Ltd. //E-mail:[email protected] [email protected] //TEL:+86-18576761645 //QQ:705768492
2016-01-14 12:09 GMT+08:00 Thomas Paviot [email protected]:
@WBB-Badtaste https://github.com/WBB-Badtaste Just run:
$ python run_tests.py
— Reply to this email directly or view it on GitHub https://github.com/tpaviot/pythonocc-core/issues/177#issuecomment-171524627 .
spam lets close this isssue @tpaviot