Re: Help needed with 'import visual' error

Bruce Sherwood <[email protected]> Thu, 5 Jul 2012 08:40:27 -0600
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03jiXG7A85Fg3VVMpoO4EjFdGS9OXciZXdpQc0ffBsSqEQ@mail.gmail.com>
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 <[email protected]> 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/