[Image-SIG] Python Newbie with a Python Imaging Library installation issue

chris lyon chris.lyon@tgm.co.uk
Fri, 4 Jan 2002 16:30:12 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C1953D.153011A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am new to python and am chewing my way throu Mark Lutz and David =
Ascher's Learning Python.
Upon reaching chapter 10 'Frameworks and Applications' It mentions the =
Python Imaging Library (PIL)

This would seem to address perfectly what I am attempting to achieve, =
which is drawing graphs in a format that can be made available as an =
image in an html page.
I have downloaded the package but do not know how I am meant to make the =
import functions available to python=20
every time I try to load the module 'viewer.py' the interactive window =
reports...

  File "C:\Python21\Pythonwin\pywin\framework\scriptutils.py", line 394, =
in ImportFile
    exec codeObj in __main__.__dict__
  File "<auto import>", line 1, in ?
  File ".\viewer.py", line 7, in ?
    import Image, ImageTk
ImportError: No module named Image

It can't find the image module but how am I meant to install this =
seemlessly on Windows?
I'm sorry this is such a mundane question but I really would like so =
solve this in an approved fashion rather than just wantonly copying =
files until majic happens and faith is destroyed


Chris Lyon
chris.lyon@tgm.co.uk

------=_NextPart_000_0030_01C1953D.153011A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4912.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am new to python and am chewing my =
way throu Mark=20
Lutz and David Ascher's Learning Python.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Upon reaching chapter 10 'Frameworks =
and=20
Applications' It mentions the Python Imaging Library (PIL)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This would seem to address perfectly =
what I am=20
attempting to achieve, which is drawing graphs in a format that can be =
made=20
available as an image in an&nbsp;html page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have downloaded the package but do =
not know how I=20
am meant to make the import functions available to python </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>every time I try to load the module =
'viewer.py' the=20
interactive window reports...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; File=20
"C:\Python21\Pythonwin\pywin\framework\scriptutils.py", line 394, in=20
ImportFile<BR>&nbsp;&nbsp;&nbsp; exec codeObj in =
__main__.__dict__<BR>&nbsp;=20
File "&lt;auto import&gt;", line 1, in ?<BR>&nbsp; File ".\viewer.py", =
line 7,=20
in ?<BR>&nbsp;&nbsp;&nbsp; import Image, ImageTk<BR>ImportError: No =
module named=20
Image</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It can't find the image module but how =
am I meant=20
to install this seemlessly on Windows?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm sorry this is such a mundane =
question but I=20
really would like so solve this in an approved fashion rather than just =
wantonly=20
copying files until majic happens and faith is destroyed</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Chris Lyon</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>chris.lyon@tgm.co.uk</FONT></DIV></BODY></HTML>

------=_NextPart_000_0030_01C1953D.153011A0--