PIL related error with OpenERP 7

Bug #1079819 reported by Georges Racinet
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Fix Released
Undecided
Unassigned

Bug Description

Since nov 9 OpenERP introduced the PIL dependency in their setup.py
We use Pillow

On systems that have a global PIL the end result is a big traceback at db creation time through the web interface. Here's the end.

  File "/home/someuser/.buildout/eggs/Pillow-1.7.7-py2.7-linux-i686.egg/PIL/Image.py", line 385, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder zip not available

In turns out that the requirements merging does not fulfill its contract, which is to replace any PIL dependency by Pillow unless PIL is listed in eggs in the buildout config file

Related branches

Revision history for this message
Georges Racinet (gracinet) wrote :

It's confirmed that the problem was on some systems having PIL take precedence over Pillow

Now we take care to remove PIL from dependencies if it's detected, both internally in the recipe code (for scripts dependencies) and in OpenERP's setup.py (for the setup.py develop action that's fired on it).

Changed in anybox.recipe.openerp:
status: New → Fix Committed
Revision history for this message
Georges Racinet (gracinet) wrote : Re: [Bug 1079819] Re: PIL related error with OpenERP 7

On 11/17/2012 12:23 PM, Georges Racinet wrote:
> It's confirmed that the problem was on some systems having PIL take
> precedence over Pillow
>
> Now we take care to remove PIL from dependencies if it's detected, both
> internally in the recipe code (for scripts dependencies) and in
> OpenERP's setup.py (for the setup.py develop action that's fired on it).
>
> ** Changed in: anybox.recipe.openerp
> Status: New => Fix Committed
>
J'ai testé, bien sûr, mais je me demande si c'était pas en fait ton PIL
global qui avait des pbms. En tout état de cause, maintenant c'est
nettoyé, on a jamais les deux.

Peux-tu stp tester cette nouvelle version quand tu auras le temps ?
Moi j'ai la vérif cron_worker à faire, et sinon, ben ça sent la release :-)

Revision history for this message
Georges Racinet (gracinet) wrote :

released with v 1.3

Changed in anybox.recipe.openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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