I have downloaded vpython and try to run one of the examples included with the program.
from visual import *
floor = box(length=4, height=0.5, width=4, color=color.blue)
ball = sphere(pos=(0,4,0), color=color.red)
ball.velocity = vector(0,-1,0)
dt = 0.01
while 1:
rate(100)
ball.pos = ball.pos + ball.velocity*dt
if ball.y < 1:
ball.velocity.y = -ball.velocity.y
else:
ball.velocity.y = ball.velocity.y - 9.8*dt
but this is the error I get
Traceback (most recent call last):
File "C:\Python26\Lib\site-packages\visual\examples\bounce.py", line 1
from visual import *
File "C:\Python26\lib\site-packages\visual\__init__.py", line 59
import cvisual
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only
>>>
, when I run it on my dell inspiron 1525 laptop with windows vista. I have tried it on another computer and have seen it work, but would like it to work on my laptop. I have the relatively latest 2.6.3 python installed on the laptop. And have tried uninstalling python and vpython a couple of times but the error continues does anyone have any ideas how to fix this?