Installing the packages through apt-get gave you the error? Could you please post the full output of the apt-get command? Le 1 juil. 2012 18:27, "Nikhil Verma" <varma.nikhi...@gmail.com> a écrit :
> HI Thomos > > > I tried what you suggest and i recieved this. > > sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev > zlib1g-dev > > Traceback (most recent call last): > File "/home/nikhil/Citysom/bin/easy_install", line 8, in <module> > > load_entry_point('setuptools==0.6c11', 'console_scripts', > 'easy_install')() > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", > line 1712, in main > > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", > line 1700, in with_ei_usage > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", > line 1716, in <lambda> > > File "/usr/lib/python2.7/distutils/core.py", line 152, in setup > dist.run_commands() > File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands > self.run_command(cmd) > > File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command > cmd_obj.run() > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", > line 211, in run > > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", > line 434, in easy_install > File > "/home/nikhil/Citysom/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", > line 475, in fetch_distribution > > AttributeError: 'NoneType' object has no attribute 'clone' > > > Thanks for help > > > > > On Sun, Jul 1, 2012 at 9:53 PM, Thomas Orozco > <g.orozco.tho...@gmail.com>wrote: > >> Do you have jpeg support installed for PIL? >> Le 1 juil. 2012 18:13, "Nikhil Verma" <varma.nikhi...@gmail.com> a >> écrit : >> >>> >>> Hi All >>> >>> I am trying to add jpeg image in a ImageField. and it gives this error . >>> It is not allowing me to save the image. >>> >>> I have installed PIL and image other utilities. >>> >>> Upload a valid image. The file you uploaded was either not an image or a >>> corrupted image. >>> >>> Can anybody point what is missing ? >>> >>> Thanks in advance >>> >>> >>> -- >>> Regards >>> Nikhil Verma >>> +91-958-273-3156 >>> >>> -- >>> 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. >>> >> -- >> 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. >> > > > > -- > Regards > Nikhil Verma > +91-958-273-3156 > > -- > 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. > -- 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.