Trouble running/installing vpython on MacBook Air with OSX 10.8.4

201 views
Skip to first unread message

Erica Carlson

unread,
Sep 10, 2013, 2:37:14 PM9/10/13
to vpytho...@googlegroups.com
I am the professor in charge of an M&I course at Purdue University, trying to install vpython on a new MacBook Air with the 1.7GHz intel Core i7 processor, running MacOSX 10.8.4 .

I have followed the instructions here http://vpython.org/contents/download_mac.html
for the installation of python and vpython.
No installation errors, and I restarted the computer to be sure it all "took".

On the same webpage, under "How to run VPython", the 4th instruction is 
"Press F5 to run...."

At this point, I get the following error message:  

-------------------------
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 

Traceback (most recent call last):
  File "/Applications/VPython/examples/bounce2.py", line 1
    from visual import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/__init__.py", line 59
    import cvisual
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/cvisual.so, 2): no suitable image found.  Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/cvisual.so: mach-o, but wrong architecture
>>> 
----------------------------

I tried this with a few of the sample programs, and each time it results in a similar error message.  

Any help troubleshooting would be most welcome!

Thanks in advance,
Erica Carlson

Colin Beckingham

unread,
Sep 10, 2013, 3:52:35 PM9/10/13
to vpytho...@googlegroups.com
In earlier discussion "A troubleshooting list would be very useful" there are extensive troubleshooting comments by Professor Sherwood, I think it is about 4 posts down. There are some comments there regarding Mac. I wonder if there is anything there which might give you a pointer? Even a comment back that you have checked those items would I'm sure be helpful.

Bruce Sherwood

unread,
Sep 10, 2013, 6:17:00 PM9/10/13
to vpytho...@googlegroups.com
Thanks for the detailed report. Despite the fact that you are working with a new computer, somehow there is an old 32-bit VPython 5 installed, which I can't understand. The incompatibility is between a 64-bit Python 2.7 and a 32-bit VPython. Do this:

If you have VPython 5 installed, you need to delete the old folders visual, vis, and vidle from 
   /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Then on the Macintosh download page at vpython.org, make sure you download VPython-Mac-Py2.7-6.05 and install it.

Steve Spicklemire

unread,
Sep 10, 2013, 6:25:48 PM9/10/13
to vpytho...@googlegroups.com, Steve Spicklemire
It looks like you have an old version of visual still installed.

In a Terminal window try:

sudo rm -r /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual
sudo rm -r /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vidle
sudo rm -r /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis

and see if that fixed the trouble.

-steve
> --
> You received this message because you are subscribed to the Google Groups "VPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Erica Carlson

unread,
Sep 10, 2013, 9:17:02 PM9/10/13
to vpytho...@googlegroups.com, Steve Spicklemire
Steve and Bruce,

That fixed it - thank you!
When I originally set up the new laptop, a lot of data was copied from the previous laptop - 
there must have been an old version of VPython in there.

-Erica 
Reply all
Reply to author
Forward
0 new messages