pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Some tests or samples do not work.

Open WBB-Badtaste opened this issue 10 years ago • 10 comments

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?

WBB-Badtaste avatar Dec 28 '15 06:12 WBB-Badtaste

Is the core_helloworld.py example pass ?

tpaviot avatar Dec 28 '15 07:12 tpaviot

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 .

WBB-Badtaste avatar Dec 28 '15 07:12 WBB-Badtaste

ok thank you. What's your os version please ? c compiler ?

tpaviot avatar Dec 28 '15 08:12 tpaviot

I had the same issue on my mac

rainman110 avatar Jan 13 '16 08:01 rainman110

I fix it by using conda to install the occ.

$ conda install -c https://conda.anaconda.org/dlr-sc pythonocc-core

WBB-Badtaste avatar Jan 13 '16 08:01 WBB-Badtaste

Did the unit tests run without crash? We have a problem with the test_bezier_surfaces test.

rainman110 avatar Jan 13 '16 08:01 rainman110

I can't find this test-file

image

WBB-Badtaste avatar Jan 14 '16 01:01 WBB-Badtaste

@WBB-Badtaste Just run:

$ python run_tests.py

tpaviot avatar Jan 14 '16 04:01 tpaviot

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 .

WBB-Badtaste avatar Jan 15 '16 01:01 WBB-Badtaste

spam lets close this isssue @tpaviot

jf--- avatar Apr 08 '16 13:04 jf---