[Scipy-tickets] [SciPy] #1374: pilutil - PIL import hash collision

SciPy Trac scipy-tickets@scipy....
Fri Jan 28 10:53:29 CST 2011


#1374: pilutil - PIL import hash collision
------------------------+---------------------------------------------------
 Reporter:  klaush      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  low         |   Milestone:  Unscheduled
Component:  scipy.misc  |     Version:  0.8.0      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by cjgohlke):

 This is a known problem with PIL that many other packages experience. As a
 workaround one can put the following statements in the user code:

 {{{
 import sys
 import PIL.Image
 sys.modules['Image'] = PIL.Image
 }}}

 Fredrik Lundh pronounced at http://mail.python.org/pipermail/image-
 sig/2011-January/006650.html that as of PIL 1.2 pre-alpha "PIL now lives
 in the PIL namespace only". So it would be more future-proof to change all
 "import Image" statements to "from PIL import Image".

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1374#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list