Texturing problem in python

I’m trying to run code that ran fine on a different computer, so I think I might be missing something that should be in the library, maybe. This is in Python, btw.

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

Does anyone please know what that means?