From: Bruce S. <ba...@an...> - 2000-10-28 00:55:52
|
We have received a number of reports from people who have not been able to get Visual to run on Red Hat or Suse Linux. Typical reports are appended. If you have successfully gotten Visual to run on these flavors of Linux, please give us details on what you did. Thanks. (It appears that these problems do not show up on Debian or Mandrake Linux.) Bruce Sherwood --------------------------------------------------------------------------- --- > I'm trying to use vpython, but every time I type > from visual import * > I get this: > > Visual-2000-09-01 > Traceback (innermost last): > File "<pyshell#0>", line 1, in ? > from visual import * > File "/usr/local/lib/python2.0/site-packages/visual/__init__.py", line > 16, in ? > import cvisual > ImportError: libgtkgl.so.4: cannot open shared object file: No such file > or directory > > I found libgtkgl.so.4 and have put it in several directories, but > vpython still can't seem to find it. I'm using Python 2.0. --------------------------------------------------------------------------- --- > When trying to install the rpm package, I got a dependency error: > > [root@poincare tmp]# rpm -i python-visual-2000.06.10-4.i386.rpm > error: failed dependencies: > libgtkgl.so.4 is needed by python-visual-2000.06.10-4 > libstdc++-libc6.1-2.so.3 is needed by > python-visual-2000.06.10-4 > > My guess that I have a Redhat version mismatch. I'm using RH6.2; do > you know what version is needed for your distribution? --------------------------------------------------------------------------- --- > On downloading the rpm version for Linux, and attempting to > install it on the machine, running Suse Linux 6.4, the error msg asked > for libGLU.so.1,libgtkgl.so.1,libgtkgl.so.4 and libstdC+lib6.1-2.so.3. > Please let me know how to get these files. |
From: Bruce S. <ba...@an...> - 2000-11-21 19:08:10
|
Roger Fearick sent this interesting and informative note and asked me to forward it to the VPythyon user list, which had forgotten to do. Thanks much for the information, Roger, both on Red Hat and on your use of VPython in physics education. We will put your Red Hat information on the VPython web site. ---------- Forwarded Message ---------- Date: Tuesday, November 21, 2000, 3:16 PM +0000 From: Roger Fearick <FE...@ph...> To: Bruce Sherwood <ba...@an...> Subject: Re: [Visualpython-users] Red Hat Linux > Hi Bruce, > >> Thanks much for the file. Could you possibly write a brief paragraph >> aimed at Red Hat users, to accompany making the file available on our >> web site? Not being a Linux user, I couldn't follow your instructions >> well enough to know exactly what to say. Thanks. > > How I got VPython working on Redhat 6.2 > ======================================= > > There seem to be two problems: > > 1) The cvisualmodule.so supplied in the VPython linux distribution > makes calls to a version of a C++ dynamic library that is not > compatible with the version on RH 6.2. > > Solution: I have recompiled cvisualmodule.so: just copy the recompiled > version over the original. > > 2) There seems to be some thread-related bug in RH6.2. I couldn't even > get the thread examples in /usr/doc/glibc-2.1.3 to run. > > Solution: I applied two updates (probably only the second is needed, > but the first is worthwhile anyway): > a) I updated the c library. > See http://www.redhat.com/support/errata/RHSA-2000-057-04.html > for details and instructions. > Probably only the file > ftp://updates.redhat.com/6.2/i386/glibc-2.1.3-21.i386.rpm > is needed: it can be installed by running rpm -Fvh [filename] > as superuser. > b) I updated the kernel to 2.2.16. > This is probably the essental step. > See http://www.redhat.com/support/errata/RHSA-2000-037-05.html > for details and instructions. > Read these carefully if you haven't done this before !!! > > After this, VPython ran. > > > >> P.S. I see you are in physics. What is your (physics?) interest in >> VPython? > > I've been running an introductory course on computational physics for > our senior students. There is usually a wide range of programming > skills to deal with (down to 'never programmed before')., and I > decided this year to try Python as the 'language of record' in which > I gave my examples. (Students are free to use other languages if they > are more familiar with them.) > I wanted something that would be freely available to students so that > they could install software on their own computers. I have previously > used Lahey ELF90, a Fortran 90 subset, but the freely downloadable > version of this was discontinued in the middle of last year, so this > year I tried Python (using Numeric of course). > > I have been pleasantly suprised how easily my F90 code has translated > into Python, slices and all. The students have generally found it > easy to program in Python (after the initial "Python? What...?"). > > Graphics has been a bit of a problem, but graphs can be drawn with > dislin, and Tkinter can be used although it requires constructing > a GUI application to do anything, so it's rather messy. > But it's nice to have some animation, so I showed them how to collide > a wavepacket with a barrier in Tkinter. > > VPython on the other hand makes this sort of thing essentially > trivial. It is really an incredible package which shows how graphics > should work in a threaded environment. So congratulations and thank > you for making it available. > > It arrived a bit late to use in this year's course, but I'm sure that > I will make use of it next year (when the course is moved down to a > more junior level). Nevertheless I've had fun animating the numeric > integration of the solar system, pulses on a string, etc. > > I'm sure it will also make an appearance in my first-year mechanics > lectures next year: I can see many little programs along the line of > your cross-product demo being useful to illustrate things. > > Roger. > > -- > Roger Fearick > Department of Physics > University of Cape Town > ---------- End Forwarded Message ---------- |
From: Stephen W. <sw...@ga...> - 2000-11-22 17:40:27
|
This was pretty helpful with one exception: I haven't figured out how to use CVS to check out the latest VPython sources. What module name should I use in the 'cvs co' to get the entire tree intact? I am a CVS novice but have in the past been able to get the Lesstif and Samba sources using it, so I know more or less how it works. -- Stephen Walton, Professor of Physics and Astronomy, California State University, Northridge ste...@cs... On Tue, 21 Nov 2000, Bruce Sherwood wrote: > Roger Fearick sent this interesting and informative note and asked me to > forward it to the VPythyon user list, which had forgotten to do. Thanks > much for the information, Roger, both on Red Hat and on your use of VPython > in physics education. We will put your Red Hat information on the VPython > web site. |