Please confirm a Python Texture bug in CVS?

I’m trying this with the Windows build from 22-09:

import Blender

tex = Blender.Texture.Get('Tex')
movie = Blender.Image.Load('ThePathToAnExistingImage.png')
print type(movie)
tex.image = movie
movie.reload()

Then it says:

<type ‘Blender Image’>
Traceback (most recent call last):
File “Text.001”, line 6, in ?
TypeError: expected an Image

It is the correct type, right? Or am I seeing something wrong here?

your code works fine on 2.37a here. you might consider using tex.setImage() instead of assigning to the image variable.

timmeh

Thanks for the tip, but it still gives the same error. I’ll submit it to the bugtracker.