From: Guenter S. <Gue...@ph...> - 2009-09-16 02:20:29
|
I'll summarize what I learned about installing vpython on ubuntu in a new thread. As for why I believe that exceptions are common to all the examples I presented, a python loop 1 for item in sequence: 2 body is internally equivalent to 1 iter = sequence.__iter__() 2 try: 3 while True: 4 item = iter.next() 5 body 6 except StopIteration: 7 pass Guenter Bruce Sherwood wrote: > I don't understand enough about building on Linux to be sure that it would help, > but it might be worth building according to the instructions in INSTALL.txt, > since that's how I've built Visual and it works. Moreover, the configure stage > will tell you if you're missing certain dependencies. On the other hand, it > seems possible that there's some incompatibility between Visual and 64bit Ubuntu > (I only have access to 32bit Ubuntu). > > You suspect that "whenever vpython raises an exception, python seg. faults", but > in your Example 1 there's no reason why VPython would raise an exception. > > Bruce Sherwood > > Guenter Schneider wrote: >> Thank you for the prompt answers and I am glad it's my setup because >> that should be easy to fix. >> >> There is no typo in the examples. All is cut and paste out of ipython >> sessions. >> >> I should have mentioned I use 64bit Ubuntu. >> I use boost 1.35 (libboost1.35-dev) and python 2.6.2 >> >> I use this script to build and install vpython >> >> #!/bin/bash >> >> SOFTWARE=visual-5.12_release >> ARCHIVE=$SOFTWARE.tar.bz2 >> ARCHIVEDIR="$SOFTWARE" >> BUILDDIR=$SOFTWARE-install >> tar jxvf $ARCHIVE >> mkdir -p $BUILDDIR >> cd $BUILDDIR >> aptitude -y install libboost1.35-dev >> aptitude -y install libsigc++-2.0-dev libgtkmm-2.4-dev libgtkglext1-dev >> libgtkglext1 libgtkglextmm-x11-1.2-0 libgtkglextmm-x11-1.2-dev >> libglademm-2.4-1c2a libglademm-2.4-dev >> ../$ARCHIVEDIR/configure --prefix /usr >> make >> >> #as root >> cd $BUILDDIR >> make install >> echo /usr/lib/python2.6/site-packages >> >> /usr/lib/python2.6/dist-packages/site-packages.pth >> >> If necessary I will setup a clean system from scratch and install >> vpython there, but I'd rather fix it without going this route. >> >> Guenter Schneider >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |