On Feb 9, 7:11 pm, Atishay <[email protected]> wrote:
> hi
>
> i am trying to use PIL, with Django to display Captcha. This could be
> newbie stuff as I am new to python and PIL.
>
> I am getting following error when importing ImageFont.
>
> ImportError: The _imaging C module is not installed

I was able to "import ImageFont" if I do following.

export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

Now I do "python manage.py shell" and "import ImageFont" and it works.

Now, how can we ensure that Django always sets LD_LIBRARY_PATH so that
import does not fail?

Did I solve it in right manner? Is there a better way.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to