Vpython error won't run any programs

Reply

Join Date: Jun 2009
Posts: 10
Reputation: johndb is an unknown quantity at this point 
Solved Threads: 0
johndb johndb is offline Offline
Newbie Poster

Vpython error won't run any programs

 
0
  #1
23 Days Ago
I have downloaded vpython and try to run one of the examples included with the program.
  1. from visual import *
  2.  
  3. floor = box(length=4, height=0.5, width=4, color=color.blue)
  4.  
  5. ball = sphere(pos=(0,4,0), color=color.red)
  6. ball.velocity = vector(0,-1,0)
  7.  
  8. dt = 0.01
  9. while 1:
  10. rate(100)
  11. ball.pos = ball.pos + ball.velocity*dt
  12. if ball.y < 1:
  13. ball.velocity.y = -ball.velocity.y
  14. else:
  15. ball.velocity.y = ball.velocity.y - 9.8*dt
but this is the error I get
  1. Traceback (most recent call last):
  2. File "C:\Python26\Lib\site-packages\visual\examples\bounce.py", line 1
  3. from visual import *
  4. File "C:\Python26\lib\site-packages\visual\__init__.py", line 59
  5. import cvisual
  6. AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only
  7. >>>
, 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?
Last edited by johndb; 23 Days Ago at 5:03 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,003
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 928
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite
 
0
  #2
23 Days Ago
I assume you used the Windows installer
VPython-Win-Py2.6-5.12.exe
not quite sure if that needs numpy too. I don't use Python26.

The example works very well with Python25.
Last edited by vegaseat; 23 Days Ago at 6:44 pm.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 10
Reputation: johndb is an unknown quantity at this point 
Solved Threads: 0
johndb johndb is offline Offline
Newbie Poster
 
0
  #3
22 Days Ago
Yes I did as per the instructions on the vpython download page.
Last edited by johndb; 22 Days Ago at 3:54 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,003
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 928
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite
 
0
  #4
22 Days Ago
I have read that Vista has a nasty habit not to install certain files because of its childish security concerns, and it won't let the user know about it.

My advice, get rid of Vista as soon as you can.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,046
Reputation: jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough 
Solved Threads: 263
Sponsor
jlm699's Avatar
jlm699 jlm699 is offline Offline
Knows where his Towel is
 
0
  #5
22 Days Ago
Originally Posted by vegaseat View Post
My advice, get rid of Vista as soon as you can.
And if that's not an option make sure you're both installing and running all these things by right-clicking the executable and selecting "Run as Administrator"
1. Use Code Tags.
2. Homework? Show Effort.
3. Keep discussions on the forum: no PMs
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,003
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 928
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite
 
0
  #6
22 Days Ago
Originally Posted by jlm699 View Post
And if that's not an option make sure you're both installing and running all these things by right-clicking the executable and selecting "Run as Administrator"
Thanks for the info, hope it works for the OP. I have been sitting out Vista successfully so far, and probably will never have the pleasure to try this out. Eventually I will have to bite the bullet and use Windows 7 or Windows 7.1.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC