This question has been flagged
11 Replies
11991 Views

Hi,

     I have Install odoo 8 on my linux System. when i am debuging it it run an stuck on one point. can someone help me out that what could be the problem.

2014-10-01 17:08:37,001 2263 INFO ? openerp: OpenERP version 9.0alpha1
2014-10-01 17:08:37,002 2263 INFO ? openerp: addons paths: ['/home/yusuf/.local/share/Odoo/addons/9.0', u'/home/yusuf/odoo/openerp/addons', u'/home/yusuf/odoo/addons']
2014-10-01 17:08:37,002 2263 INFO ? openerp: database hostname: localhost
2014-10-01 17:08:37,003 2263 INFO ? openerp: database port: 5432
2014-10-01 17:08:37,004 2263 INFO ? openerp: database user: yusuf
2014-10-01 17:08:39,046 2263 INFO ? openerp.service.server: Evented Service (longpolling) running on 0.0.0.0:8072
2014-10-01 17:09:13,712 2263 INFO ? openerp.http: HTTP Configuring static files
2014-10-01 17:09:14,782 2263 INFO HRMS openerp.modules.loading: loading 1 modules...
2014-10-01 17:09:19,339 2263 INFO HRMS openerp.modules.loading: 1 modules loaded in 4.30s, 0 queries
2014-10-01 17:09:19,950 2263 INFO HRMS openerp.modules.loading: loading 29 modules...
2014-10-01 17:09:29,792 2263 INFO HRMS openerp.modules.loading: 29 modules loaded in 9.84s, 0 queries
2014-10-01 17:09:32,231 2263 INFO HRMS openerp.modules.loading: Modules loaded.
2014-10-01 17:09:32,500 2263 INFO HRMS openerp.addons.base.ir.ir_http: Generating routing map
127.0.0.1 - - [2014-10-01 17:09:52] "GET /web HTTP/1.1" 200 25796 54.206552
2014-10-01 17:09:52,810 2263 INFO HRMS openerp.addons.bus.bus: Bus.loop listen imbus on db postgres

 

 

Thanks & Regards,

Yusuf Ali

Avatar
Discard
Best Answer

In /opernerp/__init__.py are these lines at start.

'''
if sys.modules.get("gevent") is not None:
    evented = True
'''

Comment these lines and will work

Avatar
Discard

Thanks Dorin, with this change it worked even on PyCharm Community Edition 4.06

That was the solution for me. But what is the impact?

Thanks man!

Thanks. Works fine on my pycharm ide. After updating pycharm, i could not debug python.

Best Answer

You do not give any details about the IDE you are using. I had the same problem using Eclipse verrsion 4.2.2 and PyDev version 3.8.0. It would start the Odoo server properly using the command "Run - Configuration". However the server did not start properly using the command "Run - Debug Configuration". Switching back to PyDev version 3.5.1 solved the problem.

Version 3.5.1 is wat you get when you use http://pydev.org/nightly as the update site instead of http://pydev.org/updates

Hope this solves your problem.

Regards,

Hendrik

Avatar
Discard

Thanks, mate. I sent a bug-report to pydev

Thanks, pydev 3.5 worked ok for me on ubuntu 14.04 using eclipse 3.7.2

I was using pydev 4.3.0.201508182223 , Dorin Hongu solution worked for me.

Best Answer

You only remove gevent module.

apt-get remove python-gevent

Avatar
Discard

This apt-get remove python-gevent fixed my problem on debug =) thx

Best Answer

I guess your problem is that you have gevent installed and you are starting odoo using openerp-server script...

Odoo will detect this and try running gevent version (that enables the chat extension on Odoo). If you start Odoo using openerp-gevent then you don't need apply changes to base code...

Regards,

Avatar
Discard