[visionegg] Re: error: OpenGL.ctypes
- From: ilia ivanov <iliqv@xxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Sat, 14 Feb 2009 14:55:21 -0800 (PST)
I downloaded it from:
http://freefr.dl.sourceforge.net/sourceforge/visionegg/visionegg-1.1.2.win32-py2.5.exe
and then double clicked the exe. The installer found the Python25 install
directory and placed the VisionEgg into
C:\Python25\Lib\site-packages\VisionEgg.
1) In the shell prompt the results are:
C:\Python25\Lib\site-packages\VisionEgg>python multi_stim.py
python: can't open file 'multi_stim.py': [Errno 2] No such file or directory
Still there I tried:
C:\Python25\Lib\site-packages\VisionEgg>python gratings.py
Just nothing happened.
2) Via Python console I got:
File "<stdin>", line 1, in <module>
Name error: name 'os' is not defined
Really no idea what might be wrong.
Iliya
--- On Sun, 2/15/09, Andrew Straw <astraw@xxxxxxxxxxx> wrote:
From: Andrew Straw <astraw@xxxxxxxxxxx>
Subject: [visionegg] Re: error: OpenGL.ctypes
To: visionegg@xxxxxxxxxxxxx
Date: Sunday, February 15, 2009, 12:17 AM
ilia ivanov wrote:
> Hi Andrew,
>
> If I double click I see the Python console to show up for a sec and then
> nothing. This is the reason to write the code in the console mode, so I
> can track the point at which I get an error. So far I`m stacked at the
>
> import _vegl
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> ImportError: No module named _vegl
>
> Does this mean that the VisionEgg is incompatible with win32?
VE is compatible with win32. If you're getting an error on double click
it means something is going wrong. You can try one of two things:
1) keep that error around longer. Open a shell console: Start->Run->type
"cmd.exe". Then "cd
C:\Where\the\VE\demos\are". Then "python
multi_stim.py".
2) Run the demos from within the Python console: type
"os.chdir(r'C:\path\to\VE\demos')" then type
"execfile('multi_stim.py')"
when in the VE demos directory and report back the error you see.
The problem you're encountering is that _vegl is an internal module to
the VisionEgg and you shouldn't import it directly.
How did you install the Vision Egg?
--
Dr. Andrew D. Straw
California Institute of Technology
http://www.its.caltech.edu/~astraw/
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Other related posts: