In case it can help, the bactrace I get when running python path_unittest.py
within gdb.
Loïc


On Fri, Sep 18, 2009 at 8:49 PM, Simon Loic <simon1l...@gmail.com> wrote:

> Hi again,
>
>
> The env_DRAW.sh script contains a set of environment variables that has to
>> be set up before you can use OCC. You can copy/paste the content of this
>> file to your .bash_profile. The most important one is the CSF_GraphicShr,
>> that points to the OCC OpenGL lib, and enables the 3D display.
>>
>
> Ok I had already something equivalen in my .zshrc (I like this shell better
> than bash ;-), and CSF_GraphicShr is set correctly.
>
>
> The best way is certainly to launch this python script from the
>> ./Tools/InteractiveViewer directory. Do you have any difficulty to get it
>> run?
>>
>
> It's ok the basic example works (a part from the Zoom window which is
> apparently not implemented or not wrapped, right? I get the following
> message:
> >> AttributeError: 'Viewer3d' object has no attribute 'Zoom_Window'
>
>
>> Weird, since you followed the instructions available on the PAF tutorial
>> (from the wiki). Before you go and test PAF, I suggest you shoud first check
>> that pythonOCC works fine. In the /src/unittest directory, there are 3 sets
>> of unittests: occ_unittest (test of the basic features), paf_unittest (for
>> PAF) and topology_unittest (topology/geometry handling). Run each of these
>> scripts and be sure that they all pass:
>> python occ_unittest.py
>> python paf_unittest.py
>> python topology_unittest.py
>>
>
> Actually the paf unit test raise a seg fault error (the two others run just
> fine): see the output file attached.
> One more thing I forgot to tell. After installing pythonOcc, the PAF module
> was missing in the __all__ list in dist-packages/OCC/__init__.py. I had to
> ad it manually.
>
> cheers,
> Loïc
>
>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f7a357786f0 (LWP 3630)]
0x00007f7a2fd8819f in Handle_Standard_Transient::EndScope () from /opt/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
Current language:  auto; currently asm
(gdb) bt
#0  0x00007f7a2fd8819f in Handle_Standard_Transient::EndScope () from /opt/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
#1  0x00007f7a2fd8825c in Handle_Standard_Transient::Assign () from /opt/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
#2  0x00007f7a23f8bb9e in GEOM_Engine (this=0x2534dc0) at ./inc/Handle_GEOM_Application.hxx:78
#3  0x00007f7a23c62f25 in GEOMImpl_Gen (this=0x2534dc8) at ./src/GEOMImpl/GEOMImpl_Gen.cpp:87
#4  0x00007f7a3401cf49 in _wrap_new_GEOMImpl_Gen (args=0x7f7a35738050) at /home/matador/Desktop/Code/pythonOCC/src/wrapper/SWIG/linux_darwin/GEOMImpl_wrap.cpp:35719
#5  0x00000000004a2b03 in PyEval_EvalFrameEx ()
#6  0x00000000004a4649 in PyEval_EvalCodeEx ()
#7  0x00000000005329ad in ?? ()
#8  0x000000000041d3bd in PyObject_Call ()
#9  0x0000000000424f48 in ?? ()
#10 0x000000000041d3bd in PyObject_Call ()
#11 0x000000000047413c in ?? ()
#12 0x000000000046bd3b in ?? ()
#13 0x000000000041d3bd in PyObject_Call ()
#14 0x00000000004a000f in PyEval_EvalFrameEx ()
#15 0x00000000004a4649 in PyEval_EvalCodeEx ()
#16 0x00000000005329ad in ?? ()
#17 0x000000000041d3bd in PyObject_Call ()
#18 0x0000000000424f48 in ?? ()
#19 0x000000000041d3bd in PyObject_Call ()
#20 0x000000000047413c in ?? ()
#21 0x000000000046bd3b in ?? ()
#22 0x000000000041d3bd in PyObject_Call ()
#23 0x00000000004a000f in PyEval_EvalFrameEx ()
#24 0x00000000004a4649 in PyEval_EvalCodeEx ()
#25 0x00000000004a4762 in PyEval_EvalCode ()
#26 0x00000000004c4c3c in PyRun_FileExFlags ()
#27 0x00000000004c4f6b in PyRun_SimpleFileExFlags ()
#28 0x00000000004189ce in Py_Main ()
#29 0x00007f7a347855a6 in __libc_start_main () from /lib/libc.so.6
#30 0x0000000000417ae9 in _start ()

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to