From: Bruce S. <Bru...@nc...> - 2013-01-13 07:15:53
|
Here is detailed information on how VPython 6 differs from VPython 5, which will be incorporated in the Help for upcoming releases of VPython 6. Note that the fact that in a main program __name__ isn't '__main__' is an unavoidable "feature", not a bug. That is, there doesn't seem to be a way to make this work. As described below, the way to test a module is to import it from a test routine. Changes from VPython 5 The new version makes an essential change to the syntax of VPython programs. Now, an animation loop *MUST* contain a rate or sleep statement, which limits the number of loop iterations per second as before but also when appropriate (about 30 times per second) updates the 3D scene and handles mouse and keyboard events. Without a rate or sleep statement, the scene will not be updated until and unless the loop is completed. You should use the new function sleep rather than time.sleep. The new function periodically renders the scene and processes mouse events, making it possible to continue using zoom and rotate, whereas time.sleep does not do this. You must import visual or vis before importing graph or controls or filedialog, which most users have always done anyway. For technical reasons, it is necessary for VPython 6 to do something rather unusual. When you import visual (or vis), your own program is in turn imported by the visual module. For this reason, you should import visual near the start of your program, because any executable statements preceding the import will be executed twice. The import of visual is also re-executed, but this is harmless because in Python a repeated import doesn't repeat the calculations in the imported module. *Importing your own modules:* If you create your own module (lib.py, say) that imports visual, and you import lib from a program named demo.py, you need to import visual in demo.py before importing lib, so that demo is the base program (when lib imports visual, that will be the second import of visual and will not lead to lib being imported by visual). Note that the standard trick of testing a module on the basis of __name__=='__main__' won't work, because the program will be imported by visual. To test a module, import it from a test program rather than trying to use __name__=='__main__' within the module. |
From: C A. R. <an...@xt...> - 2013-01-13 11:02:46
|
On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > Here is detailed information on how VPython 6 differs from VPython 5, which > will be incorporated in the Help for upcoming releases of VPython 6. the website directs me to https://github.com/vpython/visual/ but this repository has not been updated since August, and no other branches exist. where is the development for VPython 6 happening? ...i would like to get a Linux build running for an in-house demo this Thursday, so any notes appreciated. note: i don't need a full-blown installable pip package or anything, just the code and any pertinent info related to the build :) for what it's worth, this is fantastic work! i've been "patiently" anticipating a Linux package, but i've no problem at all handling that part myself (im on Arch anyway... i expect Ubuntu or something is the focused target) thanks! -- C Anthony |
From: Bruce S. <Bru...@nc...> - 2013-01-13 15:41:08
|
Thanks for pointing out the outdated reference. Here is where the source code is: https://github.com/BruceSherwood/vpython-wx Steve Spicklemire is doing terrific work on simplifying building on all platforms, including Linux. For the moment, read the file INSTALL.txt. We have no Linux "target", but as it happens Steve and I have been doing our testing on Ubuntu. Don't hesitate to ask for clarification if you run into difficulties. Bruce Sherwood On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> wrote: > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> > wrote: > > Here is detailed information on how VPython 6 differs from VPython 5, > which > > will be incorporated in the Help for upcoming releases of VPython 6. > > the website directs me to https://github.com/vpython/visual/ but this > repository has not been updated since August, and no other branches > exist. > > where is the development for VPython 6 happening? > > ...i would like to get a Linux build running for an in-house demo this > Thursday, so any notes appreciated. note: i don't need a full-blown > installable pip package or anything, just the code and any pertinent > info related to the build :) > > for what it's worth, this is fantastic work! i've been "patiently" > anticipating a Linux package, but i've no problem at all handling that > part myself (im on Arch anyway... i expect Ubuntu or something is the > focused target) > > thanks! > > -- > > C Anthony > |
From: Bruce S. <Bru...@nc...> - 2013-01-13 16:12:23
|
vpython.org has been updated to reference the new source code repository. Bruce Sherwood On Sun, Jan 13, 2013 at 8:40 AM, Bruce Sherwood <Bru...@nc...>wrote: > Thanks for pointing out the outdated reference. Here is where the source > code is: > > https://github.com/BruceSherwood/vpython-wx > > Steve Spicklemire is doing terrific work on simplifying building on all > platforms, including Linux. For the moment, read the file INSTALL.txt. We > have no Linux "target", but as it happens Steve and I have been doing our > testing on Ubuntu. Don't hesitate to ask for clarification if you run into > difficulties. > > Bruce Sherwood > > > On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...>wrote: > >> On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> >> wrote: >> > Here is detailed information on how VPython 6 differs from VPython 5, >> which >> > will be incorporated in the Help for upcoming releases of VPython 6. >> >> the website directs me to https://github.com/vpython/visual/ but this >> repository has not been updated since August, and no other branches >> exist. >> >> where is the development for VPython 6 happening? >> >> ...i would like to get a Linux build running for an in-house demo this >> Thursday, so any notes appreciated. note: i don't need a full-blown >> installable pip package or anything, just the code and any pertinent >> info related to the build :) >> >> for what it's worth, this is fantastic work! i've been "patiently" >> anticipating a Linux package, but i've no problem at all handling that >> part myself (im on Arch anyway... i expect Ubuntu or something is the >> focused target) >> >> thanks! >> >> -- >> >> C Anthony >> > > |
From: Paul C. <PC...@sp...> - 2013-01-15 00:41:04
|
Trying to follow the instructions in INSTALL.txt. I get up to the patch and when I try to execute that, I get the following error message: can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------------------------------- Index:configure ============================================= - - - configure (revision 72192) + + + configure (working copy) --------------------------------------------------- Its certainly plausible that I'm located in the wrong directory. The instruction "place the file in the wxPython directory" is a little inscrutable since I didn't know off the bat exactly where that is. However, /usr/include/wx-2.8 certainly seems to contain all the relevant files addressed by the patch. What am I missing? Dr. Paul J. Camp Physics Department Spelman College Atlanta, GA 30314 404-270-5864 "The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose From: Bruce Sherwood <Bru...@nc...> To: C Anthony Risinger <an...@xt...> Cc: vpusers <vis...@li...> Date: 01/13/2013 10:42 AM Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 Thanks for pointing out the outdated reference. Here is where the source code is: https://github.com/BruceSherwood/vpython-wx Steve Spicklemire is doing terrific work on simplifying building on all platforms, including Linux. For the moment, read the file INSTALL.txt. We have no Linux "target", but as it happens Steve and I have been doing our testing on Ubuntu. Don't hesitate to ask for clarification if you run into difficulties. Bruce Sherwood On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> wrote: On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > Here is detailed information on how VPython 6 differs from VPython 5, which > will be incorporated in the Help for upcoming releases of VPython 6. the website directs me to https://github.com/vpython/visual/ but this repository has not been updated since August, and no other branches exist. where is the development for VPython 6 happening? ...i would like to get a Linux build running for an in-house demo this Thursday, so any notes appreciated. note: i don't need a full-blown installable pip package or anything, just the code and any pertinent info related to the build :) for what it's worth, this is fantastic work! i've been "patiently" anticipating a Linux package, but i've no problem at all handling that part myself (im on Arch anyway... i expect Ubuntu or something is the focused target) thanks! -- C Anthony ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Steve S. <st...@sp...> - 2013-01-15 00:45:22
|
The source you need is wxPython-2.9.4.0 not 2.8. Sorry. to apply the patch go to the wxPython-src-2.9.4.0 directory (not the wxPython directory that it contains) and type: patch -p0 < path/to/the/patch/file Let us know if that works! -steve On Jan 14, 2013, at 5:25 PM, Paul Camp wrote: > Trying to follow the instructions in INSTALL.txt. I get up to the patch and when I try to execute that, I get the following error message: > > can't find file to patch at input line 5 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------------------------------- > Index:configure > ============================================= > - - - configure (revision 72192) > + + + configure (working copy) > --------------------------------------------------- > > Its certainly plausible that I'm located in the wrong directory. The instruction "place the file in the wxPython directory" is a little inscrutable since I didn't know off the bat exactly where that is. However, /usr/include/wx-2.8 certainly seems to contain all the relevant files addressed by the patch. What am I missing? > > > Dr. Paul J. Camp > Physics Department > Spelman College > Atlanta, GA 30314 > 404-270-5864 > > "The beauty of the cosmos derives not only from unity in variety > but also from variety in unity" > -- Umberto Eco > The Name of the Rose > > > > From: Bruce Sherwood <Bru...@nc...> > To: C Anthony Risinger <an...@xt...> > Cc: vpusers <vis...@li...> > Date: 01/13/2013 10:42 AM > Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 > > > > Thanks for pointing out the outdated reference. Here is where the source code is: > > https://github.com/BruceSherwood/vpython-wx > > Steve Spicklemire is doing terrific work on simplifying building on all platforms, including Linux. For the moment, read the file INSTALL.txt. We have no Linux "target", but as it happens Steve and I have been doing our testing on Ubuntu. Don't hesitate to ask for clarification if you run into difficulties. > > Bruce Sherwood > > > On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> wrote: > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > > Here is detailed information on how VPython 6 differs from VPython 5, which > > will be incorporated in the Help for upcoming releases of VPython 6. > > the website directs me to https://github.com/vpython/visual/ but this > repository has not been updated since August, and no other branches > exist. > > where is the development for VPython 6 happening? > > ...i would like to get a Linux build running for an in-house demo this > Thursday, so any notes appreciated. note: i don't need a full-blown > installable pip package or anything, just the code and any pertinent > info related to the build :) > > for what it's worth, this is fantastic work! i've been "patiently" > anticipating a Linux package, but i've no problem at all handling that > part myself (im on Arch anyway... i expect Ubuntu or something is the > focused target) > > thanks! > > -- > > C Anthony > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_123012_______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512_______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Mark J. <dre...@gm...> - 2013-01-13 16:13:53
|
On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > Here is detailed information on how VPython 6 differs from VPython 5, which > will be incorporated in the Help for upcoming releases of VPython 6. Note > that the fact that in a main program __name__ isn't '__main__' is an > unavoidable "feature", not a bug. That is, there doesn't seem to be a way to > make this work. Hi, Bruce. I think there are two ways of fixing this. One is to get down to the C language level, and share the C main() loop, which will percolate back up into the CPython loop. The other involves mending the split that I've been mentioning that happened over floating point between the VPython developers and the Python-dev group. Then perhaps Guido will accept VPython using/sharing the __main__ "loop". (I'm CC'ing him in this message.) So, either of these tracks should fix this problem. This is why I keep mentioning the important of healing that split between the parties arguing in the two camps. Perhaps Tim Peters will be able help bridge this gap. > Changes from VPython 5 > > The new version makes an essential change to the syntax of VPython programs. > Now, an animation loop MUST contain a rate or sleep statement, which limits > the number of loop iterations per second as before but also when appropriate > (about 30 times per second) updates the 3D scene and handles mouse and > keyboard events. Without a rate or sleep statement, the scene will not be > updated until and unless the loop is completed. I think this is perfectly acceptible and is just a necessary restriction wherefrom the OS *must* maintain ultimate control of I/O. Python sits in userspace surrounded by the larger computation environment, so this is only fair that an OS call is made so that it can keep things in "check". Naming it "sleep" is okay, but makes it sound more like a voluntary thing, and as you probably know, is the traditional name for relinquishng some control to the OS. (cf. Unix Systems Programming, Robbins, et al.) > You should use the new function sleep rather than time.sleep. The new > function periodically renders the scene and processes mouse events, making > it possible to continue using zoom and rotate, whereas time.sleep does not > do this. This is strange to me. I think this is where VPython must be ahead of the curve and not close enough to the Linux development communities. > For technical reasons, it is necessary for VPython 6 to do something rather > unusual. When you import visual (or vis), your own program is in turn > imported by the visual module. Again this is because of the faction that was created by in 200?, regarding the Vpython community vs. the python-dev. Really, this should be mended. Anyway, I hope that any of this made sense. Thanks for your help! Mark |
From: Bruce S. <Bru...@nc...> - 2013-01-13 18:14:24
|
For the record, I do not know of any evidence whatsoever for a supposed "split" between the tiny VPython community and the huge Python community concerning floating point variables. Nor do I see anything in Python that needs to be "fixed". The new (currently experimental) version of VPython based on wxPython must, in order to run in a Cocoa environment on the Mac, make the interact loop be the primary thread, with the user's Python calculations at worst a secondary thread, which is the opposite of the older VPython, where the interval-driven rendering thread was secondary to the user's calculations. By the unusual stratagem of having VPython import the user's program it has been possible to make this work, and at the same time greatly simplify the C++ component of VPython by eliminating threading, with additional important simplification from eliminating essentially all platform-dependent code thanks to the multiplatform character of wxPython. The result is that nearly all existing VPython programs will work without change, at the very small cost of a few marginal cases requiring minor tweaking. I should alter the documentation to make this important property of the new version more salient. Minor point: The meaning of the new VPython "sleep" is precisely to relinquish control to the OS, including the GUI. During sleep one wants the wxPython window controls to remain active, which will not be the case with time.sleep, which knows nothing about the wxPython interact loop. So I think the meaning of "sleep" is the usual meaning. Bruce Sherwood On Sun, Jan 13, 2013 at 9:13 AM, Mark Janssen <dre...@gm...>wrote: > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> > wrote: > > Here is detailed information on how VPython 6 differs from VPython 5, > which > > will be incorporated in the Help for upcoming releases of VPython 6. Note > > that the fact that in a main program __name__ isn't '__main__' is an > > unavoidable "feature", not a bug. That is, there doesn't seem to be a > way to > > make this work. > > Hi, Bruce. I think there are two ways of fixing this. One is to get > down to the C language level, and share the C main() loop, which will > percolate back up into the CPython loop. The other involves mending > the split that I've been mentioning that happened over floating point > between the VPython developers and the Python-dev group. Then perhaps > Guido will accept VPython using/sharing the __main__ "loop". (I'm > CC'ing him in this message.) So, either of these tracks should fix > this problem. This is why I keep mentioning the important of healing > that split between the parties arguing in the two camps. Perhaps Tim > Peters will be able help bridge this gap. > > > Changes from VPython 5 > > > > The new version makes an essential change to the syntax of VPython > programs. > > Now, an animation loop MUST contain a rate or sleep statement, which > limits > > the number of loop iterations per second as before but also when > appropriate > > (about 30 times per second) updates the 3D scene and handles mouse and > > keyboard events. Without a rate or sleep statement, the scene will not be > > updated until and unless the loop is completed. > > I think this is perfectly acceptible and is just a necessary > restriction wherefrom the OS *must* maintain ultimate control of I/O. > Python sits in userspace surrounded by the larger computation > environment, so this is only fair that an OS call is made so that it > can keep things in "check". Naming it "sleep" is okay, but makes it > sound more like a voluntary thing, and as you probably know, is the > traditional name for relinquishng some control to the OS. (cf. Unix > Systems Programming, Robbins, et al.) > > > You should use the new function sleep rather than time.sleep. The new > > function periodically renders the scene and processes mouse events, > making > > it possible to continue using zoom and rotate, whereas time.sleep does > not > > do this. > > This is strange to me. I think this is where VPython must be ahead of > the curve and not close enough to the Linux development communities. > > > For technical reasons, it is necessary for VPython 6 to do something > rather > > unusual. When you import visual (or vis), your own program is in turn > > imported by the visual module. > > Again this is because of the faction that was created by in 200?, > regarding the Vpython community vs. the python-dev. Really, this > should be mended. > > Anyway, I hope that any of this made sense. > > Thanks for your help! > > Mark > |
From: Bruce S. <Bru...@nc...> - 2013-01-13 18:26:11
|
Here's an improved version of the differences between VPython 5 and 6; Changes from VPython 5 VPython 6 will run almost all old VPython programs correctly without change The following details about changes may be important in a few unusual cases. An animation loop must contain a rate or sleep statement, which limits the number of loop iterations per second as before but also when appropriate (about 30 times per second) updates the 3D scene and handles mouse and keyboard events. Without a rate or sleep statement, the scene will not be updated until and unless the loop is completed. Most animation loops already contain a rate statement anyway, to make the animation not run too fast. You should use the new function sleep rather than time.sleep. The new function periodically renders the scene and processes mouse events, making it possible to continue using zoom and rotate, whereas time.sleep does not do this. Programs that use time.sleep will work, but you won't be able to zoom or rotate during the sleep period. You must import visual or vis before importing graph or controls or filedialog, which most users have always done anyway. *Your own program is imported by VPython:* For technical reasons, it is necessary for VPython 6 to do something rather unusual. When you import visual (or vis), your own program is in turn imported by the visual module. For this reason, you should import visual near the start of your program, because any executable statements preceding the import will be executed twice. The import of visual is also re-executed, but this is harmless because in Python a repeated import doesn't repeat the calculations in the imported module. *Importing your own modules:* If you create your own module (lib.py, say) that imports visual, and you import lib from a program named demo.py, you need to import visual in demo.py before importing lib, so that demo is the base program (when lib imports visual, that will be the second import of visual and will not lead to lib being imported by visual). Note that the standard trick of testing a module on the basis of __name__=='__main__' won't work, because the program will be imported by visual. To test a module, import it from a test program rather than trying to use __name__=='__main__' within the module. |
From: Mark J. <dre...@gm...> - 2013-01-14 01:41:43
|
On Sun, Jan 13, 2013 at 12:14 PM, Bruce Sherwood <Bru...@nc...> wrote: > For the record, I do not know of any evidence whatsoever for a supposed > "split" between the tiny VPython community and the huge Python community > concerning floating point variables. Nor do I see anything in Python that > needs to be "fixed". Well it was bit enough that the python community created a brand-new language construct called import __future__ -- something never considered before then and which actually changes the behavior of python unlike any other module. And perhaps I've just felt it more because I was a big proponent of both 3-d graphics as a way to keep python a draw for beginning programmers and also a big fan of scientific simulation. No one had anything near vpython back then. (But ultimately I need to stop mentioning this issue to this vpython list because it's really the Python group which need to get back in sync.) > The new (currently experimental) version of VPython based on wxPython must, > in order to run in a Cocoa environment on the Mac, make the interact loop be > the primary thread, with the user's Python calculations at worst a secondary > thread, which is the opposite of the older VPython, where the > interval-driven rendering thread was secondary to the user's calculations. > By the unusual stratagem of having VPython import the user's program it has > been possible to make this work, and at the same time greatly simplify the > C++ component of VPython by eliminating threading, with additional important > simplification from eliminating essentially all platform-dependent code > thanks to the multiplatform character of wxPython. The result is that nearly > all existing VPython programs will work without change, at the very small > cost of a few marginal cases requiring minor tweaking. I should alter the > documentation to make this important property of the new version more > salient. I need to analyze this more carefully before commenting further.... mark |
From: Bruce S. <Bru...@nc...> - 2013-01-14 02:59:05
|
Since this was copied to the Python-Dev list, I want to go on record as stating firmly that there is no evidence whatsoever to substantiate claims that there has ever been some kind of conflict between VPython and Python. Since __future__ was also mentioned, I'll take the opportunity to say that I've been very impressed by the way the Python community has handled the difficult 2->3 transition. For example, it has been a big help to the educational uses of VPython that we could tell students simply to start with "from __future__ import division, print_function", put parens around print arguments, and thereby make it irrelevant whether they used Python 2 or Python 3. Many thanks to the Python development community! Bruce Sherwood On Sun, Jan 13, 2013 at 6:41 PM, Mark Janssen <dre...@gm...>wrote: > On Sun, Jan 13, 2013 at 12:14 PM, Bruce Sherwood > <Bru...@nc...> wrote: > > For the record, I do not know of any evidence whatsoever for a supposed > > "split" between the tiny VPython community and the huge Python community > > concerning floating point variables. Nor do I see anything in Python that > > needs to be "fixed". > > Well it was bit enough that the python community created a brand-new > language construct called import __future__ -- something never > considered before then and which actually changes the behavior of > python unlike any other module. And perhaps I've just felt it more > because I was a big proponent of both 3-d graphics as a way to keep > python a draw for beginning programmers and also a big fan of > scientific simulation. No one had anything near vpython back then. > (But ultimately I need to stop mentioning this issue to this vpython > list because it's really the Python group which need to get back in > sync.) > > > The new (currently experimental) version of VPython based on wxPython > must, > > in order to run in a Cocoa environment on the Mac, make the interact > loop be > > the primary thread, with the user's Python calculations at worst a > secondary > > thread, which is the opposite of the older VPython, where the > > interval-driven rendering thread was secondary to the user's > calculations. > > By the unusual stratagem of having VPython import the user's program it > has > > been possible to make this work, and at the same time greatly simplify > the > > C++ component of VPython by eliminating threading, with additional > important > > simplification from eliminating essentially all platform-dependent code > > thanks to the multiplatform character of wxPython. The result is that > nearly > > all existing VPython programs will work without change, at the very small > > cost of a few marginal cases requiring minor tweaking. I should alter the > > documentation to make this important property of the new version more > > salient. > > I need to analyze this more carefully before commenting further.... > > mark > |
From: Paul C. <PC...@sp...> - 2013-01-15 18:10:26
|
Apparently, that has to be built from source as 2.9.x is not in the repositories. I can do that, but I get an error message that GStreamer is not found. However, according to my package manager, GStreamer is installed on the system. Dr. Paul J. Camp Physics Department Spelman College Atlanta, GA 30314 404-270-5864 "The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose From: Steve Spicklemire <st...@sp...> To: Paul Camp <PC...@sp...> Cc: vpusers <vis...@li...> Date: 01/14/2013 07:45 PM Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 The source you need is wxPython-2.9.4.0 not 2.8. Sorry. to apply the patch go to the wxPython-src-2.9.4.0 directory (not the wxPython directory that it contains) and type: patch -p0 < path/to/the/patch/file Let us know if that works! -steve On Jan 14, 2013, at 5:25 PM, Paul Camp wrote: > Trying to follow the instructions in INSTALL.txt. I get up to the patch and when I try to execute that, I get the following error message: > > can't find file to patch at input line 5 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------------------------------- > Index:configure > ============================================= > - - - configure (revision 72192) > + + + configure (working copy) > --------------------------------------------------- > > Its certainly plausible that I'm located in the wrong directory. The instruction "place the file in the wxPython directory" is a little inscrutable since I didn't know off the bat exactly where that is. However, /usr/include/wx-2.8 certainly seems to contain all the relevant files addressed by the patch. What am I missing? > > > Dr. Paul J. Camp > Physics Department > Spelman College > Atlanta, GA 30314 > 404-270-5864 > > "The beauty of the cosmos derives not only from unity in variety > but also from variety in unity" > -- Umberto Eco > The Name of the Rose > > > > From: Bruce Sherwood <Bru...@nc...> > To: C Anthony Risinger <an...@xt...> > Cc: vpusers <vis...@li...> > Date: 01/13/2013 10:42 AM > Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 > > > > Thanks for pointing out the outdated reference. Here is where the source code is: > > https://github.com/BruceSherwood/vpython-wx > > Steve Spicklemire is doing terrific work on simplifying building on all platforms, including Linux. For the moment, read the file INSTALL.txt. We have no Linux "target", but as it happens Steve and I have been doing our testing on Ubuntu. Don't hesitate to ask for clarification if you run into difficulties. > > Bruce Sherwood > > > On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> wrote: > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > > Here is detailed information on how VPython 6 differs from VPython 5, which > > will be incorporated in the Help for upcoming releases of VPython 6. > > the website directs me to https://github.com/vpython/visual/ but this > repository has not been updated since August, and no other branches > exist. > > where is the development for VPython 6 happening? > > ...i would like to get a Linux build running for an in-house demo this > Thursday, so any notes appreciated. note: i don't need a full-blown > installable pip package or anything, just the code and any pertinent > info related to the build :) > > for what it's worth, this is fantastic work! i've been "patiently" > anticipating a Linux package, but i've no problem at all handling that > part myself (im on Arch anyway... i expect Ubuntu or something is the > focused target) > > thanks! > > -- > > C Anthony > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_123012_______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512_______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Steve S. <st...@sp...> - 2013-01-15 18:27:32
|
FYI, there is a script in src/gtk2 that will try to pull all the needed packages for Debian and/or Ubuntu. thanks, -steve On Jan 15, 2013, at 11:10 AM, Paul Camp <PC...@sp...> wrote: > Apparently, that has to be built from source as 2.9.x is not in the repositories. I can do that, but I get an error message that GStreamer is not found. However, according to my package manager, GStreamer is installed on the system. > > > Dr. Paul J. Camp > Physics Department > Spelman College > Atlanta, GA 30314 > 404-270-5864 > > "The beauty of the cosmos derives not only from unity in variety > but also from variety in unity" > -- Umberto Eco > The Name of the Rose > > > > From: Steve Spicklemire <st...@sp...> > To: Paul Camp <PC...@sp...> > Cc: vpusers <vis...@li...> > Date: 01/14/2013 07:45 PM > Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 > > > > The source you need is wxPython-2.9.4.0 not 2.8. Sorry. > > to apply the patch go to the wxPython-src-2.9.4.0 directory (not the wxPython directory that it contains) and type: > > patch -p0 < path/to/the/patch/file > > Let us know if that works! > -steve > > On Jan 14, 2013, at 5:25 PM, Paul Camp wrote: > > > Trying to follow the instructions in INSTALL.txt. I get up to the patch and when I try to execute that, I get the following error message: > > > > can't find file to patch at input line 5 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------------------------------- > > Index:configure > > ============================================= > > - - - configure (revision 72192) > > + + + configure (working copy) > > --------------------------------------------------- > > > > Its certainly plausible that I'm located in the wrong directory. The instruction "place the file in the wxPython directory" is a little inscrutable since I didn't know off the bat exactly where that is. However, /usr/include/wx-2.8 certainly seems to contain all the relevant files addressed by the patch. What am I missing? > > > > > > Dr. Paul J. Camp > > Physics Department > > Spelman College > > Atlanta, GA 30314 > > 404-270-5864 > > > > "The beauty of the cosmos derives not only from unity in variety > > but also from variety in unity" > > -- Umberto Eco > > The Name of the Rose > > > > > > > > From: Bruce Sherwood <Bru...@nc...> > > To: C Anthony Risinger <an...@xt...> > > Cc: vpusers <vis...@li...> > > Date: 01/13/2013 10:42 AM > > Subject: Re: [Visualpython-users] How VPython 6 differs from VPython 5 > > > > > > > > Thanks for pointing out the outdated reference. Here is where the source code is: > > > > https://github.com/BruceSherwood/vpython-wx > > > > Steve Spicklemire is doing terrific work on simplifying building on all platforms, including Linux. For the moment, read the file INSTALL.txt. We have no Linux "target", but as it happens Steve and I have been doing our testing on Ubuntu. Don't hesitate to ask for clarification if you run into difficulties. > > > > Bruce Sherwood > > > > > > On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> wrote: > > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> wrote: > > > Here is detailed information on how VPython 6 differs from VPython 5, which > > > will be incorporated in the Help for upcoming releases of VPython 6. > > > > the website directs me to https://github.com/vpython/visual/ but this > > repository has not been updated since August, and no other branches > > exist. > > > > where is the development for VPython 6 happening? > > > > ...i would like to get a Linux build running for an in-house demo this > > Thursday, so any notes appreciated. note: i don't need a full-blown > > installable pip package or anything, just the code and any pertinent > > info related to the build :) > > > > for what it's worth, this is fantastic work! i've been "patiently" > > anticipating a Linux package, but i've no problem at all handling that > > part myself (im on Arch anyway... i expect Ubuntu or something is the > > focused target) > > > > thanks! > > > > -- > > > > C Anthony > > ------------------------------------------------------------------------------ > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > > MVPs and experts. ON SALE this month only -- learn more at: > > http://p.sf.net/sfu/learnmore_123012_______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > ------------------------------------------------------------------------------ > > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > > SALE $99.99 this month only - learn more at: > > http://p.sf.net/sfu/learnmore_122512_______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Bruce S. <Bru...@nc...> - 2013-01-15 19:25:26
|
>From INSTALL.txt: You need wxPython (wxpython.org). Currently one needs version 2.9, but on Linux you need to apply a patch. Here is information about the patch: https://groups.google.com/forum/?fromgroups=#!topic/wxpython-users/e27JioMs1fs In this forum post is a link to the patch, located at http://sourceforge.net/projects/wxpython/files/wxPython/2.9.4.0/wxPython-src-2.9.4.1.patch/download Place the patch file in the wxPython directory, cd to that directory, and execute this in a terminal: patch -p0 < wxPython-src-2.9.4.1.patch Next cd wxPython (within the wxPython package) and execute sudo python2.7 build-wxpython.py --build_dir=../bld --install On Tue, Jan 15, 2013 at 11:10 AM, Paul Camp <PC...@sp...> wrote: > Apparently, that has to be built from source as 2.9.x is not in the > repositories. I can do that, but I get an error message that GStreamer is > not found. However, according to my package manager, GStreamer is installed > on the system. > > > Dr. Paul J. Camp > Physics Department > Spelman College > Atlanta, GA 30314 > 404-270-5864 > > "The beauty of the cosmos derives not only from unity in variety > but also from variety in unity" > -- Umberto Eco > The Name of the Rose > > > > From: Steve Spicklemire <st...@sp...> > To: Paul Camp <PC...@sp...> > Cc: vpusers <vis...@li...> > Date: 01/14/2013 07:45 PM > Subject: Re: [Visualpython-users] How VPython 6 differs from > VPython 5 > ------------------------------ > > > > The source you need is wxPython-2.9.4.0 not 2.8. Sorry. > > to apply the patch go to the wxPython-src-2.9.4.0 directory (not the > wxPython directory that it contains) and type: > > patch -p0 < path/to/the/patch/file > > Let us know if that works! > -steve > > On Jan 14, 2013, at 5:25 PM, Paul Camp wrote: > > > Trying to follow the instructions in INSTALL.txt. I get up to the patch > and when I try to execute that, I get the following error message: > > > > can't find file to patch at input line 5 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------------------------------- > > Index:configure > > ============================================= > > - - - configure (revision 72192) > > + + + configure (working copy) > > --------------------------------------------------- > > > > Its certainly plausible that I'm located in the wrong directory. The > instruction "place the file in the wxPython directory" is a little > inscrutable since I didn't know off the bat exactly where that is. However, > /usr/include/wx-2.8 certainly seems to contain all the relevant files > addressed by the patch. What am I missing? > > > > > > Dr. Paul J. Camp > > Physics Department > > Spelman College > > Atlanta, GA 30314 > > 404-270-5864 > > > > "The beauty of the cosmos derives not only from unity in variety > > but also from variety in unity" > > -- Umberto Eco > > The Name of the Rose > > > > > > > > From: Bruce Sherwood <Bru...@nc...> > > To: C Anthony Risinger <an...@xt...> > > Cc: vpusers <vis...@li...> > > Date: 01/13/2013 10:42 AM > > Subject: Re: [Visualpython-users] How VPython 6 differs from > VPython 5 > > > > > > > > Thanks for pointing out the outdated reference. Here is where the source > code is: > > > > https://github.com/BruceSherwood/vpython-wx > > > > Steve Spicklemire is doing terrific work on simplifying building on all > platforms, including Linux. For the moment, read the file INSTALL.txt. We > have no Linux "target", but as it happens Steve and I have been doing our > testing on Ubuntu. Don't hesitate to ask for clarification if you run into > difficulties. > > > > Bruce Sherwood > > > > > > On Sun, Jan 13, 2013 at 3:36 AM, C Anthony Risinger <an...@xt...> > wrote: > > On Sun, Jan 13, 2013 at 1:15 AM, Bruce Sherwood <Bru...@nc...> > wrote: > > > Here is detailed information on how VPython 6 differs from VPython 5, > which > > > will be incorporated in the Help for upcoming releases of VPython 6. > > > > the website directs me to https://github.com/vpython/visual/ but this > > repository has not been updated since August, and no other branches > > exist. > > > > where is the development for VPython 6 happening? > > > > ...i would like to get a Linux build running for an in-house demo this > > Thursday, so any notes appreciated. note: i don't need a full-blown > > installable pip package or anything, just the code and any pertinent > > info related to the build :) > > > > for what it's worth, this is fantastic work! i've been "patiently" > > anticipating a Linux package, but i've no problem at all handling that > > part myself (im on Arch anyway... i expect Ubuntu or something is the > > focused target) > > > > thanks! > > > > -- > > > > C Anthony > > > ------------------------------------------------------------------------------ > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > > MVPs and experts. ON SALE this month only -- learn more at: > > > http://p.sf.net/sfu/learnmore_123012_______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > ------------------------------------------------------------------------------ > > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > > SALE $99.99 this month only - learn more at: > > > http://p.sf.net/sfu/learnmore_122512_______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: C A. R. <an...@xt...> - 2013-01-15 18:15:39
|
On Tue, Jan 15, 2013 at 12:10 PM, Paul Camp <PC...@sp...> wrote: > Apparently, that has to be built from source as 2.9.x is not in the > repositories. I can do that, but I get an error message that GStreamer is > not found. However, according to my package manager, GStreamer is installed > on the system. you probably just need the build deps, eg. header files and whatnot usually included in *-dev packages. try: apt-get build-dep <whatever-the-wx-widgets-package-is> ...that usually gets you 95% on the way, with the occasional rebuild of a specific dep (eg, you need a newer version of a dep than whats in the repos) -- C Anthony |
From: C A. R. <an...@xt...> - 2013-01-15 18:19:48
|
On Tue, Jan 15, 2013 at 12:15 PM, C Anthony Risinger <an...@xt...> wrote: > On Tue, Jan 15, 2013 at 12:10 PM, Paul Camp <PC...@sp...> wrote: >> Apparently, that has to be built from source as 2.9.x is not in the >> repositories. I can do that, but I get an error message that GStreamer is >> not found. However, according to my package manager, GStreamer is installed >> on the system. > > you probably just need the build deps, eg. header files and whatnot > usually included in *-dev packages. try: > > apt-get build-dep <whatever-the-wx-widgets-package-is> > > ...that usually gets you 95% on the way, with the occasional rebuild > of a specific dep (eg, you need a newer version of a dep than whats in > the repos) also, it's usually pretty simple IMO to pull down the src packages, say for wx-widgets, and bump the versions, instead of installing right from source. i havent actually used debian/ubuntu regularly in quite some time, but i think: apt-get source <package> ...was part of the process... debian has like fifty billion helper commands; im pretty sure the whole rebuild process was only 3-5 commands. -- C Anthony |