not strange at all, dot versions are not compatible, only minor. meaning
libraries targeted for python 2.6.x won't necessarily work on 2.7.5 but if
your previous installation was 2.7.3 you could just upgrade to python 2.7.5
with no problems


On Wed, Jun 26, 2013 at 1:01 PM, Andreas Kuhne
<andreas.ku...@suitopia.com>wrote:

>
>
> 2013/6/26 Avraham Serour <tovm...@gmail.com>
>
>> If you upgraded your python installation in place you should reinstall
>> your libraries, specially PIL which needs compiling some parts. Just pip
>> uninstall pil and pip install again. Note that installing pil might be a
>> headache. On a side note I recommend using pillow which is a drop in
>> replacement for pil
>> On Jun 26, 2013 11:54 AM, "Andreas Kuhne" <andreas.ku...@suitopia.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am trying to upgrade our debian squeeze server running a django 1.5.1
>>> website from python 2.6 to python 2.7.5. I have been able to upgrade python
>>> without any problems. However, now when I try to start our site I get an
>>> issue with the PIL library.
>>>
>>> In our code we use "import Image" and not "from PIL import Image" which
>>> should work according to the documentation (I know there is an issue
>>> regarding which is correct and not, but I really don't care about that at
>>> the moment). When the site starts I get an error saying: "ImportError: No
>>> module named Image"
>>>
>>> I understand this has something to do with the PIL.pth file not being
>>> correctly read in the site-packages library folder, but I don't see why it
>>> doesn't get read? I have the same configuration on my development machine
>>> (an ubuntu 13.04 installation), but I can use import Image, and so could
>>> our server until the upgrade to python 2.7.
>>>
>>> Anyone have any ideas?
>>>
>>> Regards,
>>>
>>> Andréas
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
> Thanks for the suggestion, strangely enough that was all I needed to do,
> ie reinstall the PIL language with pip uninstall & pip install. Now it
> works just fine.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to