From 870d1c2f4147209d51cca3dbebc41636e2410997 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Tue, 13 Nov 2007 20:49:09 +0100 Subject: [PATCH] BUGFIX: PIL no longer works on my Feisty machines: PIL disabled. Currently, both my Feisty Ubuntu's have stopped working with the GUI of Scyther. So to be on the safe side, PIL is disabled for now, until I've resolved the problem. The error is the following: --------------------------------------------------------------------------- Traceback (most recent call last): File "/home/cas/src/scyther-dev/gui/Gui/Scytherthread.py", line 351, in onViewButton w = Attackwindow.AttackWindow(btn.claim) File "/home/cas/src/scyther-dev/gui/Gui/Attackwindow.py", line 176, in __init__ self.CreateInteriorWindowComponents() File "/home/cas/src/scyther-dev/gui/Gui/Attackwindow.py", line 209, in CreateInteriorWindowComponents dp = AttackDisplay(self, self, attacks[0]) File "/home/cas/src/scyther-dev/gui/Gui/Attackwindow.py", line 73, in __init__ self.original = Image.open(filename) File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1912, in open return factory(fp, filename) File "/usr/lib/python2.5/site-packages/PIL/ImageFile.py", line 82, in __init__ self._open() File "/usr/lib/python2.5/site-packages/PIL/EpsImagePlugin.py", line 277, in _open raise IOError, "cannot determine EPS bounding box" IOError: cannot determine EPS bounding box --------------------------------------------------------------------------- Great. Bounding boxes in eps again. --- gui/Gui/Preference.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/Gui/Preference.py b/gui/Gui/Preference.py index 6a80881..da0f909 100644 --- a/gui/Gui/Preference.py +++ b/gui/Gui/Preference.py @@ -55,6 +55,7 @@ from time import localtime,strftime """ Globals """ # Do we have the Python Imaging library? havePIL = True +havePIL = False # For now, override (bounding box bug on Feisty?) try: import Image except ImportError: