PIL + Py2exe problem

Hello,

    I am opening an image using PIL with:

    from Image import *

    self.imagem = open(filename)

    Using py2exe or Installer I got:

    Traceback (most recent call last):

    File "Image.pyc", line 960, in open
    IOError: cannot identify image file

    Someone packaged a PIL application with py2exe or installer?

    Cheers.
    Paulo Henrique Junqueira Amorim