Do you have a gui module (wx, pyqt4) installed?
Have you read the installation post on the pythonocc.org blog?

-jelle

On May 13, 2010, at 7:47 PM, Marcos Elgueta Soulat wrote:

> Hi Thomas and Jelle,
> 
> I executed again (Step 3) in the terminal:
> 
> export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so
> 
> With lower case "l", I deleted the file .bash_profile this do not make any 
> difference.
> 
> And I get the following message:
> 
> $ python HelloWorld.py 
> Display3d class initialization starting ...
> Graphic device created.
> Xw_Window created.
> Viewer created.
> Segmentation fault
> 
> My HelloWorld.py file is the same than in Step 5:
> 
> from OCC.Display.SimpleGui import *
> from OCC.BRepPrimAPI import *
> display, start_display, add_menu, add_function_to_menu = init_display()
> my_box = BRepPrimAPI_MakeBox(10.,20.,30.).Shape()
> display.DisplayShape(my_box)
> start_display()
> 
> Thanks!
> 
> Marcos
> 
> On 13 May 2010 06:00, <pythonocc-users-requ...@gna.org> wrote:
> Send Pythonocc-users mailing list submissions to
>        pythonocc-users@gna.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://mail.gna.org/listinfo/pythonocc-users
> or, via email, send a message with subject or body 'help' to
>        pythonocc-users-requ...@gna.org
> 
> You can reach the person managing the list at
>        pythonocc-users-ow...@gna.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pythonocc-users digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: PythonOCC installation in Ubuntu-10.04 Test   error
>      (Thomas Paviot)
>   2. Re: PythonOCC installation in Ubuntu-10.04 Test   error
>      (Jelle Feringa)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 13 May 2010 10:01:37 +0200
> From: Thomas Paviot <tpav...@gmail.com>
> Subject: Re: [Pythonocc-users] PythonOCC installation in Ubuntu-10.04
>        Test    error
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID:
>        <aanlktikeunvrnuflu8dmqjlbc14en2pjniij_q317...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Marcos,
> 
> Take care to the case : libTKOpenGl (The last 'l' is lower case).
> 
> It has been discussed here :
> http://www.pythonocc.org/resources/build_install/installrun-pythonocc-on-ubuntu-10-04-lucid-lts-in-5-steps-and-10-minutes/
> 
> Regards,
> 
> Thomas
> 
> 2010/5/13 Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com>
> 
> > Hi jelle,
> >
> > I create the file .bash_profile file in my ~ home directory adding the
> > line:
> >
> > export 
> > CSF_GraphicShr=/usr/lib/libTKOpenGL-6.3.0.so<http://libtkopengl-6.3.0.so/>
> >
> > after that I run again the HellowWorld.py expample, but I get the same
> > error.
> >
> > some idea ?
> >
> > Thanks a lot!
> >
> > Marcos
> >
> >
> >
> > On 13 May 2010 03:17, <pythonocc-users-requ...@gna.org> wrote:
> >
> >> Send Pythonocc-users mailing list submissions to
> >>        pythonocc-users@gna.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>        https://mail.gna.org/listinfo/pythonocc-users
> >> or, via email, send a message with subject or body 'help' to
> >>        pythonocc-users-requ...@gna.org
> >>
> >> You can reach the person managing the list at
> >>        pythonocc-users-ow...@gna.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of Pythonocc-users digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>   1. Re: Pythonocc-users Digest, Vol 18, Issue 5 (Jelle Feringa)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Thu, 13 May 2010 09:17:07 +0200
> >> From: Jelle Feringa <jelleferi...@gmail.com>
> >> Subject: Re: [Pythonocc-users] Pythonocc-users Digest, Vol 18, Issue 5
> >> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> >> Message-ID: <b3e9e2f8-37e3-4279-8a90-531caab9e...@gmail.com>
> >> Content-Type: text/plain; charset="us-ascii"
> >>
> >> -> Please set the CSF_GraphicShr environment variable
> >>
> >> That's pretty accurate really ;)
> >> Have a look here:
> >> http://www.pythonocc.org/resources/build_install/installrun-pythonocc-on-ubuntu-10-04-lucid-lts-in-5-steps-and-10-minutes/
> >>
> >> You can set the CSF_GraphicShr as part of your shell enviroment easily:
> >> create a .bash_profile file in your ~ home directory, and just add the
> >> line
> >> export CSF_GraphicShr=/usr/lib/libTKOpenGL-6.3.0.so
> >>
> >> after verifying that file exists of course...
> >>
> >> Step 3 : set the CSF_GraphicShr env variable
> >>
> >> The CSF_GraphicShr variable must point to /usr/lib/
> >> libTKOpenGl-6.3.0.so :
> >>
> >>
> >>
> >> -jelle
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL: /public/pythonocc-users/attachments/20100513/a15372bb/attachment.htm
> >> -------------- next part --------------
> >> A non-text attachment was scrubbed...
> >> Name: step5_set_CSF_GraphicShr.png
> >> Type: image/png
> >> Size: 197933 bytes
> >> Desc: not available
> >> Url : /public/pythonocc-users/attachments/20100513/a15372bb/attachment.png
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> Pythonocc-users mailing list
> >> Pythonocc-users@gna.org
> >> https://mail.gna.org/listinfo/pythonocc-users
> >>
> >>
> >> End of Pythonocc-users Digest, Vol 18, Issue 16
> >> ***********************************************
> >>
> >
> >
> >
> > --
> > Marcos A. Elgueta Soulat
> > Student of Aerospace Engineering,
> > Department of Mechanics Engineering,
> > University of Concepci?n, Chile.
> >
> > mail: m.a.elguetasou...@gmail.com
> > mobile(1): +56 9 82208407
> > mobile(2): +56 9 83036927
> > skype: marcos.elgueta.soulat
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > Pythonocc-users@gna.org
> > https://mail.gna.org/listinfo/pythonocc-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100513/31c41428/attachment.htm
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 13 May 2010 10:17:00 +0200
> From: Jelle Feringa <jelleferi...@gmail.com>
> Subject: Re: [Pythonocc-users] PythonOCC installation in Ubuntu-10.04
>        Test    error
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID: <e77cd0bb-e8f9-4a7c-a268-2d44aeb62...@gmail.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
> 
> > Take care to the case : libTKOpenGl (The last 'l' is lower case).
> 
> Ooops... my bad
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
> 
> 
> End of Pythonocc-users Digest, Vol 18, Issue 20
> ***********************************************
> 
> 
> 
> -- 
> Marcos A. Elgueta Soulat
> Student of Aerospace Engineering,
> Department of Mechanics Engineering,
> University of Concepción, Chile.
> 
> mail: m.a.elguetasou...@gmail.com
> mobile(1): +56 9 82208407
> mobile(2): +56 9 83036927
> skype: marcos.elgueta.soulat
> _______________________________________________
> 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

Reply via email to