Denis Barbier wrote:
> On 2010/5/20 John Griessen wrote:
>> 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).

I could not find a file named Display.py.  Did you mean
/usr/lib/python2.5/site-packages/OCC/Display/qtDisplay.py or wxDisplay.py?

When I did:
export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so
$python2.5 test_smesh.py opens  wx  3D display window shows a sphere.
$python2.5 traverse_mesh.py shows a list of coords and faces ok.
$python2.5 volumic_mesh.py shows rect solid with concave end.
$python2.5 surfacic_mesh.py shows compound curved sheet.

$cd src/examples/Level2/PAF
$python2.5 test_box.py
The Relation class needs the sympy library. Please check 
http://code.google.com/p/sympy/
Display3d class initialization starting ...
[...]
Traceback (most recent call last):
   File "test_box.py", line 11, in <module>
     p.X1, p.Y1, p.Z1, p.X2, p.Y2, p.Z2, p.RADIUS = 12,70,12,30,30,30,4         
                          # Create 7 parameters
   File "/usr/lib/python2.5/site-packages/OCC/PAF/Parametric.py", line 212, in 
__setattr__
     self._parameters[name] = Parameter(name, value)
   File "/usr/lib/python2.5/site-packages/OCC/PAF/Parametric.py", line 150, in 
__init__
     self._symbol = sympy.Symbol(name)
NameError: global name 'sympy' is not defined

My install seems incomplete.

John

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

Reply via email to