From: Jonathan B. <jbr...@ea...> - 2004-07-24 20:24:59
|
On Sat, 2004-07-24 at 15:20, francois schnell wrote: > Hello all, > > I had the linux version (http://vpython.org/linux_download.html) It > worked nicely since 2 weeks ago on my suse 9.0. SUSE 9.0 - Uh, oh. (see below) > Then I saw that the updated files were available there :-) : > http://vpython.org/all_download.html : > > Doc-2004-07-22.zip Documentation for Visual > Demos-2004-07-22.zip VPython demo programs > Visual-2004-07-22.zip Visual module (*.py files needed by VPython) > > I unziped them and crushed the old ones (without doing a full install > again): > That doesn't work for the Visual-2004-07-22.zip package, and is the source of the ImportError below. Part of VPython is written in C++, and part of it in Python. The two must come from the same release of VPython, ie, you must perform a full install. > Now, when I run vpython I have the following problems: > > > > >>> > Visual 2004-07-22 > > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/visual/demos/gyro2.py", line > 1, in -toplevel- > from visual import * > File "/usr/lib/python2.3/site-packages/visual/__init__.py", line 19, > in -toplevel- > from cvisual import vector, mag, mag2, norm, cross, rotate, comp, > proj, diff_angle, rate > ImportError: cannot import name comp > > Do you know what I did wrong again this time .... :-( You have version mismatch between the old cvisualmodule.so and the new visual/*.py files. > I tried the new full install but when I do "make" I have this: > Making all in cvisual > > make[1]: Entering directory > `/home/schnell/Desktop/vpython/visual-3.0/cvisual' > > Compiling arrow.cpp ... > > make[1]: *** [arrow.lo] Erreur 1 > Suse 9.0 is known to have shipped with a broken compiler. You must install GCC and Boost from source to correct the problems with your broken compiler. http://www.vpython.org/Building%20VPython%20on%20SuSE.html Also, since SUSE installs GNOME into /opt/gnome, you will need to set the CPPFLAGS environment variable to include "-I/opt/gnome/include" when running Visual's configure script. -Jonathan |