On Tue, Aug 18, 2009 at 4:37 PM, zayatzz <alan.kesselm...@gmail.com> wrote:

>
> Nobody knows? Any wild guesses? Cause im all out of ideas.
>
> Alan.
>
> On Aug 17, 9:24 pm, zayatzz <alan.kesselm...@gmail.com> wrote:
> > Hello
> >
> > On sunday i had problems with python when i installed stackless
> > python. Now i have compiled and installed :
> > setuptools & python-mysqldb and i got my django project up and running
> > again. (i also reinstalled django-1.1),
> > Then i compiled and installed, jpeg, freetyp2 and PIL. I also started
> > using mod_wsgi instead of mod_python.
> >
> > But when uploading imagefield in form i  get validationerror:
> > Upload a valid image. The file you uploaded was either not an image or
> > a corrupted image.
> >
> > Searchmonkey shows that it comes from field.py imagefield validation.
> > before raising this error it imports Image from PIL, opens file and
> > verfies it. I tried importing PIL from python prompt manually - it
> > worked just fine. Same with Image.open and Image.verify.
> >
> > So what could by causing this problem?
> >
> > Alan


Unistall PIL. Make sure you can't import PIL or Image, Reinstall PIL. I had
a similar issue recently and that fixed it. Also all the supporting
libraries. PIL has some really strange pathing and Django relies on just
one, so if you messed it up, things won't work.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to