Hi Thimas,
Few minutes ago I returned to my Thesis work, starting with pythonOCC
installation in Ubuntu-10.04 (
http://www.pythonocc.org/resources/build_install/installrun-pythonocc-on-ubuntu-10-04-lucid-lts-in-5-steps-and-10-minutes/
)
But unfortunately I get an error when when I tried to run the HelloWorld.py
example,
The error is:
Traceback (most recent call last):
File "HelloWorld.py", line 3, in <module>
display, start_display, add_menu, add_function_to_menu = init_display()
File "/usr/lib/pymodules/python2.6/OCC/Display/SimpleGui.py", line 111, in
init_display
win.canva.InitDriver()
File "/usr/lib/pymodules/python2.6/OCC/Display/wxDisplay.py", line 153, in
InitDriver
raise "Please set the CSF_GraphicShr environment variable."
TypeError: exceptions must be old-style classes or derived from
BaseException, not str
I appreciate any help!
Thanks,
Marcos.
On 4 May 2010 11:24, <[email protected]> wrote:
> Send Pythonocc-users mailing list submissions to
> [email protected]
>
> 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
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pythonocc-users digest..."
>
>
> Today's Topics:
>
> 1. Debian package for Ubuntu 10.04 (Thomas Paviot)
> 2. Re: Strange Duplicate References... (Dave Cowden)
> 3. Re: Debian package for Ubuntu 10.04 (Jelle Feringa)
> 4. Re: Debian package for Ubuntu 10.04 (Dave Cowden)
> 5. Re: Debian package for Ubuntu 10.04 (Yorik van Havre)
> 6. Re: Debian package for Ubuntu 10.04 (Thomas Paviot)
> 7. Re: Debian package for Ubuntu 10.04 (Thomas Paviot)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 4 May 2010 12:32:00 +0200
> From: Thomas Paviot <[email protected]>
> Subject: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Excellent news: Oliver Borm released a debian package for the latest Ubuntu
> 10.04 LTS release.
>
> https://launchpad.net/~cae-team/+archive/ppa<https://launchpad.net/%7Ecae-team/+archive/ppa>
>
> I will test this package as soon as my own machine is upgraded to Ubuntu
> 10.04.
>
> Best Regards,
>
> Thomas
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/4ae554c0/attachment.htm
>
> ------------------------------
>
> Message: 2
> Date: Tue, 4 May 2010 06:35:22 -0400
> From: Dave Cowden <[email protected]>
> Subject: Re: [Pythonocc-users] Strange Duplicate References...
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Ok thanks. Unfortunately both simple examples I tried didn't repro the
> problem. It might be that the garbage collector has to run for the
> problem to happen. I only experience the issue when a lot of work has
> been done between creating and using the list.
>
> On 5/4/10, Thomas Paviot <[email protected]> wrote:
> > 2010/5/4 Dave Cowden <[email protected]>
> >
> >> Hey, all:
> >>
> >> I have had a strange problem occur a couple of times, wondering if
> anyone
> >> recognizes it.
> >>
> >> The behavior occurs when looping over shapes and dealing with them in
> >> python lists. During the iteration,
> >> all of the objects appear normal and correct. But later when they are
> >> accessed in the list, all of the references in the list appear to be the
> >> last object written into the list.
> >>
> >>
> >> For example, I had code like the below, which was transforming a list of
> >> shapes:
> >>
> >> wireList = []; #this is a list of wires that are all ok
> >>
> >>
> >> #make transformation
> >> p1 = gp.gp_Pnt(0,0,0);
> >> p2 = gp.gp_Pnt(0,0,z);
> >> xform = gp.gp_Trsf();
> >> xform.SetTranslation(p1,p2);
> >> bt = BRepBuilderAPI.BRepBuilderAPI_Transform(xform);
> >>
> >> newList = [];
> >>
> >> for w in wireList:
> >> bt.Perform(w,True);
> >> newList.append(bt.Shape() );
> >> TestDisplay.display.showShape(bt.Shape() );
> >>
> >>
> >>
> >> When this code runs, the shapes displayed are correct. But later when
> they
> >> are accessed, what i get is a bunch of copies of the last one added.
> >>
> >>
> >> I have also seen this behavior before iterating over wires using a
> >> wireExplorer-- in that case, it was resolved by using the super-ugly and
> >> annoying TopTools.TopTools_HSequenceOfShape() object instead of a python
> >> list.
> >>
> >> Should I use HSequnceOfShape instead of python lists, or is there a
> trick
> >> that I can use to let me use lists?
> >>
> >> thanks!
> >>
> >>
> >
> > Hi Dave,
> >
> > I have to reproduce this issue from a simple example, and create a
> unittest.
> >
> > In the meantime, you may have to use the HSequnceOfShape. Although it's
> not
> > pythonic, it's more safe to use builtin OCC list manager rather than
> python
> > list. The mapping between python lists and OCC lists have to be performed
> at
> > the SWIG level.
> >
> > Best Regards,
> >
> > Thomas
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 4 May 2010 12:40:02 +0200
> From: Jelle Feringa <[email protected]>
> Subject: Re: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> COOOOOOOOOOOOL! I saw some google alerts on this...
> Wow, excellent! Can I have the honour of blog posting this?
> I'm not so sure which version I have of ubuntu, but your right; test
> before post!!!
>
> THOMAS THIS IS AMAZINGLY GOOD NEWS!!!!!!!!
>
> -jelle
>
> On May 4, 2010, at 12:32 PM, Thomas Paviot wrote:
>
> > Hi,
> >
> > Excellent news: Oliver Borm released a debian package for the latest
> > Ubuntu 10.04 LTS release.
> >
> > https://launchpad.net/~cae-team/+archive/ppa<https://launchpad.net/%7Ecae-team/+archive/ppa>
> >
> > I will test this package as soon as my own machine is upgraded to
> > Ubuntu 10.04.
> >
> > Best Regards,
> >
> > Thomas
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/pythonocc-users
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/9acbb999/attachment.htm
>
> ------------------------------
>
> Message: 4
> Date: Tue, 4 May 2010 08:49:33 -0400
> From: Dave Cowden <[email protected]>
> Subject: Re: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Yes, I'm very excited as well. I tried valiantly but unsuccessfully to get
> 0.4 working on my old RedHat 8.0 box--- but it'd be great if there's a
> linux
> flavor with a simple-to-install package.
>
> On Tue, May 4, 2010 at 6:40 AM, Jelle Feringa <[email protected]
> >wrote:
>
> > COOOOOOOOOOOOL! I saw some google alerts on this...
> > Wow, excellent! Can I have the honour of blog posting this?
> > I'm not so sure which version I have of ubuntu, but your right; test
> before
> > post!!!
> >
> > THOMAS THIS IS AMAZINGLY GOOD NEWS!!!!!!!!
> >
> > -jelle
> >
> > On May 4, 2010, at 12:32 PM, Thomas Paviot wrote:
> >
> > Hi,
> >
> > Excellent news: Oliver Borm released a debian package for the latest
> Ubuntu
> > 10.04 LTS release.
> >
> > https://launchpad.net/~cae-team/+archive/ppa<https://launchpad.net/%7Ecae-team/+archive/ppa>
> >
> > I will test this package as soon as my own machine is upgraded to Ubuntu
> > 10.04.
> >
> > Best Regards,
> >
> > Thomas
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/pythonocc-users
> >
> >
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/pythonocc-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/51669750/attachment.htm
>
> ------------------------------
>
> Message: 5
> Date: Tue, 4 May 2010 11:40:58 -0300
> From: Yorik van Havre <[email protected]>
> Subject: Re: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Excellent!
> building pythonocc always gave me a bit of headache... Actually there was
> quite some time I didn't use it because of laziness...
> with a minor tweak (changing the python dependency version from >=2.6 to
> >=2.5, howto here: http://forums.linuxmint.com/viewtopic.php?f=42&t=35136),
> this package works perfectly on debian squeeze too. I have rebuilt an amd64
> package here, for who's interested:
> http://yorik.uncreated.net/archive/packages/python-occ_0.4-1ppa2_amd64.deb
>
> --
> Yorik van Havre S?o Paulo Brazil http://yorik.uncreated.net
>
>
> On 4 May 2010 09:49, Dave Cowden wrote:
>
> > Yes, I'm very excited as well. I tried valiantly but unsuccessfully to
> get
> > 0.4 working on my old RedHat 8.0 box--- but it'd be great if there's a
> linux
> > flavor with a simple-to-install package.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/d6c7c284/attachment.htm
>
> ------------------------------
>
> Message: 6
> Date: Tue, 4 May 2010 16:45:28 +0200
> From: Thomas Paviot <[email protected]>
> Subject: Re: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 2010/5/4 Yorik van Havre <[email protected]>
>
> > Excellent!
> > building pythonocc always gave me a bit of headache...
>
>
> Me too!
>
>
> > Actually there was quite some time I didn't use it because of laziness...
> > with a minor tweak (changing the python dependency version from >=2.6 to
> > >=2.5, howto here:
> http://forums.linuxmint.com/viewtopic.php?f=42&t=35136), this package
> works perfectly on debian squeeze too. I have rebuilt an
> > amd64 package here, for who's interested:
> >
> http://yorik.uncreated.net/archive/packages/python-occ_0.4-1ppa2_amd64.deb
>
>
> Many thanks Yorik, I will update the pythonocc website with these
> information.
>
>
> >
> >
> > --
> > Yorik van Havre S?o Paulo Brazil http://yorik.uncreated.net
> >
> >
> Thomas
>
>
> >
> >
> > On 4 May 2010 09:49, Dave Cowden wrote:
> >
> >> Yes, I'm very excited as well. I tried valiantly but unsuccessfully to
> get
> >> 0.4 working on my old RedHat 8.0 box--- but it'd be great if there's a
> linux
> >> flavor with a simple-to-install package.
> >
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/pythonocc-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/f1024e0e/attachment.htm
>
> ------------------------------
>
> Message: 7
> Date: Tue, 4 May 2010 17:23:19 +0200
> From: Thomas Paviot <[email protected]>
> Subject: Re: [Pythonocc-users] Debian package for Ubuntu 10.04
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I've successfully tested the 32 bit package, from a new installation of
> Ubuntu 10.04 that comes out of the box.
>
> Thomas
>
> 2010/5/4 Thomas Paviot <[email protected]>
>
> > 2010/5/4 Yorik van Havre <[email protected]>
> >
> > Excellent!
> >> building pythonocc always gave me a bit of headache...
> >
> >
> > Me too!
> >
> >
> >> Actually there was quite some time I didn't use it because of
> laziness...
> >> with a minor tweak (changing the python dependency version from >=2.6 to
> >> >=2.5, howto here:
> http://forums.linuxmint.com/viewtopic.php?f=42&t=35136), this package
> works perfectly on debian squeeze too. I have rebuilt an
> >> amd64 package here, for who's interested:
> >>
> http://yorik.uncreated.net/archive/packages/python-occ_0.4-1ppa2_amd64.deb
> >
> >
> > Many thanks Yorik, I will update the pythonocc website with these
> > information.
> >
> >
> >>
> >>
> >> --
> >> Yorik van Havre S?o Paulo Brazil http://yorik.uncreated.net
> >>
> >>
> > Thomas
> >
> >
> >>
> >>
> >> On 4 May 2010 09:49, Dave Cowden wrote:
> >>
> >>> Yes, I'm very excited as well. I tried valiantly but unsuccessfully to
> >>> get 0.4 working on my old RedHat 8.0 box--- but it'd be great if
> there's a
> >>> linux flavor with a simple-to-install package.
> >>
> >>
> >> _______________________________________________
> >> Pythonocc-users mailing list
> >> [email protected]
> >> https://mail.gna.org/listinfo/pythonocc-users
> >>
> >>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100504/50606565/attachment.htm
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: step7_helloworld.png
> Type: image/png
> Size: 176421 bytes
> Desc: not available
> Url : /public/pythonocc-users/attachments/20100504/50606565/attachment.png
>
> ------------------------------
>
> _______________________________________________
> Pythonocc-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/pythonocc-users
>
>
> End of Pythonocc-users Digest, Vol 18, Issue 5
> **********************************************
>
--
Marcos A. Elgueta Soulat
Student of Aerospace Engineering,
Department of Mechanics Engineering,
University of Concepción, Chile.
mail: [email protected]
mobile(1): +56 9 82208407
mobile(2): +56 9 83036927
skype: marcos.elgueta.soulat
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users