I've been stuck on this problem for a while now, so I'd really appreciate any help.

I'm trying to run code that ran fine on a different computer.

This line:
glTexImage2D(GL_TEXTURE_2D, 0, 3, each.w, each.h, 0, GL_RGBA, GL_UNSIGNED_BYTE, each.image)

Gives this error:
OpenGL\arrays\arraydatatype.py", line 36, in getHandler
typ, repr(value)[:50]
TypeError: No array-type handler for type <type 'str'> (value: 'Zw#\xff]\x83,\xffi\x850\xffTx\x1e\xffFm\x12\xffYz) registered
I guess I'm missing file or something, but I have no idea.
Does anyone please know what that means?