Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 5 of Ticket #2597


Ignore:
Timestamp:
11/01/12 10:16:47 (12 years ago)
Author:
wmoore
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2597

    • Property Owner set to jmoore
    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
    • Property Remaining Time changed from 0.25 to 0
  • Ticket #2597 – Description

    initial v5  
    1 Depending on how PIL was installed, it may should be imported as: 
     1Depending on how PIL was installed, it may should be imported as {{{import Image}}} or {{{ from PIL import Image}}}. 
    22 
    3 {{{import Image}}} 
     3However, in some cases, BOTH may work and cause failures: See #9790. 
     4Therefore it is essential that they are done IN THE SAME ORDER every time. 
    45 
    5 or  
     6In all OMERO uses, both should be attempt in a try/except block in this order: 
    67 
    7 {{{ from PIL import Image}}} 
     8{{{ 
     9try: 
     10    from PIL import Image, ImageDraw, ImageFont     # see ticket:2597 
     11except: #pragma: nocover 
     12    try: 
     13        import Image, ImageDraw, ImageFont          # see ticket:2597 
     14    except: 
     15        logger.error('No PIL installed') 
     16}}} 
    817 
    9 In all OMERO uses, both should be attempt in a try/except block. Searching for any import of PIL should also show this ticket number: 
     18Searching for any import of PIL should also show this ticket number: 
    1019{{{ 
    11 grep -r PIL | grep import 
     20$ git grep "import Image" 
     21}}} 
     22 
     23Therefore, this should show NOTHING: 
     24{{{ 
     25:OmeroPy will$ git grep "import Image" | grep -v ticket:2597 | grep -vE "(ImageI|ImageAnnotationLinkI|ImageWrapper|ImageColumn|ImageData)" 
    1226}}} 
    1327 

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.12757 sec.)

We're Hiring!