On 2010/5/20 John Griessen wrote:
[...]
> To test that the SMESH wrapper works: run the examples from 
> src/examples/Level1/SMESH
>
> python2.5 test_smesh.py
> output is:
> --------
> a window with label 'wx' backend pops up, then disappears.
> --------
> /usr/lib/python2.5/site-packages/OCC/Display/wxDisplay.py:153: 
> DeprecationWarning: raising a string exception is deprecated
>   raise "Please set the CSF_GraphicShr environment variable."
> Traceback (most recent call last):
>   File "test_smesh.py", line 13, in <module>
>     display, start_display, add_menu, add_function_to_menu = init_display()
>   File "/usr/lib/python2.5/site-packages/OCC/Display/SimpleGui.py", line 121, 
> in init_display
>     win.canva.InitDriver()
>   File "/usr/lib/python2.5/site-packages/OCC/Display/wxDisplay.py", line 153, 
> in InitDriver
>     raise "Please set the CSF_GraphicShr environment variable."
> Please set the CSF_GraphicShr environment variable.
> --------
>
> I found a mention of "You may have to also set the "CSF_GraphicShr" 
> environmental variable:
>
>  export CSF_GraphicShr=/usr/local/lib/libTKOpenGl.so",
>
> but I have nothing at /usr/local/lib/libTKOpenGl.so.

You can find this library into the libopencascade-visualization-dev
Debian package, in /usr/lib
I am not sure, but you may instead set
  export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so
and install libopencascade-visualization-6.3.0 instead of the -dev package.

A better way is to edit Display.py and remove all occurrences of
        try:
            os.environ["CSF_GraphicShr"]
        except KeyError:
            raise "Please set the CSF_GraphicShr environment variable."
Everything should work just fine (not tested).

Denis

_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to