Looks like this may be a Mac only issue? For me, its a egg directory, there's no PIL.pth. As for what hook-PIL.Image says, I don't know. My error isn't coming out of hook-PIL.Image though.
Cheers Mike ---- $ ls /Library/Python/2.6/site-packages ... PIL-1.1.7-py2.6-macosx-10.6-universal.egg ... $ ls /Library/Python/2.6/site-packages/PIL-1.1.7-py2.6-macosx-10.6- universal.egg/ EGG-INFO _imaging.pyc _imagingft.pyc _imagingmath.pyc _imagingtk.pyc PIL _imaging.so _imagingft.so _imagingmath.so _imagingtk.so _imaging.py _imagingft.py _imagingmath.py _imagingtk.py On May 17, 4:07 pm, Hartmut Goebel <[email protected]> wrote: > Am 17.05.2011 08:16, schrieb mike:> I had got an Import error on PIL (far > below). For whatever reason, my > > installation (which is the most recent, and downloaded from the PIL > > website) requires "from PIL import Image" instead of "import Image". > > (see my patch file below, everything between the starred lines). > > I really wonder about this: According to PyInstaller/hooks/hook-Image.py > and PyInstaller/hooks/hook-PIL.Image.py PIL can be imported by either > "import Image" or "from PIL import Image". This is since PIL puts a file > "PIL.pth" into site-packages. > > I just checked and PIL.pth is still in 1.1.7 source kit and in SVN (both > trunk and 1.1.7). Can you please check whether PIL.pth is in you > site-packages directory. > > -- > Schönen Gruß - Regards > Hartmut Goebel > Dipl.-Informatiker (univ.), CISSP, CSSLP > > Goebel Consult > Spezialist für IT-Sicherheit in komplexen > Umgebungenhttp://www.goebel-consult.de > > Monatliche Kolumne:http://www.cissp-gefluester.de/ > Goebel Consult mit Mitglied beihttp://www.7-it.de > > smime.p7s > 6KViewDownload -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
