943,947 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 1601
  • Python RSS
Nov 4th, 2009
0

Vpython error won't run any programs

Expand Post »
I have downloaded vpython and try to run one of the examples included with the program.
Python Syntax (Toggle Plain Text)
  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
Python Syntax (Toggle Plain Text)
  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; Nov 4th, 2009 at 5:03 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
johndb is offline Offline
12 posts
since Jun 2009
Nov 4th, 2009
-1
Re: Vpython error won't run any programs
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; Nov 4th, 2009 at 6:44 pm.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Nov 5th, 2009
0
Re: Vpython error won't run any programs
Yes I did as per the instructions on the vpython download page.
Last edited by johndb; Nov 5th, 2009 at 3:54 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
johndb is offline Offline
12 posts
since Jun 2009
Nov 5th, 2009
0
Re: Vpython error won't run any programs
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.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Nov 5th, 2009
0
Re: Vpython error won't run any programs
Click to Expand / Collapse  Quote originally posted by vegaseat ...
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"
Reputation Points: 355
Solved Threads: 292
Veteran Poster
jlm699 is offline Offline
1,102 posts
since Jul 2008
Nov 5th, 2009
0
Re: Vpython error won't run any programs
Click to Expand / Collapse  Quote originally posted by jlm699 ...
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.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Dec 5th, 2009
0
Re: Vpython error won't run any programs
I have the same problem with macosx. Any news about this problem?
Thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edup is offline Offline
1 posts
since Dec 2009
Jan 10th, 2010
0
Re: Vpython error won't run any programs
Same on Ubuntu Karmic. Looks like a bug on Python itself:

http://bugs.python.org/issue7183
https://bugs.edge.launchpad.net/ubuntu/+source/boost1.38/+bug/457688
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rev087 is offline Offline
1 posts
since Jan 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: File size before upload...
Next Thread in Python Forum Timeline: Import queue dont exist?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC