Community: Framework mailing list archives
Re: TR: openerp-gevent + pyinotifyby
I've deployed odoo as WSGI Application, see:
- normally I've separated process (service) that supports LiveChat, but as I used --auto-reload option
in the wsgi application process (NOT in the LiveChat - openerp-gevent process), then LiveChat stopped working,
I spawn it this way from command line just for find out why it does not work, but anyway it's a separated
process as I mentioned above, it's not spawned automatically by odoo server in my setup.
select.poll is supported in os, but gevent disables it(as per one of your reply on this thread).
yes, actually it's because of --auto-reload option that openerp-gevent can't start.
I need this option in main process (wsgi one) and cron processes, but I do NOT need it in the openerp-gevent,
But when I use --auto-reload in wsgi, then auto_reload configuration option is set to True even in
the openerp-gevent process... as openerp-geven can't run with auto_reload=True configuration,
I suppose that it should be somehow possible to have auto_reload set to True in wsgi & cron processes,
whereas auto_reload should be always False in openerp-gevent process.
What's failing is the autoreload option of Odoo. Do you need this? Which OS are you on? It seems your OS does not support poll or it was compiled without it. On the other hand, why are you spawning the gevent process yourself? This process is automatically spawned by the odoo prefork server. R, Manuel. Le 29/07/2015 03:55, Temur Vibliani a écrit : > hello all, > > I can't start openerp-gevent instance: > > ./openerp-gevent > 2015-07-29 07:43:11,717 8225 INFO ? openerp: OpenERP version 8.0 > 2015-07-29 07:43:11,717 8225 INFO ? openerp: addons paths: > ['/home/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/openerp/addons', > u'/opt/odoo/addons'] > 2015-07-29 07:43:11,718 8225 INFO ? openerp: database hostname: localhost > 2015-07-29 07:43:11,718 8225 INFO ? openerp: database port: 5432 > 2015-07-29 07:43:11,718 8225 INFO ? openerp: database user: odoo > Traceback (most recent call last): > File "./openerp-gevent", line 11, in > openerp.cli.main() > File "/opt/odoo/openerp/cli/__init__.py", line 68, in main > o.run(args) > File "/opt/odoo/openerp/cli/server.py", line 180, in run > main(args) > File "/opt/odoo/openerp/cli/server.py", line 174, in main > rc = openerp.service.server.start(preload=preload, stop=stop) > File "/opt/odoo/openerp/service/server.py", line 959, in start > autoreload = AutoReload(server) > File "/opt/odoo/openerp/service/server.py", line 137, in __init__ > self.notifier = pyinotify.Notifier(self.wm, self.handler, timeout=0) > File "/usr/lib/python2.7/dist-packages/pyinotify.py", line 1152, in > __init__ > self._pollobj = select.poll() > AttributeError: 'module' object has no attribute 'poll' > > > Any suggestions? > > Thanks, > Temur > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/community-framework-62 > Post to: mailto:email@example.com > Unsubscribe: https://www.odoo.com/groups?unsubscribe >
Post to: mailto:firstname.lastname@example.org