Re: [Rest2web-develop] Gallery Test crashes when rerun
Brought to you by:
mjfoord
|
From: Michael F. <fuz...@vo...> - 2006-03-19 23:00:17
|
Marc Condon wrote:
> Hi,
>
> Out of the box gallery_test works ok, but when I rerun it, it
> generates the thumbnails for the first directory, then complains about
> not being about not being able to cast an int into a long.
> Is there a special clean up necessary for rerunning gallery_test.
>
That's a bizarre error. The actual error occurs in a straightforward
call to ``Image.open``:
im = Image.open(path)
I wonder what the path is when that fails. Can you add a line just above
line 117 to ``print path``, please.
In the meantime I'll see if I can reproduce the bug.
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
> Thanks,
> Marc
>
> Processing "root" directory.
> [err] Traceback (most recent call last):
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168,
> in ?
> [err] count = main(config)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104,
> in main
> [err] return processor.walk()
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py",
> line 187, in walk
> [err] self.setdefaults(dir_list)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py",
> line 459, in setdefaults
> [err] restindex, uservalues))
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py",
> line 1312, in do_plugin
> [err] return self.plugins[plugin].page(filename, target,
> restindex, uservalues)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py",
> line 76, in page
> [err] data = get_info(params)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py",
> line 117, in get_info
> [err] im = Image.open(path)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1741,
> in open
> [err] return factory(fp, filename)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\ImageFile.py", line
> 82, in __init__
> [err] self._open()
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\FpxImagePlugin.py",
> line 63, in _open
> [err] self.ole = OleFileIO(self.fp)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line
> 260, in __init__
> [err] self.open(filename)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line
> 293, in open
> [err] self.loaddirectory(i32(header, 48))
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line
> 339, in loaddirectory
> [err] fp = self._open(sect)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line
> 405, in _open
> [err] self.sectorsize, self.fat)
> [err] File "C:\Documents and Settings\All
> Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line
> 106, in __init__
> [err] sect = fat[sect]
> [err] OverflowError: long int too large to convert to int
> [err]
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Rest2web-develop mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/rest2web-develop
>
|