Thanks for the reply, and to Frank.
I'm on MacOS, Leopard.

Based on your replies, I used easy_install pil to verify or update the
package.
It updated pil to 1.1.7 - apparently was older.
>From command line, able to:
>>> import Image
>>> im = Image.open("myimage.jpg")
>>> print im.size, im.format, im.mode
(200, 200) JPEG RGB

Prior to updating PIL, '>>> import Image'  returned an error, "no such
module Image".

Now I start the 'projects/simple' server, and get this warning about
conflicting _imaging modules:


Thu, 18 Mar 2010 12:02:31 shop.listeners DEBUG    Added default shop
listeners
/Library/Python/2.5/site-packages/pycrypto-2.0.1-py2.5-macosx-10.5-
i386.egg/Crypto/Cipher/Blowfish.py:3: UserWarning: Module _imaging was
already imported from /Library/Python/2.5/site-packages/
PILwoTk-1.1.6.4-py2.5-macosx-10.5-i386.egg/_imaging.so, but /Library/
Python/2.5/site-packages/PIL-1.1.7-py2.5-macosx-10.5-i386.egg is being
added to sys.path
  import sys, pkg_resources, imp

I now see that even the with the test 'simple' server I can't add
images, get the same error.  Hadn't tried it except with my site.
I now see I get this stack trace:

[17/Mar/2010 22:31:15] "GET /static/Users/<*mystore*>/static/images/
productimage-picture-got-wool-tshirt-3_gif_280x280_q85.jpg HTTP/1.1"
200 0
[17/Mar/2010 22:31:15] "GET /static/Users/<*mystore*>/static/images/
productimage-picture-got-wool-tshirt-3_gif_280x280_q85.jpg HTTP/1.1"
304 0
Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 280, in run
    self.finish_response()
  File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 320, in finish_response
    self.write(data)
  File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 399, in write
    self.send_headers()
  File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 464, in send_headers
    self._write(str(self.headers))
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/socket.py", line 262, in write
    self.flush()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/socket.py", line 249, in flush
    self._sock.sendall(buffer)
error: (32, 'Broken pipe')
Thu, 18 Mar 2010 10:23:57 satchmo_utils.widgets DEBUG    value: <class
'decimal.Decimal'>

Question:  I'm using Django v1.1.1 - (From 'runserver' startup
message:)
Django version 1.1.1, using settings 'simple.settings'
Development server is running at http://127.0.0.1:8000/

Is my Python lib framework, 2.5, too old?  I think I have 2.6
installed but my paths are not pointing to it.

Thanks for the help ...

-Richard


On Mar 18, 11:36 am, Chris Moffitt <[email protected]> wrote:
> Normally this is an issue where your Python Imaging Library installation is
> corrupted or doesn't have the right libraries installed.
>
> What OS are you on and how did you install it?
>
> -Chris
>
> On Thu, Mar 18, 2010 at 1:04 PM, haikuukiah <[email protected]> wrote:
> > Hi,
> > First post, diving in.
> > When I attempt to add an image to a product (admin i/f) consistently
> > get the error:
> > "Upload a valid image. The file you uploaded was either not an image
> > or a corrupted image."
>
> > Have tried .jpg files with and without alpha channel, copied images
> > off other websites, nothing succeeds.
> > I'm sure this is simple.  Newbie here, first use of Satchmo.
> > Thanks.
> > -Richard
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Satchmo users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<satchmo-users%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/satchmo-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en.

Reply via email to