You need to follow the instructions on the Windows download page at vpython.org:
First, download and install Python-2.7.2 (Important: Let it install in
C:\Python27)
(There is not a VPython version for Windows 64-bit Python, but this
32-bit version of Python works fine on 64-bit Windows machines)
Second, download and install VPython-Win-Py2.7-5.74
On Thu, Jul 5, 2012 at 2:02 AM, Osemeka Osuagwu <aba...@gm...> wrote:
> Hi,
> I came across VPython for the first time, yesterday. I installed it and
> tried to run some code but my import statement kept causing an error as
> follows:
>
> Code:
> import visual
>
> Error:
> Traceback (most recent call last):
> File "Untitled", line 2
> import visual
> File "C:\Python27\lib\site-packages\visual\__init__.py", line 1
> from .visual_all import *
> File "C:\Python27\lib\site-packages\visual\visual_all.py", line 1
> from vis import version
> File "C:\Python27\lib\site-packages\vis\__init__.py", line 3
> from .cvisual import (vector, dot, mag, mag2, norm, cross, rotate,
> ImportError: DLL load failed: %1 is not a valid Win32 application.
>
> How can I deal with this, please?
> I use Windows7 64bit with Python ver2.7.
> I installed VPython in my C:\Python27 directory
>
> Thanks,
> Abasiemeka
|