current trunk (8.0alpha1) requires module requests otherwise web won't load
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP buildout recipe |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
see attached buildout.cfg
without eggs = including requests, web client would install in addons path but fail to start with error shown below:
2013-07-28 21:40:54,086 19493 CRITICAL ? openerp.
2013-07-28 21:40:54,086 19493 CRITICAL ? openerp.
2013-07-28 21:40:54,086 19493 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/home/
openerp.
File "/home/
getattr(
File "/home/
root = Root()
File "/home/
self.
File "/home/
m = __import_
File "/home/
mod = imp.load_
File "/home/
import google_spreadsheet
File "/home/
import requests
ImportError: No module named requests
I am a buildout newbie, so I am unsure if 'requests' is supposed to go into the anybox recipe or should be mentioned in the readme as a requirement for 8.x trunk
thanks
Thanks for the report !
Indeed, this can also be seen in the buildbot https:/ /buildbot. anybox. fr/builders/ openerp- trunk-postgresq l-9.1/builds/ 2112
This is due to a recent changeset in OpenERP.
We could correct this in the recipe, and that wouldn't be the only dependency that's added/corrected to OpenERP's setup.py
But I wonder why they didn't add it to setup.py in the first place.
If they simply forgot about it, then the issue will solve itself once their setup.py gets corrected.
But maybe they don't want to add the requiremet in there, because that's a need of the 'web' addon, not of openobject-server.
In that case, I'd be glad to add a condition in the recipe
We should ask them
There's no clean way that I know of to indicate that an addon has a requirement on a python library (that's really missed)