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.
- Timestamp:
-
11/01/12 10:16:47 (12 years ago)
- Author:
-
wmoore
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
- 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
-
initial
|
v5
|
|
1 | | Depending on how PIL was installed, it may should be imported as: |
| 1 | Depending on how PIL was installed, it may should be imported as {{{import Image}}} or {{{ from PIL import Image}}}. |
2 | 2 | |
3 | | {{{import Image}}} |
| 3 | However, in some cases, BOTH may work and cause failures: See #9790. |
| 4 | Therefore it is essential that they are done IN THE SAME ORDER every time. |
4 | 5 | |
5 | | or |
| 6 | In all OMERO uses, both should be attempt in a try/except block in this order: |
6 | 7 | |
7 | | {{{ from PIL import Image}}} |
| 8 | {{{ |
| 9 | try: |
| 10 | from PIL import Image, ImageDraw, ImageFont # see ticket:2597 |
| 11 | except: #pragma: nocover |
| 12 | try: |
| 13 | import Image, ImageDraw, ImageFont # see ticket:2597 |
| 14 | except: |
| 15 | logger.error('No PIL installed') |
| 16 | }}} |
8 | 17 | |
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: |
| 18 | Searching for any import of PIL should also show this ticket number: |
10 | 19 | {{{ |
11 | | grep -r PIL | grep import |
| 20 | $ git grep "import Image" |
| 21 | }}} |
| 22 | |
| 23 | Therefore, this should show NOTHING: |
| 24 | {{{ |
| 25 | :OmeroPy will$ git grep "import Image" | grep -v ticket:2597 | grep -vE "(ImageI|ImageAnnotationLinkI|ImageWrapper|ImageColumn|ImageData)" |
12 | 26 | }}} |
13 | 27 | |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.12757 sec.)