Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/03/2012, 20:27
PanConMantequilla
 
Fecha de Ingreso: junio-2011
Mensajes: 26
Antigüedad: 12 años, 11 meses
Puntos: 0
Sonrisa Problema usando libreria PIL

Holas, soy algo nuevo en python pero voy aprendiendo rapido, ire al grano, quiero usar la libreria [URL="http://www.pythonware.com/library/pil/handbook/index.htm"]PIL[/URL] para tratar con imagenes pero al querer instalar me dio problemas

Antes que nada, quiero que sepan que antes de postear googlie mucho

Uso window$ 64 bits y tengo python 2.7.2 y desde aqui [URL="http://www.pythonware.com/products/pil/"]http://www.pythonware.com/products/pil/[/URL] descargue Python Imaging Library 1.1.7 for Python 2.7 (Windows only)

Luego de instalar correctamente al querer importar las librerias dice
Código:
The _imaging C module is not installed
por suerte en el [URL="http://www.pythonware.com/products/pil/faq.htm"]faqs [/URL]de la libreria explica el error, (tengo todas las librerias en las carpetas correctas) pero ya lo intente muchas veces y me sigue dando problemas al intentar hacer

Cita:
import _imaging
me dice
Cita:
ImportError: DLL load failed: %1 no es una aplicación Win32 válida.
He revisado las rutas y estan correctas, apuntan al directorio de la libreria

Cita:
['C:\\Python27\\Lib\\idlelib', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\PIL', 'C:\\Python27\\lib\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg-info']
exactamente la ruta C:\\Python27\\lib\\site-packages\\PIL es la correcta y ahi se encuentran los archivos que deberia importar pero me surge ese error

lo extraño es que solo importa sin error cuando le hago import Image
y cuando intento importar import _imaging (como dice el faq) me devuelve el error y no puedo usar la libreria

alguien que haya usado esta libreria me puede hechar una mano o acaso me falta cambiar algo

Saludos