[visionegg] problem using mask2d?

  • From: "Kevin J. MacKenzie" <kjmacken@xxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Mon, 13 Jun 2005 16:36:31 -0400

Hi there,

I've been getting the following error message whenever trying to employ Mask2D on a texture object (even with the vision egg demo gabor.py)

[errors]
Traceback (most recent call last):
File "gabor.py", line 28, in ?
num_samples=(256,256)) # this many texture elements in mask (covers whole size specified below)
File "/Library/Python/2.3/VisionEgg/Textures.py", line 1217, in __init__
xx = Numeric.outerproduct(Numeric.ones((1.0,cp.num_samples[1])),
File "/Library/Python/2.3/Numeric/Numeric.py", line 581, in ones
a=zeros(shape, typecode, savespace)
TypeError: an integer is required
[/errors]


I have tried a fix by chaging the line:
   xx = Numeric.outerproduct(Numeric.ones((1.0,cp.num_samples[1])),
to
   xx = Numeric.outerproduct(Numeric.ones((int(1.0),cp.num_samples[1])),

however, I think this is causing other issues.

Wondering if this is inherent to my install or not? If not (which I am pretty sure of....) wondering if there may be a fix. Below I have pasted the results of my check_config run.

Any help is greatly appreciated.

Kevin


[kjmacken@viridian 16:35:16]$ python check-config.py check-config.py for Vision Egg 0.9.5a2. [2003/09/19 03:54:27 CVS revision 1.19] Beginning configuration check. Mac OS X - It appears you are running this script from the commandline -- turning off GUIs.

VisionEgg version 1.0-cvs

VisionEgg modules in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/VisionEgg
VisionEgg system directory /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg
VisionEgg user directory /Users/kjmacken/VisionEgg


Config file found at /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg

SYNCLYNC_PRESENT = 0
VISIONEGG_ALWAYS_START_LOGGING = 0
VISIONEGG_CONFIG_FILE = /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg/VisionEgg.cfg
VISIONEGG_DARWIN_CONVENTIONAL_PRIORITY = -20
VISIONEGG_DARWIN_MAXPRIORITY_CONVENTIONAL_NOT_REALTIME = 1
VISIONEGG_DARWIN_PTHREAD_PRIORITY = max
VISIONEGG_DARWIN_REALTIME_COMPUTATION_DENOM = 2400
VISIONEGG_DARWIN_REALTIME_CONSTRAINT_DENOM = 1200
VISIONEGG_DARWIN_REALTIME_PERIOD_DENOM = 120
VISIONEGG_DARWIN_REALTIME_PREEMPTIBLE = 0
VISIONEGG_FRAMELESS_WINDOW = 0
VISIONEGG_FULLSCREEN = 0
VISIONEGG_GAMMA_FILE = custom.ve_gamma
VISIONEGG_GAMMA_INVERT_BLUE = 2.1
VISIONEGG_GAMMA_INVERT_GREEN = 2.1
VISIONEGG_GAMMA_INVERT_RED = 2.1
VISIONEGG_GAMMA_SOURCE = none
VISIONEGG_GUI_INIT = 1
VISIONEGG_GUI_ON_ERROR = 1
VISIONEGG_HIDE_MOUSE = 1
VISIONEGG_LOG_FILE = VisionEgg.log
VISIONEGG_LOG_TO_STDERR = 1
VISIONEGG_MAXPRIORITY = 0
VISIONEGG_MONITOR_REFRESH_HZ = 60.0
VISIONEGG_PREFERRED_BPP = 32
VISIONEGG_REQUEST_ALPHA_BITS = 0
VISIONEGG_REQUEST_BLUE_BITS = 8
VISIONEGG_REQUEST_GREEN_BITS = 8
VISIONEGG_REQUEST_RED_BITS = 8
VISIONEGG_REQUEST_STEREO = 0
VISIONEGG_SCREEN_H = 480
VISIONEGG_SCREEN_W = 640
VISIONEGG_SYNC_SWAP = 1
VISIONEGG_SYSTEM_DIR = /System/Library/Frameworks/Python.framework/Versions/2.3/VisionEgg
VISIONEGG_TKINTER_OK = 1
VISIONEGG_USER_DIR = /Users/kjmacken/VisionEgg


Version checklist:

Python version 2.3 (OK)
extra Python info: (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]
Numeric version 24.0b1 (OK)
PyOpenGL (package "OpenGL") version 2.0.2.01 (OK)
pygame version 1.7.0 (OK)
Python Imaging Library (package "Image") version 1.1.5 (OK)


Optional module(s):

Pyro version 3.4 (OK)


====================================== The Vision Egg mailing list Archives: //www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html

Other related posts:

  • » [visionegg] problem using mask2d?