You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(15) |
Oct
(32) |
Nov
(35) |
Dec
(48) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(46) |
Feb
(22) |
Mar
(65) |
Apr
(49) |
May
(22) |
Jun
(29) |
Jul
(51) |
Aug
(34) |
Sep
(32) |
Oct
(46) |
Nov
(30) |
Dec
(32) |
2002 |
Jan
(48) |
Feb
(4) |
Mar
(20) |
Apr
(28) |
May
(13) |
Jun
(34) |
Jul
(51) |
Aug
(15) |
Sep
(15) |
Oct
(35) |
Nov
(15) |
Dec
(20) |
2003 |
Jan
(31) |
Feb
(111) |
Mar
(41) |
Apr
(28) |
May
(36) |
Jun
(29) |
Jul
(27) |
Aug
(29) |
Sep
(47) |
Oct
(28) |
Nov
(7) |
Dec
(26) |
2004 |
Jan
(44) |
Feb
(9) |
Mar
(17) |
Apr
(26) |
May
(58) |
Jun
(13) |
Jul
(44) |
Aug
(64) |
Sep
(30) |
Oct
(11) |
Nov
(21) |
Dec
(28) |
2005 |
Jan
(29) |
Feb
(11) |
Mar
(11) |
Apr
(22) |
May
(85) |
Jun
(46) |
Jul
(17) |
Aug
(18) |
Sep
(14) |
Oct
(22) |
Nov
(1) |
Dec
(45) |
2006 |
Jan
(20) |
Feb
(36) |
Mar
(18) |
Apr
(24) |
May
(21) |
Jun
(48) |
Jul
(23) |
Aug
(20) |
Sep
(10) |
Oct
(41) |
Nov
(46) |
Dec
(40) |
2007 |
Jan
(40) |
Feb
(20) |
Mar
(13) |
Apr
(6) |
May
(24) |
Jun
(31) |
Jul
(30) |
Aug
(11) |
Sep
(11) |
Oct
(10) |
Nov
(56) |
Dec
(64) |
2008 |
Jan
(64) |
Feb
(22) |
Mar
(63) |
Apr
(28) |
May
(25) |
Jun
(36) |
Jul
(11) |
Aug
(9) |
Sep
(14) |
Oct
(41) |
Nov
(46) |
Dec
(130) |
2009 |
Jan
(95) |
Feb
(41) |
Mar
(24) |
Apr
(35) |
May
(53) |
Jun
(67) |
Jul
(48) |
Aug
(48) |
Sep
(86) |
Oct
(75) |
Nov
(64) |
Dec
(52) |
2010 |
Jan
(57) |
Feb
(31) |
Mar
(28) |
Apr
(40) |
May
(25) |
Jun
(42) |
Jul
(79) |
Aug
(31) |
Sep
(49) |
Oct
(66) |
Nov
(38) |
Dec
(25) |
2011 |
Jan
(29) |
Feb
(18) |
Mar
(44) |
Apr
(6) |
May
(28) |
Jun
(31) |
Jul
(36) |
Aug
(24) |
Sep
(30) |
Oct
(23) |
Nov
(21) |
Dec
(27) |
2012 |
Jan
(14) |
Feb
(11) |
Mar
(2) |
Apr
(48) |
May
(7) |
Jun
(32) |
Jul
(22) |
Aug
(25) |
Sep
(31) |
Oct
(32) |
Nov
(21) |
Dec
(17) |
2013 |
Jan
(44) |
Feb
(27) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
(3) |
Aug
(4) |
Sep
(1) |
Oct
(7) |
Nov
(5) |
Dec
(5) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(2) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tim <tim...@ta...> - 2009-09-08 22:44:44
|
Hi, I have downloaded and installed python 2.6.2 and the latest verson of VPython. When I try to run any of the sample VPython applications, I get the error: Runtime Error Program: C:\Python26\pythonw.exe This application has requested the Runtime to terminate in an unusual way.... Can anyone help to troubleshoot this? Thanks, Tim |
From: Stef M. <s.m...@ru...> - 2009-09-08 21:17:28
|
Joe Heafner wrote: > Over the weekend, I upgraded one of my MacBook Pros to Snow Leopard. > FYI, VPython under Python 2.6.x seems to be working perfectly. under winXp it also works perfect. Stef |
From: Aaron T. <hpu...@gm...> - 2009-09-08 20:21:55
|
I upgraded to Snow Leopard today. I've noticed one big improvement in the behavior of VIDLE that is a reflection of the new OS. In the past, Mac OS used a document creator code to identify the application that created a document. It used some hierarchy of rules to determine which application should open a document. The rules included the document creator code and the file extension and default settings. An excellent article about this issue and changes made to Snow Leopard is at: http://db.tidbits.com/article/10537 But here's a summary. As of yesterday, my python files would sometimes open in BBedit, IDLE, or VIDLE. I had tried to set them to all open in VIDLE, but evidently I did not set this properly. Anyway, the problem had to do with the fact that some py files were created in BBedit, some were created in IDLE, and some were created recently in VIDLE. Because Snow Leopard no longer looks at the document creator code, all of my .py files are now opening in VIDLE. I actually like this change to Snow Leopard because I want to have all of my files with a certain extension open in the same application. However, some long-time Mac users are lamenting this change. In this regard, I am now finally content in writing python programs in VPython. (In the past, I exclusively used BBedit as my editor and ran the programs from the command line.) Aaron On Sep 8, 2009, at 1:54 PM, Joe Heafner wrote: > Over the weekend, I upgraded one of my MacBook Pros to Snow Leopard. > FYI, VPython under Python 2.6.x seems to be working perfectly. Has > anyone else tried it and found any problems? > > Joe Heafner (follow me on Twitter: twitter.com/heafnerj) > email: heafnerj(at)gmail(dot)com URL: www(dot)SticksAndShadows(dot)com > > > > > > ------------------------------------------------------------------------------ > 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 |
From: Joe H. <hea...@gm...> - 2009-09-08 17:54:44
|
Over the weekend, I upgraded one of my MacBook Pros to Snow Leopard. FYI, VPython under Python 2.6.x seems to be working perfectly. Has anyone else tried it and found any problems? Joe Heafner (follow me on Twitter: twitter.com/heafnerj) email: heafnerj(at)gmail(dot)com URL: www(dot)SticksAndShadows(dot)com |
From: Stef M. <s.m...@ru...> - 2009-09-07 15:14:43
|
Bruce Sherwood wrote: > I myself don't know anything about these other environments into which people > want to embed Visual, so someone other than me will have to look for a solution. > I thought that there had been some discussion a few months ago in this list by > people who had successfully embedded Visual in some larger environment? > > yep in wxPython, see http://mientki.ruhosting.nl/data_www/pylab_works/pw_vpython_docking.html cheers, Stef > Bruce Sherwood > > Matteo Malosio wrote: > >> Hi, >> no good news. I have tried to create an independent thread to manage >> only VPython, but it didn't work :-) >> >> I really don't know how to solve the preblem. >> >> Thank you >> >> Matteo >> >> >> >> Piotr Byzia ha scritto: >> >>>> Dears, >>>> I've a problem integrating VPython5 with PyQt4. If anyone can help me... >>>> thanks a lot! >>>> >>>> >>>> Here is the problem: >>>> >>>> The following code should show a PyQt4 form together with a VPython >>>> scene. >>>> Using VPython3 it works correctly, while useing VPython5 it crashes. >>>> Does anyone has experience on facing this problem? >>>> I would be very grateful if anyone can help me. >>>> >>>> from visual import * >>>> from PyQt4 import QtCore, QtGui >>>> import sys >>>> >>>> class MainWindow(QtGui.QMainWindow): >>>> def __init__(self): >>>> QtGui.QDialog.__init__(self) >>>> >>>> scene.visible = 1 >>>> b = box() >>>> >>>> app = QtGui.QApplication(sys.argv) >>>> window = MainWindow() >>>> window.show() >>>> sys.exit(app.exec_()) >>>> >>>> >>>> replacing >>>> >>>> scene.visible = 1 >>>> >>>> >>>> with >>>> >>>> scene.visible = 0 >>>> >>>> >>>> it works and the Qt window is shown also with VPython5 (but the scene >>>> can't be obviously seen!). >>>> >>> Hi Matteo, >>> >>> Recently, I also tried to embed VPython window into QT using PyQT, but >>> also with no luck :( >>> Have you discovered anything new on that matter? >>> >>> Below is my code: >>> >>> from PyQt4 import QtCore, QtGui >>> >>> from visual import * >>> >>> class Ball(QtGui.QGraphicsItem): >>> def __init__(self): >>> super(Ball, self).__init__() >>> >>> self.shape = sphere(pos=(17.047, 14.099, 3.625),radius=1) >>> >>> >>> if __name__ == '__main__': >>> >>> app = QtGui.QApplication(sys.argv) >>> >>> scene_qt = QtGui.QGraphicsScene() >>> scene_qt.setSceneRect(-300, -300, 600, 600) >>> scene_qt.setItemIndexMethod(QtGui.QGraphicsScene.NoIndex) >>> >>> # scene2 = display(title='Graph of position', width=600, >>> height=200, center=(5,0,0), background=(0,1,1)) >>> >>> ball = Ball() >>> scene_qt.addItem(ball) >>> >>> # ball = sphere(pos=(17.047, 14.099, 3.625),radius=1) >>> >>> view = QtGui.QGraphicsView(scene_qt) >>> view.show() >>> >>> sys.exit(app.exec_()) >>> >>> >>> >>> Best, >>> Piotr Byzia >>> >> -- >> ------------------------------------------------------- >> Matteo Malosio, Eng. >> Researcher >> ITIA-CNR (www.itia.cnr.it) >> Institute of Industrial Technologies and Automation >> National Research Council >> via Bassini 15, 20133 MILANO, ITALY >> Ph: +39 0223699978 >> Fax: +39 0223699925 >> e-mail: mat...@it... >> ------------------------------------------------------- >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> 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 >> > > ------------------------------------------------------------------------------ > 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 > > > |
From: Bruce S. <Bru...@nc...> - 2009-09-07 14:53:03
|
I myself don't know anything about these other environments into which people want to embed Visual, so someone other than me will have to look for a solution. I thought that there had been some discussion a few months ago in this list by people who had successfully embedded Visual in some larger environment? Bruce Sherwood Matteo Malosio wrote: > Hi, > no good news. I have tried to create an independent thread to manage > only VPython, but it didn't work :-) > > I really don't know how to solve the preblem. > > Thank you > > Matteo > > > > Piotr Byzia ha scritto: >>> Dears, >>> I've a problem integrating VPython5 with PyQt4. If anyone can help me... >>> thanks a lot! >>> >>> >>> Here is the problem: >>> >>> The following code should show a PyQt4 form together with a VPython >>> scene. >>> Using VPython3 it works correctly, while useing VPython5 it crashes. >>> Does anyone has experience on facing this problem? >>> I would be very grateful if anyone can help me. >>> >>> from visual import * >>> from PyQt4 import QtCore, QtGui >>> import sys >>> >>> class MainWindow(QtGui.QMainWindow): >>> def __init__(self): >>> QtGui.QDialog.__init__(self) >>> >>> scene.visible = 1 >>> b = box() >>> >>> app = QtGui.QApplication(sys.argv) >>> window = MainWindow() >>> window.show() >>> sys.exit(app.exec_()) >>> >>> >>> replacing >>> >>> scene.visible = 1 >>> >>> >>> with >>> >>> scene.visible = 0 >>> >>> >>> it works and the Qt window is shown also with VPython5 (but the scene >>> can't be obviously seen!). >> >> Hi Matteo, >> >> Recently, I also tried to embed VPython window into QT using PyQT, but >> also with no luck :( >> Have you discovered anything new on that matter? >> >> Below is my code: >> >> from PyQt4 import QtCore, QtGui >> >> from visual import * >> >> class Ball(QtGui.QGraphicsItem): >> def __init__(self): >> super(Ball, self).__init__() >> >> self.shape = sphere(pos=(17.047, 14.099, 3.625),radius=1) >> >> >> if __name__ == '__main__': >> >> app = QtGui.QApplication(sys.argv) >> >> scene_qt = QtGui.QGraphicsScene() >> scene_qt.setSceneRect(-300, -300, 600, 600) >> scene_qt.setItemIndexMethod(QtGui.QGraphicsScene.NoIndex) >> >> # scene2 = display(title='Graph of position', width=600, >> height=200, center=(5,0,0), background=(0,1,1)) >> >> ball = Ball() >> scene_qt.addItem(ball) >> >> # ball = sphere(pos=(17.047, 14.099, 3.625),radius=1) >> >> view = QtGui.QGraphicsView(scene_qt) >> view.show() >> >> sys.exit(app.exec_()) >> >> >> >> Best, >> Piotr Byzia > > -- > ------------------------------------------------------- > Matteo Malosio, Eng. > Researcher > ITIA-CNR (www.itia.cnr.it) > Institute of Industrial Technologies and Automation > National Research Council > via Bassini 15, 20133 MILANO, ITALY > Ph: +39 0223699978 > Fax: +39 0223699925 > e-mail: mat...@it... > ------------------------------------------------------- > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 |
From: Matteo M. <mat...@it...> - 2009-09-07 11:14:01
|
Hi, no good news. I have tried to create an independent thread to manage only VPython, but it didn't work :-) I really don't know how to solve the preblem. Thank you Matteo Piotr Byzia ha scritto: >> Dears, >> I've a problem integrating VPython5 with PyQt4. If anyone can help me... >> thanks a lot! >> >> >> Here is the problem: >> >> The following code should show a PyQt4 form together with a VPython >> scene. >> Using VPython3 it works correctly, while useing VPython5 it crashes. >> Does anyone has experience on facing this problem? >> I would be very grateful if anyone can help me. >> >> from visual import * >> from PyQt4 import QtCore, QtGui >> import sys >> >> class MainWindow(QtGui.QMainWindow): >> def __init__(self): >> QtGui.QDialog.__init__(self) >> >> scene.visible = 1 >> b = box() >> >> app = QtGui.QApplication(sys.argv) >> window = MainWindow() >> window.show() >> sys.exit(app.exec_()) >> >> >> replacing >> >> scene.visible = 1 >> >> >> with >> >> scene.visible = 0 >> >> >> it works and the Qt window is shown also with VPython5 (but the scene >> can't be obviously seen!). > > Hi Matteo, > > Recently, I also tried to embed VPython window into QT using PyQT, but > also with no luck :( > Have you discovered anything new on that matter? > > Below is my code: > > from PyQt4 import QtCore, QtGui > > from visual import * > > class Ball(QtGui.QGraphicsItem): > def __init__(self): > super(Ball, self).__init__() > > self.shape = sphere(pos=(17.047, 14.099, 3.625),radius=1) > > > if __name__ == '__main__': > > app = QtGui.QApplication(sys.argv) > > scene_qt = QtGui.QGraphicsScene() > scene_qt.setSceneRect(-300, -300, 600, 600) > scene_qt.setItemIndexMethod(QtGui.QGraphicsScene.NoIndex) > > # scene2 = display(title='Graph of position', width=600, > height=200, center=(5,0,0), background=(0,1,1)) > > ball = Ball() > scene_qt.addItem(ball) > > # ball = sphere(pos=(17.047, 14.099, 3.625),radius=1) > > view = QtGui.QGraphicsView(scene_qt) > view.show() > > sys.exit(app.exec_()) > > > > Best, > Piotr Byzia -- ------------------------------------------------------- Matteo Malosio, Eng. Researcher ITIA-CNR (www.itia.cnr.it) Institute of Industrial Technologies and Automation National Research Council via Bassini 15, 20133 MILANO, ITALY Ph: +39 0223699978 Fax: +39 0223699925 e-mail: mat...@it... ------------------------------------------------------- |
From: Piotr B. <pio...@gm...> - 2009-09-07 10:46:47
|
> Dears, > I've a problem integrating VPython5 with PyQt4. If anyone can help > me... > thanks a lot! > > > Here is the problem: > > The following code should show a PyQt4 form together with a VPython > scene. > Using VPython3 it works correctly, while useing VPython5 it crashes. > Does anyone has experience on facing this problem? > I would be very grateful if anyone can help me. > > from visual import * > from PyQt4 import QtCore, QtGui > import sys > > class MainWindow(QtGui.QMainWindow): > def __init__(self): > QtGui.QDialog.__init__(self) > > scene.visible = 1 > b = box() > > app = QtGui.QApplication(sys.argv) > window = MainWindow() > window.show() > sys.exit(app.exec_()) > > > replacing > > scene.visible = 1 > > > with > > scene.visible = 0 > > > it works and the Qt window is shown also with VPython5 (but the scene > can't be obviously seen!). Hi Matteo, Recently, I also tried to embed VPython window into QT using PyQT, but also with no luck :( Have you discovered anything new on that matter? Below is my code: from PyQt4 import QtCore, QtGui from visual import * class Ball(QtGui.QGraphicsItem): def __init__(self): super(Ball, self).__init__() self.shape = sphere(pos=(17.047, 14.099, 3.625),radius=1) if __name__ == '__main__': app = QtGui.QApplication(sys.argv) scene_qt = QtGui.QGraphicsScene() scene_qt.setSceneRect(-300, -300, 600, 600) scene_qt.setItemIndexMethod(QtGui.QGraphicsScene.NoIndex) # scene2 = display(title='Graph of position', width=600, height=200, center=(5,0,0), background=(0,1,1)) ball = Ball() scene_qt.addItem(ball) # ball = sphere(pos=(17.047, 14.099, 3.625),radius=1) view = QtGui.QGraphicsView(scene_qt) view.show() sys.exit(app.exec_()) Best, Piotr Byzia |
From: Bruce S. <Bru...@nc...> - 2009-09-05 15:18:29
|
The issue isn't how to find a workaround; this is a real bug. Thanks, Aaron, for reporting it. Many similar problems were solved, but we missed this one. The problem is that when the old Numeric module was replaced by numpy, many operations that used to return ordinary types suddenly now returned things like numpy.float64, and some fancy footwork was required to get around problems of the kind you found. Bruce Sherwood Symion wrote: > Aaron Miller wrote: >> Hi VPython folks, >> >> I was attempting to run the contributed script >> http://vpython.org/contributed/bodies.py and I get an error... I have >> tracked it down to the fact that the dot product dot(a,b) between two >> vectors returns a type of numpy.float64 and when I multiply this by a >> vector I get back an array instead of a vector. >> >> A simple example that generates an error for me: >> >> from visual import * >> a=vector(1,0,0) >> b=dot(a,a)*a >> b.mag >> >> Here is the error: >> Traceback (most recent call last): >> File "Untitled", line 4 >> b.mag >> AttributeError: 'numpy.ndarray' object has no attribute 'mag' >> >> Of course, by assigning b as vector(dot(a,a)*a) we fix this, but it >> seems this should not be needed. Is this a bug? >> >> Thanks, >> Aaron >> Python 2.6.2 with VPython 5.12 >> >> ------------------------------------------------------ >> Aaron J. Miller, Ph.D. >> Department of Physics >> 328 Palenske Hall >> Albion College, Albion, MI 49224 >> ------------------------------------------------------------------------ >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > > Try this. > > from visual import * > a=vector(1,0,0) > b=vector(dot(a,a)*a) > b.mag > > Symion |
From: Symion <kn...@ip...> - 2009-09-05 13:24:03
|
Aaron Miller wrote: > Hi VPython folks, > > I was attempting to run the contributed script > http://vpython.org/contributed/bodies.py and I get an error... I have > tracked it down to the fact that the dot product dot(a,b) between two > vectors returns a type of numpy.float64 and when I multiply this by a > vector I get back an array instead of a vector. > > A simple example that generates an error for me: > > from visual import * > a=vector(1,0,0) > b=dot(a,a)*a > b.mag > > Here is the error: > Traceback (most recent call last): > File "Untitled", line 4 > b.mag > AttributeError: 'numpy.ndarray' object has no attribute 'mag' > > Of course, by assigning b as vector(dot(a,a)*a) we fix this, but it > seems this should not be needed. Is this a bug? > > Thanks, > Aaron > Python 2.6.2 with VPython 5.12 > > ------------------------------------------------------ > Aaron J. Miller, Ph.D. > Department of Physics > 328 Palenske Hall > Albion College, Albion, MI 49224 > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 > Try this. from visual import * a=vector(1,0,0) b=vector(dot(a,a)*a) b.mag Symion |
From: Aaron M. <ajm...@al...> - 2009-09-05 13:14:10
|
Hi VPython folks, I was attempting to run the contributed script http://vpython.org/contributed/bodies.py and I get an error... I have tracked it down to the fact that the dot product dot(a,b) between two vectors returns a type of numpy.float64 and when I multiply this by a vector I get back an array instead of a vector. A simple example that generates an error for me: from visual import * a=vector(1,0,0) b=dot(a,a)*a b.mag Here is the error: Traceback (most recent call last): File "Untitled", line 4 b.mag AttributeError: 'numpy.ndarray' object has no attribute 'mag' Of course, by assigning b as vector(dot(a,a)*a) we fix this, but it seems this should not be needed. Is this a bug? Thanks, Aaron Python 2.6.2 with VPython 5.12 ------------------------------------------------------ Aaron J. Miller, Ph.D. Department of Physics 328 Palenske Hall Albion College, Albion, MI 49224 |
From: Tony R. <To...@br...> - 2009-09-04 07:47:55
|
There is a package in sid, but it's deps are for python 2.5 not 2.6, you have to edit that to install to ubuntu, but I think it worked fine in testing/squeeze On Sep 4, 2009, at 2:41 AM, "Adrian Martÿffffednez" <adriangeologo@yahoo.e s> wrote: > Some one have the debian packages for vpython5. I have problems of > dependence to compile de source. To distribute vpython for real free > peoples working with Linux is better to use .deb files and redhat > packages! > > > > > > --- > --- > --- > --------------------------------------------------------------------- > 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 > > Tony Risinger Application Development Specialist Tel: 507-535-7563 | Fax: 507-292-5747 | Toll Free: 866-241-0639 To...@Br... http://www.brokerbin.com/ CONFIDENTIAL INFORMATION: This electronic mail message and any attached files contain information intended for the exclusive use of the specific individual(s) or entity(s) to whom it is addressed and may contain information that is propriety, privileged or confidential or otherwise exempt from disclosure. If you are not the intended recipient, please notify the sender immediately, by reply electronic mail or by telephone, of any unintended recipients so we may correct our records. Also, delete the original electronic mail and any attachments without making any copies of the electronic mail message or attachments. |
From: Adrian M. <adr...@ya...> - 2009-09-04 07:43:21
|
I’m using boa-constructor to create GUI in python with wxpython, and Vpython for 3D and 2D graph. Using the property “exit=false” for “display” allow me to continue with may nice GUI. The problem is that with gcurve this property doesn’t work! I’m wrong, some ideas? Below is the code… (you need to install wxpython) (tested in Linux debian python2.5 and vpython 3.n; and in windows python2.6 vpython5) Build with boa-constructor need wxpython File: Frame1.py ______________________________________________ #Boa:Frame:Frame1 import wx from visual import * from visual.graph import * def create(parent): return Frame1(parent) [wxID_FRAME1] = [wx.NewId() for _init_ctrls in range(1)] [wxID_FRAME1MENU1TEST2D, wxID_FRAME1MENU1TEST3D, ] = [wx.NewId() for _init_coll_menu1_Items in range(2)] class Frame1(wx.Frame): def _init_utils(self): # generated method, don't edit self.menu1 = wx.Menu(title='') self.menuBar1 = wx.MenuBar() self._init_coll_menu1_Items(self.menu1) self._init_coll_menuBar1_Menus(self.menuBar1) def _init_coll_menuBar1_Menus(self, parent): # generated method, don't edit parent.Append(menu=self.menu1, title=u'File') def _init_coll_menu1_Items(self, parent): # generated method, don't edit parent.Append(help='', id=wxID_FRAME1MENU1TEST3D, kind=wx.ITEM_NORMAL, text=u'test 3D') parent.Append(help='', id=wxID_FRAME1MENU1TEST2D, kind=wx.ITEM_NORMAL, text=u'test 2D') self.Bind(wx.EVT_MENU, self.OnMenu1Test3dMenu, id=wxID_FRAME1MENU1TEST3D) self.Bind(wx.EVT_MENU, self.OnMenu1Test2dMenu, id=wxID_FRAME1MENU1TEST2D) def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, pos=wx.Point(486, 335), size=wx.Size(400, 250), style=wx.DEFAULT_FRAME_STYLE, title='Frame1') self._init_utils() self.SetClientSize(wx.Size(392, 216)) self.SetMenuBar(self.menuBar1) def __init__(self, parent): self._init_ctrls(parent) # &&&&&&&&&&&&&&&&&&&&&&& That is the Vpython Code &&&&&&&&&&&&&& def OnMenu1Test3dMenu(self, event): #Work scene=display(title='Un ejemplo') scene.exit=false floor = box(length=4, height=0.5, width=4, color=color.blue) ball = sphere(pos=(0,4,0), color=color.red) ball.velocity = vector(0,-1,0) def OnMenu1Test2dMenu(self, event): #Work but close the GUI at the end! oscillation = gdisplay(xtitle='Time', ytitle='Response') oscillation.exit=false #don't work funct1 = gcurve(color=color.cyan) funct2 = gvbars(delta=0.5, color=color.red) funct3 = gdots(color=color.yellow) for t in arange(-30, 74, 1): funct1.plot( pos=(t, 5.0+5.0*cos(-0..2*t)*exp(0.015*t)) ) funct2.plot( pos=(t, 2.0+5.0*cos(-0.1*t)*exp(0.015*t)) ) funct3.plot( pos=(t, 5.0*cos(-0.03*t)*exp(0.015*t)) ) ________________________________________________ File: App1.py (run this file..) ______________________________________________ #!/usr/bin/env python #Boa:App:BoaApp import wx import Frame1 modules ={'Frame1': [1, 'Main frame of Application', u'Frame1.py']} class BoaApp(wx.App): def OnInit(self): self.main = Frame1.create(None) self.main.Show() self.SetTopWindow(self.main) return True def main(): application = BoaApp(0) application.MainLoop() if __name__ == '__main__': main() |
From: Adrian M. <adr...@ya...> - 2009-09-04 07:39:47
|
Some one have the debian packages for vpython5. I have problems of dependence to compile de source. To distribute vpython for real free peoples working with Linux is better to use .deb files and redhat packages! |
From: Bruce S. <Bru...@nc...> - 2009-09-03 17:46:47
|
Ruth Chabay's Physics Education Research graduate students at NCSU have been doing R&D on how best to teach computational modeling. One of their activities is that they are starting to post short videos to teach basic VPython concepts. You can find these at http://www.youtube.com/vpythonvideos This is a new work in progress, and you are encouraged to leave comments in the comment area about the videos. We think that these little videos may be much better than written instructions for some aspects of teaching computation. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2009-09-01 17:47:05
|
The error message is pretty clear: You need to install the Boost thread development package. Bruce Sherwood Lindeval Fernandes de Lima wrote: > > Dears, > > I'm get error compiling visual-python. My distribution is Slackware > 12.2 and my version python is 6.2. Below follow the output error: > > Compiling ./gtk2/font_renderer.cpp ... > Compiling ./gtk2/render_surface.cpp ... > Compiling ./python/wrap_display_kernel.cpp ... > Linking cvisualmodule.la ... > make[1]: *** [cvisualmodule.la] Error 1 > make[1]: Leaving directory `/home/lindeval/visual-5.12_release/src' > make: *** [all-recursive] Error 1 > > the last lines of file src/build.log: > > /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: > cannot find -lboost_thread > collect2: ld returned 1 exit status > > > tank you for any help!! |
From: Lindeval F. de L. <lin...@ya...> - 2009-09-01 17:40:47
|
Dears, I'm get error compiling visual-python. My distribution is Slackware 12.2 and my version python is 6.2. Below follow the output error: Compiling ./gtk2/font_renderer.cpp ... Compiling ./gtk2/render_surface.cpp ... Compiling ./python/wrap_display_kernel.cpp ... Linking cvisualmodule.la ... make[1]: *** [cvisualmodule.la] Error 1 make[1]: Leaving directory `/home/lindeval/visual-5.12_release/src' make: *** [all-recursive] Error 1 the last lines of file src/build.log: /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lboost_thread collect2: ld returned 1 exit status tank you for any help!! ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com |
From: Bruce S. <Bru...@nc...> - 2009-09-01 16:31:07
|
The issue is that until Ubuntu 9.04, the standard place for 3rd-party modules such as Visual was /usr/lib/python2.6/site-packages if you were using /usr/bin/python2.6, or else /usr/local/lib/python2.6/site-packages if you were using /usr/local/bin/python2.6. As a result, the "autoconfigure" script for VPython places the Visual module in one of these site-packages locations, depending on whether in your configure statement you say "--prefix=/usr" or "--prefix=/usr/local" (the latter being the default). However, starting with Ubuntu 9.04, 3rd-party packages are apparently supposed to be somewhere else (dist-packages), and there seems to be some confusion about what is the new convention. More seriously, site-packages is apparently no longer on Python's module search path. That is, Python doesn't look in site-packages to find modules. This is a problem because at present the autoconfigure procedure will install Visual in the specified site-packages, not dist-packages. A possible scheme to deal with this is outlined in the comments you quote. The configure statement PYTHON=/usr/bin/python ../vpython-core2/configure --prefix=/usr/local/lib says "I'm using the python found in /usr/bin (which in Ubuntu 9.04 is equivalent to /usr/bin/python2.6), but I want the Visual module to be put in /usr/local/lib/site-packages". And then you need to copy vpython-core2/src/gtk2/site-packages.pth to /usr/lib/python2.6/dist-packages to put /usr/local/lib/python2.6/site-packages on the Python search path. The contents of vpython-core2/src/gtk2/site-packages.pth is simply /usr/local/lib/python2.6/site-packages. Bruce Sherwood Matteo Malosio wrote: > I'm trying to install VPython5 on Ubuntu but I've some doubt about the > "configure" process. > I can't understand what is reported in the Install file: > > " There have been significant changes in where 3rd-party software is > stored on > Ubuntu 9.04. You probably want to use /usr/bin/python2.6 but store > the Visual > module in /usr/local/lib/python2.6/site-packages. To configure, do > this in a > folder parallel to vpython-core2: > > PYTHON=/usr/bin/python ../vpython-core2/configure > --prefix=/usr/local/lib > > You will also need to copy vpython-core2/src/gtk2/site-packages.pth to > /usr/lib/python2.6/dist-packages to put > /usr/local/lib/python2.6/site-packages > on the Python search path." > > > Thank you! > > Matteo > > > > ------------------------------------------------------------------------------ > 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 |
From: Jim T. <jt...@mi...> - 2009-09-01 15:50:33
|
I'm running Ubuntu 9.04 AMD64. I do not get the errors you describe running visual 5.1 built from source. I did have an older version of visual installed from the repositories before that so perhaps there is some dependency that is installed on my system that configure did not catch on yours? However I do remember spending some time satisfying the dependencies to build it. JT Guenter Schneider wrote: > I ran into a number of problems with vpython on Linux which appear to be > all related. The problems do not happen in Windows. My system is ubuntu > 9.04, vpython 5.12 compiled from source (5.11 gives identical results). > > Thee common feature I see on Linux is, whenever vpython raises an > exception, python seg. faults. > > Example 1: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: > ...: > 1.0 > 2.0 > 3.0 > Segmentation fault > ~ $ > > but the following works: > > Example 2: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: if i>2: > ...: break > ...: > ...: > 1.0 > 2.0 > 3.0 > > This seems to point to the raising a StopIteration exception as the > problem point. > > Example 3: > In [1]: from visual import * > > In [2]: a = [1,2,3] > > In [3]: mag2(a) > Out[3]: 14.0 > > In [4]: a = [1,2,'x'] > > In [5]: mag2(a) > Segmentation fault > ~ $ > > It should have raised a TypeError as in this case > > In [1]: from visual import * > > In [2]: a = [1,2,'x'] > > In [3]: print a[0]*a[0]+a[1]*a[1]+a[2]*a[2] > ------> print(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]) > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > > Finally this fails as well: > > Example 5: > In [1]: from visual import * > > In [2]: quit() > Do you really want to exit ([y]/n)? > Segmentation fault > ~ $ > > This error is probably caused by a SystemExit exception. > > Is something wrong with my install? Hard to see how to go wrong there, > it's configure, make, make install and taking care of site-packages in > ubuntu 9.04. > > Thank you for your help and the great work. > > 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 > |
From: Matteo M. <mat...@it...> - 2009-09-01 12:49:23
|
I'm trying to install VPython5 on Ubuntu but I've some doubt about the "configure" process. I can't understand what is reported in the Install file: " There have been significant changes in where 3rd-party software is stored on Ubuntu 9.04. You probably want to use /usr/bin/python2.6 but store the Visual module in /usr/local/lib/python2.6/site-packages. To configure, do this in a folder parallel to vpython-core2: PYTHON=/usr/bin/python ../vpython-core2/configure --prefix=/usr/local/lib You will also need to copy vpython-core2/src/gtk2/site-packages.pth to /usr/lib/python2.6/dist-packages to put /usr/local/lib/python2.6/site-packages on the Python search path." Thank you! Matteo |
From: Guenter S. <Gue...@ph...> - 2009-09-01 03:53:01
|
See below. Robert Xiao wrote: > > > ---------- Forwarded message ---------- > From: *Robert Xiao* <nne...@gm... <mailto:nne...@gm...>> > Date: 2009/8/31 > Subject: Re: [Visualpython-users] Problems with exception handling in > vpython on Linux > To: Guenter Schneider <Gue...@ph... > <mailto:Gue...@ph...>> > > > 2009/8/31 Guenter Schneider <Gue...@ph... > <mailto:Gue...@ph...>> > > I ran into a number of problems with vpython on Linux which appear to be > all related. The problems do not happen in Windows. My system is ubuntu > 9.04, vpython 5.12 compiled from source (5.11 gives identical results). > > > What version of the Boost libraries are you using? boost 1.35 (libboost1.35-dev) > > > Thee common feature I see on Linux is, whenever vpython raises an > exception, python seg. faults. > > Example 1: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: > ...: > 1.0 > 2.0 > 3.0 > Segmentation fault > ~ $ > > but the following works: > > Example 2: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: if i>2: > ...: break > ...: > ...: > 1.0 > 2.0 > 3.0 > > This seems to point to the raising a StopIteration exception as the > problem point. > > > Example 3: > In [1]: from visual import * > > In [2]: a = [1,2,3] > > In [3]: mag2(a) > Out[3]: 14.0 > > In [4]: a = [1,2,'x'] > > In [5]: mag2(a) > Segmentation fault > ~ $ > > > It should have raised a TypeError as in this case > > It's actually Boost.Python.ArgumentError, since [1,2,'x'] can't be > coerced to a vector, so it is passed in as a list. I was guessing and did not try everything on Windows. > > >>> visual.mag2([1,2,'x']) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > Boost.Python.ArgumentError: Python argument types in > visual.cvisual.mag2(list) > did not match C++ signature: > mag2(class cvisual::vector) > mag2(class boost::python::numeric::array) > > > Finally this fails as well: > > Example 5: > In [1]: from visual import * > > In [2]: quit() > Do you really want to exit ([y]/n)? > Segmentation fault > ~ $ > > quit() is a Python built-in, and it isn't overridden by Visual. Does > quit() work if you don't import visual? Yes. > > Can you try these tests: > vector(1,2,3)[4] # throws std::out_of_range > vector('x') > faces(pos=[1]) > faces(normal=[]) > > These all directly throw exceptions. > All end in seg. faults on my system. In [1]: from visual import * In [2]: faces(normal=[]) Segmentation fault I appreciate your help. Guenter > > > 2009/8/31 Bruce Sherwood <Bru...@nc... > <mailto:Bru...@nc...>> > > Moreover, your Example 1 is exceptionally strange, as it should not > give an > > error of any kind (nor does it give an error for me). Is it possible > that > there's a typo in your reporting of Example 1? > > > StopIteration is raised by an iterator when it has no more objects to > iterate over. It is not an error, but it can be raised by an iterator. > > Robert > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > 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 -- ----------------------------------------------------- Guenter Schneider Email: Gue...@ph... Phone: 541 737 1706 Fax: 541 737 1683 Oregon State University Department of Physics 301 Weniger Hall Corvallis, OR 97331-6507, USA ----------------------------------------------------- |
From: Bruce S. <Bru...@nc...> - 2009-09-01 03:34:43
|
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 > |
From: Guenter S. <Gue...@ph...> - 2009-08-31 23:55:22
|
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 Bruce Sherwood wrote: > I too am running Ubuntu 9.04, Visual 5.12, and I cannot reproduce any of these > errors. I have no idea what could be wrong. What is the statement you used to > configure the make? > > Moreover, your Example 1 is exceptionally strange, as it should not give an > error of any kind (nor does it give an error for me). Is it possible that > there's a typo in your reporting of Example 1? > > Bruce Sherwood > > Guenter Schneider wrote: >> I ran into a number of problems with vpython on Linux which appear to be >> all related. The problems do not happen in Windows. My system is ubuntu >> 9.04, vpython 5.12 compiled from source (5.11 gives identical results). >> >> Thee common feature I see on Linux is, whenever vpython raises an >> exception, python seg. faults. >> >> Example 1: >> >> In [1]: from visual import * >> >> In [2]: a = vector(1,2,3) >> >> In [3]: for i in a: >> ...: print i >> ...: >> ...: >> 1.0 >> 2.0 >> 3.0 >> Segmentation fault >> ~ $ >> >> but the following works: >> >> Example 2: >> >> In [1]: from visual import * >> >> In [2]: a = vector(1,2,3) >> >> In [3]: for i in a: >> ...: print i >> ...: if i>2: >> ...: break >> ...: >> ...: >> 1.0 >> 2.0 >> 3.0 >> >> This seems to point to the raising a StopIteration exception as the >> problem point. >> >> Example 3: >> In [1]: from visual import * >> >> In [2]: a = [1,2,3] >> >> In [3]: mag2(a) >> Out[3]: 14.0 >> >> In [4]: a = [1,2,'x'] >> >> In [5]: mag2(a) >> Segmentation fault >> ~ $ >> >> It should have raised a TypeError as in this case >> >> In [1]: from visual import * >> >> In [2]: a = [1,2,'x'] >> >> In [3]: print a[0]*a[0]+a[1]*a[1]+a[2]*a[2] >> ------> print(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]) >> --------------------------------------------------------------------------- >> TypeError Traceback (most recent call last) >> >> Finally this fails as well: >> >> Example 5: >> In [1]: from visual import * >> >> In [2]: quit() >> Do you really want to exit ([y]/n)? >> Segmentation fault >> ~ $ >> >> This error is probably caused by a SystemExit exception. >> >> Is something wrong with my install? Hard to see how to go wrong there, >> it's configure, make, make install and taking care of site-packages in >> ubuntu 9.04. >> >> Thank you for your help and the great work. >> >> 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 > > ------------------------------------------------------------------------------ > 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 |
From: Robert X. <nne...@gm...> - 2009-08-31 23:09:27
|
---------- Forwarded message ---------- From: Robert Xiao <nne...@gm...> Date: 2009/8/31 Subject: Re: [Visualpython-users] Problems with exception handling in vpython on Linux To: Guenter Schneider <Gue...@ph...> 2009/8/31 Guenter Schneider <Gue...@ph...> > I ran into a number of problems with vpython on Linux which appear to be > all related. The problems do not happen in Windows. My system is ubuntu > 9.04, vpython 5.12 compiled from source (5.11 gives identical results). > What version of the Boost libraries are you using? > Thee common feature I see on Linux is, whenever vpython raises an > exception, python seg. faults. > > Example 1: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: > ...: > 1.0 > 2.0 > 3.0 > Segmentation fault > ~ $ > > but the following works: > > Example 2: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: if i>2: > ...: break > ...: > ...: > 1.0 > 2.0 > 3.0 > > This seems to point to the raising a StopIteration exception as the > problem point. > > Example 3: > In [1]: from visual import * > > In [2]: a = [1,2,3] > > In [3]: mag2(a) > Out[3]: 14.0 > > In [4]: a = [1,2,'x'] > > In [5]: mag2(a) > Segmentation fault > ~ $ > > It should have raised a TypeError as in this case > It's actually Boost.Python.ArgumentError, since [1,2,'x'] can't be coerced to a vector, so it is passed in as a list. >>> visual.mag2([1,2,'x']) Traceback (most recent call last): File "<stdin>", line 1, in <module> Boost.Python.ArgumentError: Python argument types in visual.cvisual.mag2(list) did not match C++ signature: mag2(class cvisual::vector) mag2(class boost::python::numeric::array) > Finally this fails as well: > > Example 5: > In [1]: from visual import * > > In [2]: quit() > Do you really want to exit ([y]/n)? > Segmentation fault > ~ $ > quit() is a Python built-in, and it isn't overridden by Visual. Does quit() work if you don't import visual? Can you try these tests: vector(1,2,3)[4] # throws std::out_of_range vector('x') faces(pos=[1]) faces(normal=[]) These all directly throw exceptions. 2009/8/31 Bruce Sherwood <Bru...@nc...> > Moreover, your Example 1 is exceptionally strange, as it should not give an > error of any kind (nor does it give an error for me). Is it possible that > there's a typo in your reporting of Example 1? > StopIteration is raised by an iterator when it has no more objects to iterate over. It is not an error, but it can be raised by an iterator. Robert |
From: Bruce S. <Bru...@nc...> - 2009-08-31 22:38:00
|
I too am running Ubuntu 9.04, Visual 5.12, and I cannot reproduce any of these errors. I have no idea what could be wrong. What is the statement you used to configure the make? Moreover, your Example 1 is exceptionally strange, as it should not give an error of any kind (nor does it give an error for me). Is it possible that there's a typo in your reporting of Example 1? Bruce Sherwood Guenter Schneider wrote: > I ran into a number of problems with vpython on Linux which appear to be > all related. The problems do not happen in Windows. My system is ubuntu > 9.04, vpython 5.12 compiled from source (5.11 gives identical results). > > Thee common feature I see on Linux is, whenever vpython raises an > exception, python seg. faults. > > Example 1: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: > ...: > 1.0 > 2.0 > 3.0 > Segmentation fault > ~ $ > > but the following works: > > Example 2: > > In [1]: from visual import * > > In [2]: a = vector(1,2,3) > > In [3]: for i in a: > ...: print i > ...: if i>2: > ...: break > ...: > ...: > 1.0 > 2.0 > 3.0 > > This seems to point to the raising a StopIteration exception as the > problem point. > > Example 3: > In [1]: from visual import * > > In [2]: a = [1,2,3] > > In [3]: mag2(a) > Out[3]: 14.0 > > In [4]: a = [1,2,'x'] > > In [5]: mag2(a) > Segmentation fault > ~ $ > > It should have raised a TypeError as in this case > > In [1]: from visual import * > > In [2]: a = [1,2,'x'] > > In [3]: print a[0]*a[0]+a[1]*a[1]+a[2]*a[2] > ------> print(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]) > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > > Finally this fails as well: > > Example 5: > In [1]: from visual import * > > In [2]: quit() > Do you really want to exit ([y]/n)? > Segmentation fault > ~ $ > > This error is probably caused by a SystemExit exception. > > Is something wrong with my install? Hard to see how to go wrong there, > it's configure, make, make install and taking care of site-packages in > ubuntu 9.04. > > Thank you for your help and the great work. > > 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 |