Re: [Python-es] Tengo un problema al intentar usar pillow

2014-06-18 Por tema Ricardo Azpeitia Pimentel
Igual y te faltan mas librerias. Lee la documentación.

http://pillow.readthedocs.org/en/latest/installation.html#linux-installation


El 18 de junio de 2014, 9:49, DiegoUG 
escribió:

> No pienses que no lo hice, estaba buscando antes de preguntar pero esta no
> es la respuesta, no pregunto a menos de que me vea perdido, después de
> buscar mucho lo que me funciono fu esto:
>
>
> http://bubuzzz.wordpress.com/2012/11/25/django-simple-captcha-on-ubuntu-12-04/
>
> :P
>
> Gracias de todos modos.
>
>
> El 17 de junio de 2014, 16:16, Charly Román 
> escribió:
>
> Es buena idea buscar los errores en Google ;)
>>
>> Te falta una librería:
>>
>>  sudo apt-get install libfreetype6-dev
>>
>>
>> Saludos!
>>
>>
>> El 17 de junio de 2014, 16:09, DiegoUG 
>> escribió:
>> >
>> > Estoy intentado usar pillow para crear insertar texto en una imagen y
>> me sale un error que no logro resolver, parece estar relacionado cion el
>> sistema operativo:
>> >
>> > >>> font = ImageFont.truetype("PTMono.tcc",14)
>> > Traceback (most recent call last):
>> >   File "", line 1, in 
>> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
>> 228, in truetype
>> > return FreeTypeFont(font, size, index, encoding)
>> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
>> 131, in __init__
>> > self.font = core.getfont(font, size, index, encoding)
>> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
>> 42, in __getattr__
>> > raise ImportError("The _imagingft C module is not installed")
>> >
>> > intente arreglarlo de la siguiente manera, pero nada que lo logro:
>> >
>> > sudo pip uninstall pillow
>> > sudo apt-get install libjpeg-dev
>> > sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
>> > sudo pip install pillow
>> >
>> > Alguna idea?
>> >
>> > --
>> >   Diego Alonso Uribe Gamez
>> > 
>> >
>> > Desarrollador web
>> >
>> > Twitter: @DiegoUG
>> >
>> > Google+: +DiegoAlonsoUribeGamez
>> >
>> > 
>> >
>> >
>> > ___
>> > Python-es mailing list
>> > Python-es@python.org
>> > https://mail.python.org/mailman/listinfo/python-es
>> > FAQ: http://python-es-faq.wikidot.com/
>> >
>> ___
>> Python-es mailing list
>> Python-es@python.org
>> https://mail.python.org/mailman/listinfo/python-es
>> FAQ: http://python-es-faq.wikidot.com/
>>
>
>
>
> --
>   *Diego Alonso Uribe Gamez*
> --
>
> *Desarrollador web*
>
> Twitter: @DiegoUG 
>
> Google+: +DiegoAlonsoUribeGamez
> 
> --
>
>
> ___
> Python-es mailing list
> Python-es@python.org
> https://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
___
Python-es mailing list
Python-es@python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/


Re: [Python-es] Tengo un problema al intentar usar pillow

2014-06-18 Por tema DiegoUG
No pienses que no lo hice, estaba buscando antes de preguntar pero esta no
es la respuesta, no pregunto a menos de que me vea perdido, después de
buscar mucho lo que me funciono fu esto:

http://bubuzzz.wordpress.com/2012/11/25/django-simple-captcha-on-ubuntu-12-04/

:P

Gracias de todos modos.


El 17 de junio de 2014, 16:16, Charly Román 
escribió:

> Es buena idea buscar los errores en Google ;)
>
> Te falta una librería:
>
>  sudo apt-get install libfreetype6-dev
>
>
> Saludos!
>
>
> El 17 de junio de 2014, 16:09, DiegoUG 
> escribió:
> >
> > Estoy intentado usar pillow para crear insertar texto en una imagen y me
> sale un error que no logro resolver, parece estar relacionado cion el
> sistema operativo:
> >
> > >>> font = ImageFont.truetype("PTMono.tcc",14)
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
> 228, in truetype
> > return FreeTypeFont(font, size, index, encoding)
> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
> 131, in __init__
> > self.font = core.getfont(font, size, index, encoding)
> >   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line
> 42, in __getattr__
> > raise ImportError("The _imagingft C module is not installed")
> >
> > intente arreglarlo de la siguiente manera, pero nada que lo logro:
> >
> > sudo pip uninstall pillow
> > sudo apt-get install libjpeg-dev
> > sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
> > sudo pip install pillow
> >
> > Alguna idea?
> >
> > --
> >   Diego Alonso Uribe Gamez
> > 
> >
> > Desarrollador web
> >
> > Twitter: @DiegoUG
> >
> > Google+: +DiegoAlonsoUribeGamez
> >
> > 
> >
> >
> > ___
> > Python-es mailing list
> > Python-es@python.org
> > https://mail.python.org/mailman/listinfo/python-es
> > FAQ: http://python-es-faq.wikidot.com/
> >
> ___
> Python-es mailing list
> Python-es@python.org
> https://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>



-- 
  *Diego Alonso Uribe Gamez*
--

*Desarrollador web*

Twitter: @DiegoUG 

Google+: +DiegoAlonsoUribeGamez

--
___
Python-es mailing list
Python-es@python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/