Bug 1110301 - python-pillow
Summary: python-pillow
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pillow
Version: 20
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-17 11:55 UTC by Чугунов Ярослав Викторович
Modified: 2014-06-17 12:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-17 12:15:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
script (246 bytes, text/plain)
2014-06-17 11:56 UTC, Чугунов Ярослав Викторович
no flags Details

Description Чугунов Ярослав Викторович 2014-06-17 11:55:17 UTC
Description of problem:
I try to use PIL library in my python script. But when I start script, get  error like this:
Traceback (most recent call last):
  File "./1.py", line 10, in <module>
    photo = ImageTk.PhotoImage(image)
  File "/usr/lib64/python2.7/site-packages/PIL/ImageTk.py", line 116, in __init__
    self.paste(image)
  File "/usr/lib64/python2.7/site-packages/PIL/ImageTk.py", line 181, in paste
    import _imagingtk
ImportError: No module named _imagingtk

In repository I did not find any packets "imagingtk", I was try rebuild the packet  python-imaging-1.1.7-10.fc19.src.rpm which is for fc19. But when I try install it get massege:
# rpm -ivh python-imaging-1.1.7-10.fc20.x86_64.rpm 
ошибка: Неудовлетворенные зависимости:
        python-imaging <= 1.1.7-12 is obsoleted by (установлен)python-pillow-2.2.1-4.fc20.x86_64

How I can use PIL for work with images in f20. Need help.




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Чугунов Ярослав Викторович 2014-06-17 11:56:13 UTC
Created attachment 909563 [details]
script

Comment 2 Sandro Mani 2014-06-17 12:04:28 UTC
Works here. Do you have python-pillow-tk installed?

Comment 3 Чугунов Ярослав Викторович 2014-06-17 12:11:22 UTC
(In reply to Sandro Mani from comment #2)
> Works here. Do you have python-pillow-tk installed?
It was not, I was start a script for now without errors like this
yum erase python-pillow 
pip install pillow

after that commands is working  perfectky fine, but I think is not good way to use.

Comment 4 Sandro Mani 2014-06-17 12:15:06 UTC
You probably overwrote some file of the python-pillow package with the pip install. I'd just reinstall all python-pillow packages to ensure the integrity of the package files, and make sure python-pillow-tk is installed. In any case, closing the bug as this is not an issue with the python pillow package.


Note You need to log in before you can comment on or make changes to this bug.