Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

How to enable Instant Messaging?

By
Dharmraj
on 5/8/13, 5:11 AM 11,157 views

I want to enable instant messaging for OpenERP 7.0 or trunk while running from localhost. It says that "Instant Messaging is not activated on this server." Can you please help me ?

Traceback:2013-05-09 06:25:01,920 INFO Using gevent mode gevent.monkey's warning: 'threading' is already imported Traceback (most recent call last): File "./openerp-server", line 4, in <module> openerp.cli.main() File "/home/openerp/workspace/rdtools/server/trunk/openerp/cli/__init__.py", line 61, in main o.run(args) File "/home/openerp/workspace/rdtools/server/trunk/openerp/cli/server.py", line 276, in run main(args) File "/home/openerp/workspace/rdtools/server/trunk/openerp/cli/server.py", line 232, in main import gevent_psycopg2

Dharmraj
on 5/9/13, 4:29 AM

ImportError: No module named gevent_psycopg2. Can you please help me on this ?

Dharmraj
on 5/9/13, 4:32 AM

its because not evented,

try this way http://febru.soluvas.com/2013/09/how-to-activate-instant-messaging-on.html

febru wasono
on 9/2/13, 9:15 AM
1
Christian Twinckle
On 5/8/13, 11:33 AM

Firstly, install gevent package, after that in terminal:

tch@tch-desktop:~/workspace/rdtools/server/trunk$ ./openerp-server --addons-path ../../addons/trunk/,../../web/trunk/addons/ --gevent -write=2

Then reload your localhost:8069 , and click on top (Display Instant Messaging) icon, It will work.

Thanks for the Response. Please read my comments on the Question. I am getting mentioned Traceback that File "/home/openerp/workspace/rdtools/server/trunk/openerp/cli/server.py", line 232, in main import gevent_psycopg2 ImportError: No module named gevent_psycopg2. Hope you can help me on that.

Dharmraj
on 5/9/13, 4:34 AM

ya sure , but for that you have to install psycopg2 package.

Christian Twinckle
on 5/9/13, 6:28 AM

then install Instant Messaging module.

Christian Twinckle
on 5/9/13, 6:32 AM

Now i am getting the following trace back written in the answer. Could not posted everything in the comment due to its limited size. Sorry for inconvenience.Hoping the quick response. Thanks :)

Dharmraj
on 5/9/13, 7:24 AM

Hi Twinkle Christian, can you send me gevent package or download link?,

Ghanshyam Prajapati
on 5/9/13, 8:35 AM

install gevent_psconfig2 using this command pip install gevent-psycopg2 or download source https://github.com/zacharyvoase/gevent-psycopg2

Christian Twinckle
on 5/9/13, 9:37 AM

Any update for me ?

Dharmraj
on 5/9/13, 11:16 AM

+1 me also

Andreas Maertens
on 5/24/13, 12:24 PM

It did work for me BUT it also changed the listening port to 8072 ignoring my settings in openerp-server.conf why is that ?!? and what is -write=2 for an startup option?!?

Michael Karrer
on 8/26/13, 2:22 PM

I'm using OpenErp 7 where i get Instant Messaging module? & how to configer this in localhost

Ossman Khalil
on 11/13/13, 7:24 AM
0
Dharmraj
On 5/9/13, 7:21 AM

./openerp-server --addons-path ../../addons/trunk/,../../web/trunk/addons/ --gevent -write=2 2013-05-09 09:16:34,728 INFO Using gevent mode gevent.monkey's warning: 'threading' is already imported

2013-05-09 09:16:34,740 17043 INFO ? openerp: OpenERP version 8.0alpha1 2013-05-09 09:16:34,740 17043 INFO ? openerp: addons paths: /home/openerp/workspace/rdtools/addons/trunk,/home/openerp/workspace/rdtools/web/trunk/addons 2013-05-09 09:16:34,740 17043 INFO ? openerp: database hostname: localhost 2013-05-09 09:16:34,741 17043 INFO ? openerp: database port: 5432 2013-05-09 09:16:34,741 17043 INFO ? openerp: database user: openerp 2013-05-09 09:16:35,382 17043 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.2 detected 2013-05-09 09:16:35,645 17043 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069 2013-05-09 09:16:35,646 17043 INFO ? openerp: OpenERP server is running, waiting for connections... Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 505, in run self.__target(self.__args, *self.__kwargs) File "/home/openerp/workspace/rdtools/server/trunk/openerp/service/wsgi_server.py", line 441, in serve httpd.serve_forever() File "/usr/lib/pymodules/python2.7/gevent/baseserver.py", line 182, in serve_forever Greenlet.spawn(self.stop, timeout=stop_timeout).join() File "/usr/lib/pymodules/python2.7/gevent/greenlet.py", line 258, in spawn g = cls(args, *kwargs) File "/usr/lib/pymodules/python2.7/gevent/greenlet.py", line 146, in __init__ greenlet.__init__(self, parent=get_hub()) File "/usr/lib/pymodules/python2.7/gevent/hub.py", line 133, in get_hub raise NotImplementedError('gevent is only usable from a single thread') NotImplementedError: gevent is only usable from a single thread

0
febru wasono
On 9/2/13, 3:40 PM

go to openerp/tools/config.py

then set default value of gevent=True

see complete tutorial on febru dot soluvas dot com

Hi Febru, Can you post the url at which the tutorial can be accessed? I verified for it but i am unable to find, So please help me.

komala kiran kumar. Parepalli
on 1/2/14, 2:57 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 5/8/13, 5:11 AM
Seen: 11157 times
Last updated: 3/16/15, 8:10 AM