[visionegg] Re: here's an error...

John Christie <John.Christie@xxxxxx> wrote:

> This looks like just an error in the demos with new versions of
> Numeric??
>
> after issuing...
>
> python multi_stim.py
>
> I get...
>
> 2008-09-20 18:44:37,949 (5119) INFO: Script multi_stim.py started
> Vision Egg 1.1.1 with process id 5119.
> 2008-09-20 18:44:42,581 (5119) INFO: Requesting window 640 x 480 32
> bpp (8 8 8 0 RGBA).
> 2008-09-20 18:44:42,693 (5119) INFO: OpenGL 1.2 APPLE-1.5.30, Intel
> GMA X3100 OpenGL Engine, Intel Inc. (PyOpenGL 3.0.0a5)
> 2008-09-20 18:44:42,694 (5119) INFO: Video system reports 32 bpp (8 8
> 8 8 RGBA).
> 2008-09-20 18:44:44,076 (5119) CRITICAL: Traceback (most recent call
> last):
>    File "multi_stim.py", line 331, in <module>
>      pixels =  RandomArray.randint(0,256,
> (20,20,3)).astype(Numeric.UnsignedInt8)
> ValueError: Invalid type for array
>
> Traceback (most recent call last):
>    File "multi_stim.py", line 331, in <module>
>      pixels =  RandomArray.randint(0,256,
> (20,20,3)).astype(Numeric.UnsignedInt8)
>
>
> This is latest versions of pretty much everything on Mac OS X.
>
> (most other demos run great).

Hi John,

It looks like you aren't using multi_stim.py from the Vision Egg 1.1.1
source.

The old version (what you're using) uses Numeric's RandomArray and
friends. The new version uses numpy. (numpy is the new version of
Numeric.) You can definitely fix this by running the new multi_stim.py.
You can probably fix this by installing the old Numeric if you can find it.

-Andrew

-- 
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: