PILcompat needs to add PngImagePlugin

Bug #1173704 reported by CANTE Pierre
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
phatch (Debian)
Fix Released
Unknown
phatch (Ubuntu)
Fix Released
High
Barry Warsaw
Raring
Fix Released
High
Barry Warsaw
Saucy
Fix Released
High
Barry Warsaw
python-imaging (Ubuntu)
Fix Released
High
Barry Warsaw
Raring
Fix Released
High
Barry Warsaw
Saucy
Fix Released
High
Barry Warsaw

Bug Description

[Impact]
Package which use the old PIL.pth compatibility API will not be able to import PngImagePlugin because it is not provided in the python-imaging-compat package.

[Test Case]
$ apt-get install -fy python-imaging-compat
$ python -c "import PngImagePlugin"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named PngImagePlugin

[Regression Potential]
None

It's not possible to start phatch in raring.
phatch chrashes at starting.

problem type
crash

tittle
phatch crashed with importError in /usr/share/phatch/phatch/lib/thumbnail.py: No module named PngImagePlugin

Traceback (most recent call last):
  File "/usr/bin/phatch", line 16, in <module>
    main(config_paths, app_file = __file__)
  File "/usr/share/phatch/phatch/app.py", line 203, in main
    from core.settings import create_settings
  File "/usr/share/phatch/phatch/core/settings.py", line 23, in <module>
    from pil import IMAGE_READ_EXTENSIONS
  File "/usr/share/phatch/phatch/core/pil.py", line 39, in <module>
    from lib import openImage
  File "/usr/share/phatch/phatch/lib/openImage.py", line 25, in <module>
    import thumbnail
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 62, in <module>
    import PngImagePlugin
ImportError: No module named PngImagePlugin

description: updated
tags: added: phatch
Revision history for this message
CANTE Pierre (pierrecante) wrote :

Hourra !
the prolem is solved, (phatch works good now), from launchpad.net ! :

    sudo apt-get install python3-imaging

    sudo cp -ivr /usr/lib/python3/dist-packages/PIL/* /usr/share/phatch/phatch/lib/

https://bugs.launchpad.net/phatch/+bug/1156583

Revision history for this message
Thomas Karl Pietrowski (thopiekar) wrote :

got the same:
thopiekar@thopiekar-home:~$ phatch
Traceback (most recent call last):
  File "/usr/bin/phatch", line 16, in <module>
    main(config_paths, app_file = __file__)
  File "/usr/share/phatch/phatch/app.py", line 203, in main
    from core.settings import create_settings
  File "/usr/share/phatch/phatch/core/settings.py", line 23, in <module>
    from pil import IMAGE_READ_EXTENSIONS
  File "/usr/share/phatch/phatch/core/pil.py", line 39, in <module>
    from lib import openImage
  File "/usr/share/phatch/phatch/lib/openImage.py", line 25, in <module>
    import thumbnail
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 62, in <module>
    import PngImagePlugin
ImportError: No module named PngImagePlugin

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in phatch (Ubuntu):
status: New → Confirmed
Revision history for this message
CANTE Pierre (pierrecante) wrote :

Hi ! Excuse me, because I can't speak and write english very well.
Now,
with a clean install of raring, and the implementation of the comment #39 in
https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/1112496

phatch runs and works nice, here and there !

Barry Warsaw (barry)
Changed in phatch (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
status: Confirmed → In Progress
importance: Undecided → High
Barry Warsaw (barry)
Changed in phatch (Ubuntu Raring):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
summary: - phatch chrashes at starting.
+ PILcompat needs to add PngImagePlugin
affects: phatch (Ubuntu Raring) → python-imaging (Ubuntu Raring)
Changed in python-imaging (Ubuntu Raring):
milestone: none → raring-updates
milestone: raring-updates → none
Revision history for this message
Barry Warsaw (barry) wrote :

phatch also needs to Depend on python-imaging-compat

description: updated
Changed in phatch:
status: New → In Progress
no longer affects: phatch
Changed in phatch (Ubuntu Raring):
status: New → In Progress
Changed in phatch (Ubuntu Saucy):
status: New → In Progress
Changed in phatch (Ubuntu Raring):
importance: Undecided → High
Changed in phatch (Ubuntu Saucy):
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
Changed in phatch (Ubuntu Raring):
assignee: nobody → Barry Warsaw (barry)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-imaging - 1.1.7+2.0.0-1ubuntu1

---------------
python-imaging (1.1.7+2.0.0-1ubuntu1) saucy; urgency=low

  * Add PngImagePlugin.py to PILcompat directory. (LP: #1173704)
 -- Barry Warsaw <email address hidden> Wed, 22 May 2013 14:35:06 -0400

Changed in python-imaging (Ubuntu Saucy):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phatch - 0.2.7.1-1ubuntu1

---------------
phatch (0.2.7.1-1ubuntu1) saucy; urgency=low

  * debian/control:
    - Depend on python-imaging-compat since PILcompat.pth is necessary to
      expose the required imports. (Closes: #709370) (LP: #1173704)
 -- Barry Warsaw <email address hidden> Wed, 22 May 2013 17:50:59 -0400

Changed in phatch (Ubuntu Saucy):
status: In Progress → Fix Released
Changed in phatch (Debian):
status: Unknown → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Hello CANTE, or anyone else affected,

Accepted into raring-proposed. The package will build now and be available in a few hours in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in phatch (Ubuntu Raring):
status: In Progress → Fix Committed
Changed in python-imaging (Ubuntu Raring):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
CANTE Pierre (pierrecante) wrote :

Hello, here, tThe package raring-proposed is efficient, patch was updated and works !

Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phatch - 0.2.7.1-1ubuntu0.1

---------------
phatch (0.2.7.1-1ubuntu0.1) raring-proposed; urgency=low

  * debian/control:
    - Depend on python-imaging-compat since PILcompat.pth is necessary to
      expose the required imports. (Closes: #709370) (LP: #1173704)
 -- Barry Warsaw <email address hidden> Wed, 22 May 2013 18:08:30 -0400

Changed in phatch (Ubuntu Raring):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-imaging - 1.1.7+2.0.0-1ubuntu0.1

---------------
python-imaging (1.1.7+2.0.0-1ubuntu0.1) raring-proposed; urgency=low

  * Add PngImagePlugin.py to PILcompat directory. (LP: #1173704)
 -- Barry Warsaw <email address hidden> Wed, 22 May 2013 15:07:03 -0400

Changed in python-imaging (Ubuntu Raring):
status: Fix Committed → Fix Released
Changed in phatch (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.