That would seem to mean that the install procedure has put primitives.py
in a place where Python doesn't look. On Linux platforms it is normally
placed in /usr/local/lib/python2.4/site-packages/visual/primitive.py
(and there are other critical files there, too). Or maybe there's
something wrong with the module search path for Python on your machine.
Bruce Sherwood
B G wrote:
> Good morning,
>
> I cannot install visual 3.2.5 or 3.2.9 on Solaris 5.8 ...
>
> I have no problem when I build the binairies but when I import the
> visual ... I get this message ...
>
> bash-2.03# python
> Python 2.4.3 (#1, Sep 13 2006, 15:50:21)
> [GCC 3.3.2] on sunos5
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import visual
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.4/site-packages/visual/__init__.py",
> line 28, in ?
> from visual.primitives import arrow, cylinder, cone, sphere, box,
> ring, label
> ImportError: No module named primitives
>
> bash-2.03# cat /etc/release
> Solaris 8 10/01 s28s_u6wos_08a SPARC
> Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
> Assembled 12 September 2001
> visual-3.2.5
>
> bash-2.03# cd /usr/local/lib/python2.4/site-packages/visual/examples/
> bash-2.03# python bounce2.py
> Traceback (most recent call last):
> File "bounce2.py", line 1, in ?
> from visual import *
> File "/usr/local/lib/python2.4/site-packages/visual/__init__.py",
> line 28, in ?
> from visual.primitives import arrow, cylinder, cone, sphere, box,
> ring, label
> ImportError: No module named primitives
>
>
> Thanks for your help,
>
> Bernard
>
|