From: francois s. <fra...@fr...> - 2004-07-24 19:21:17
|
Hello all, I had the linux version (http://vpython.org/linux_download.html) It=20 worked nicely since 2 weeks ago on my suse 9.0. Then I saw that the updated files were available there :-) : http://vpython.org/all_download.html : Doc-2004-07-22.zip <http://vpython.org/download/Doc-2004-07-22.zip>=20 Documentation for Visual Demos-2004-07-22.zip <http://vpython.org/download/Demos-2004-07-22.zip>=20 VPython demo programs Visual-2004-07-22.zip=20 <http://vpython.org/download/Visual-2004-07-22.zip> Visual module (*.py=20 files needed by VPython) I unziped them and crushed the old ones (without doing a full install=20 again): linux:/usr/lib/python2.3/site-packages/visual # ls -l total 509 drwxrwxrwx 5 root root 992 2004-07-24 20:28 . drwxr-xr-x 18 root root 3360 2004-07-18 12:57 .. -rwxrwxrwx 1 root root 18029 2004-07-24 20:28 controls.py -rwxrwxrwx 1 root root 21256 2004-07-24 20:28 controls.pyc -rwxrwxrwx 1 root root 21455 2004-07-18 12:57 controls.pyo -rwxrwxrwx 1 root root 283 2004-07-24 20:28 crayola.py -rwxrwxrwx 1 schnell users 1009 2004-07-24 20:28 crayola.pyc -rwxrwxrwx 1 root root 1009 2004-07-18 12:57 crayola.pyo drwxrwxrwx 2 root root 1064 2004-07-24 19:49 demos -rwxrwxrwx 1 root root 42972 2004-07-24 19:40 Demos-2004-07-22.zip -rwxrwxrwx 1 root root 123328 2004-07-24 19:40 Doc-2004-07-22.zip drwxrwxrwx 4 root root 168 2004-07-24 19:55 docs -rwxrwxrwx 1 root root 856 2004-07-24 20:28 factorial.py -rwxrwxrwx 1 root root 1234 2004-07-18 12:57 factorial.pyc -rwxrwxrwx 1 root root 1234 2004-07-18 12:57 factorial.pyo -rwxrwxrwx 1 root root 26322 2004-07-24 20:28 graph.py -rwxrwxrwx 1 root root 24411 2004-07-18 12:57 graph.pyc -rwxrwxrwx 1 root root 24411 2004-07-18 12:57 graph.pyo -rwxrwxrwx 1 root root 1540 2004-07-24 20:28 __init__.py -rwxrwxrwx 1 schnell users 2174 2004-07-24 20:28 __init__.pyc -rwxrwxrwx 1 root root 4287 2004-07-18 12:57 __init__.pyo drwxrwxrwx 3 root root 80 2004-07-24 19:41 Lib -rwxrwxrwx 1 root root 399 2004-07-24 20:28 macevent.py -rwxrwxrwx 1 root root 830 2004-07-18 12:57 macevent.pyc -rwxrwxrwx 1 root root 830 2004-07-18 12:57 macevent.pyo -rwxrwxrwx 1 schnell users 12080 2004-07-24 20:28 primitives.py -rwxrwxrwx 1 schnell users 21219 2004-07-24 20:28 primitives.pyc -rwxrwxrwx 1 root root 19101 2004-07-24 20:28 text.py -rwxrwxrwx 1 root root 16816 2004-07-24 20:28 text.pyc -rwxrwxrwx 1 root root 16867 2004-07-18 12:57 text.pyo -rwxrwxrwx 1 schnell users 815 2004-07-24 20:28 ui.py -rwxrwxrwx 1 schnell users 1162 2004-07-24 20:28 ui.pyc -rwxrwxrwx 1 root root 36502 2004-07-24 19:40 Visual-2004-07-22.zip 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,=20 in -toplevel- from visual import * File "/usr/lib/python2.3/site-packages/visual/__init__.py", line 19,=20 in -toplevel- from cvisual import vector, mag, mag2, norm, cross, rotate, comp,=20 proj, diff_angle, rate ImportError: cannot import name comp Do you know what I did wrong again this time .... :-( I tried the new full install but when I do "make" I have this: schnell@linux:~/Desktop/vpython/visual-3.0> make Making all in visual make[1]: Entering directory=20 `/home/schnell/Desktop/vpython/visual-3.0/visual' make[1]: Rien =E0 faire pour =AB all =BB. make[1]: Leaving directory `/home/schnell/Desktop/vpython/visual-3.0/visu= al' Making all in cvisual make[1]: Entering directory=20 `/home/schnell/Desktop/vpython/visual-3.0/cvisual' Compiling arrow.cpp ... make[1]: *** [arrow.lo] Erreur 1 make[1]: Leaving directory=20 `/home/schnell/Desktop/vpython/visual-3.0/cvisual' make: *** [all-recursive] Erreur 1 schnell@linux:~/Desktop/vpython/visual-3.0> PYTHON=3D/usr/bin/python make Making all in visual make[1]: Entering directory=20 `/home/schnell/Desktop/vpython/visual-3.0/visual' make[1]: Rien =E0 faire pour =AB all =BB. make[1]: Leaving directory `/home/schnell/Desktop/vpython/visual-3.0/visu= al' Making all in cvisual make[1]: Entering directory=20 `/home/schnell/Desktop/vpython/visual-3.0/cvisual' Compiling arrow.cpp ... make[1]: *** [arrow.lo] Erreur 1 make[1]: Leaving directory=20 `/home/schnell/Desktop/vpython/visual-3.0/cvisual' make: *** [all-recursive] Erreur 1 Thhank's for any help :-) |
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 |