Hi Thomas, I would like to give you a short info about the "." versus "," problem in the step-file export (you remember the dezimal sign problem): If I comment out all display related commands, eg.
#from OCC.Display.SimpleGui import * #display, start_display, add_menu, add_function_to_menu = init_display() and run the script again, the dezimal sign is correct: "." Another error I get in the Level2-examples: tmuel...@linux-tmueller:~/work/PythonOCC/pythonOCC-0.4-sample/Level2/PAF> python test_gears_sympy.py The Relation class needs the sympy library. Please check http://code.google.com/p/sympy/ Traceback (most recent call last): File "test_gears_sympy.py", line 26, in <module> from sympy import * ImportError: No module named sympy Do you have an idea, what could be the problem under opensuse 11.1. Thanks in advance, Tobias ---------------------------------------------------------------------- From: "Thomas Paviot" <tpav...@gmail.com> To: "pythonOCC users mailing list." <pythonocc-users@gna.org> Date: Fri, 14 May 2010 21:49:44 +0200 Subject: Re: [Pythonocc-users] Fixing python-occ visualization in Ubuntu10.04 - resume > Hi Marcos, > > That's what I thought : it comes from the OpenGl driver ("from > /usr/lib/dri/i915_dri.so"). > > I think it comes from the way I init the viewer : just after the Viewer is > created, I set up default OCC lights: > > myV3dViewer->SetDefaultLights(); > myV3dViewer->SetLightOn(); > > I will try to move this out from the C++ Display3d.cpp file to pure python. > It will be easier to bug and, most important, to fix. Don't know yet how I > can test the modification I make : I don't have a Linux machine with this > specific graphic hardware. The best would be that you compile pythonocc > yourself and test if. The latest revision of the svn trunk is much more > convenient to build and it can be done easily. > > Regards, > > Thomas > > 2010/5/14 Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com> > > > Hi Thomas, > > > > I will resume in the same order than you, according to your description, I > > notice something (the segmentation fault) > > > > If I sum up: > > - I run Ubuntu 10.04 on a machine with an Intel chipset graphic hardware, > > - I installed pythonocc-0.4, > > - I properly set up the CSF_GraphicShr env variable, > > - when I try to create a graphic Window from the SimpleGui.py module, I > > have a black window and you have to kill the process. (I run again the gdb > > session an I get segfault in the trace or segmentation fault, it is the same > > right?): > > > > *This is the trace (of gdb session):* > > > > m...@maes:~$ export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so > > m...@maes:~$ gdb python > > GNU gdb (GDB) 7.1-ubuntu > > Copyright (C) 2010 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later < > > http://gnu.org/licenses/gpl.html> > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > > and "show warranty" for details. > > This GDB was configured as "i486-linux-gnu". > > For bug reporting instructions, please see: > > <http://www.gnu.org/software/gdb/bugs/>... > > Reading symbols from /usr/bin/python...(no debugging symbols found)...done. > > (gdb) r > > Starting program: /usr/bin/python > > [Thread debugging using libthread_db enabled] > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > > [GCC 4.4.3] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> from OCC.Display.SimpleGui import * > > >>> display, start_display, add_menu, add_function_to_menu = init_display() > > Display3d class initialization starting ... > > Graphic device created. > > Xw_Window created. > > Viewer created. > > > > Program received signal SIGSEGV, Segmentation fault. > > 0xaee68990 in intel_region_buffer () from /usr/lib/dri/i915_dri.so > > (gdb) > > > > *this is the trace (of set the CSF_GraphicShr)* > > > > m...@maes:~$ python > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > > [GCC 4.4.3] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import os > > >>> os.environ['CSF_GraphicShr'] > > '/usr/lib/libTKOpenGl-6.3.0.so' <http://libtkopengl-6.3.0.so/> > > > > > > - on my machine, I can run Salome 5.1.3 without any problem. > > > > Regards. > > > > Marcos. > > > > > > > > > > > > _______________________________________________ > > Pythonocc-users mailing list > > Pythonocc-users@gna.org > > https://mail.gna.org/listinfo/pythonocc-users > > > > > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users