Wrong error message in case of version conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenERP buildout recipe |
Medium
|
Unassigned |
Bug Description
This may be for zc.buildout >= 2.0 only.
In case of version conflict (for instance between the requirement in [versions] and one dependency),
after the log messages that make the problem understandable, there's this traceback
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/
getattr(
File "/home/
installed_files = self[part]
File "/home/
return f()
File "/home/
self.
File "/home/
missing = exc.message.
IndexError: list index out of range
Georges Racinet (gracinet) wrote : | #2 |
Released with 1.7.1
Changed in anybox.recipe.openerp: | |
status: | Fix Committed → Fix Released |
Encountered the same issue
To reproduce, use zc.buildout >= 2.0
And try to install python-dateutil = 2.1
Happened to me with anybox.
warning: no previously-included files matching '*~' found anywhere in distribution
The constraint, 2.1, is not consistent with the requirement, 'python-
While:
Installing openerp.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/
getattr(
File "/home/
installed_files = self[part]
File "/home/
return f()
File "/home/
self.
File "/home/
missing = exc.message.
IndexError: list index out of range
Georges Racinet (gracinet) wrote : | #5 |
Yes, I see, thanks for easy reproduction.
I'm on it
Changed in anybox.recipe.openerp: | |
status: | Fix Released → Confirmed |
Georges Racinet (gracinet) wrote : | #6 |
I ended up rewriting all this exception treatment in the stable branch.
Actually this notion of soft dependencies is not that useful currently (has been made for openerp-command), but it could well turn really useful again on short notice.
The exceptions raised by zc.buildout in case of problem with eggs installations (requirements) can vary, and they also depend on the version of zc.buildout itself. Interesting ranges are ( < 1.7, 1.7, >= 2.0). Could you please give it a try ?
I wrote as much unit-testing as I could.
Thanks !
Changed in anybox.recipe.openerp: | |
milestone: | none → 1.8.6 |
status: | Confirmed → Fix Committed |
importance: | Undecided → Medium |
VersionConflict must be re-raised, here's a sample correct outcome
Error: There is a version conflict.
We already have: reportlab 2.5.anybox1