I installed pythonOCC from master (3/28/2013) using a OCE 0.12 which I compiled
from sources. There were some issues with linking at one project so I had to
comment in Sketcher.i code
/*%nodefaultctor Sketcher_GUI;...
%extend Sketcher_GUI { void _kill_pointed() { delete $self; }};*/
And also I had to fix main cmake file as it was not pointing at the right
source location from which it is supposed to install into OCC folder.
Issuing python test_all.py goes up to test_through_sections
(topology_building_unittest.TestTopologyBuilding) ... Test: through
sectionsthen Python crashes. However, what is more disturbing is that running
python geometry_demos.py gives
###### 3D rendering pipe initialisation #####Display3d class initialization
starting ...WNT Graphic device created.WNT window created.Viewer
created.Traceback (most recent call last): File "geometry_demos.py", line 70,
in <module> display, start_display, add_menu, add_function_to_menu =
init_display() File "d:\Python26\lib\site-packages\OCC\Display\SimpleGui.py",
line 121, in init_display win.canva.InitDriver() File
"d:\Python26\lib\site-packages\OCC\Display\wxDisplay.py", line 151, in
InitDriver self._display.Create() File
"d:\Python26\lib\site-packages\OCC\Display\OCCViewer.py", line 84, in Create
self.Init(self._window_handle)RuntimeError:
Aspect_GraphicDeviceDefinitionErrorOpenGl_Window::CreateWindow: SetPixelFormat
failed. Error code: 2000
Is this some kind of incompatibility with Windows 7?
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users