Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Pydev调试代码,报'module' object has no attribute 'getppid'



  • 2014-12-26 10:47:02,109 1840 INFO ? openerp.service.server: Evented Service (longpolling) running on 0.0.0.0:8072
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\gevent\greenlet.py", line 327, in run
        result = self._run(*self.args, **self.kwargs)
      File "D:\GreenSoft\odoodev\green8\odoo-8.0-44e401c\openerp\service\server.py", line 376, in watch_parent
        ppid = os.getppid()
    AttributeError: 'module' object has no attribute 'getppid'
    <Greenlet at 0x66052b0: <bound method GeventServer.watch_parent of <openerp.service.server.GeventServer object at 0x060DE1D0>>> failed with AttributeError
    想用pydev调试代码,就报这个错

    原因是windows环境中没有getppid属性



  • 2014-12-26 10:47:02,109 1840 INFO ? openerp.service.server: Evented Service (longpolling) running on 0.0.0.0:8072
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\gevent\greenlet.py", line 327, in run
        result = self._run(*self.args, **self.kwargs)
      File "D:\GreenSoft\odoodev\green8\odoo-8.0-44e401c\openerp\service\server.py", line 376, in watch_parent
        ppid = os.getppid()
    AttributeError: 'module' object has no attribute 'getppid'
    <Greenlet at 0x66052b0: <bound method GeventServer.watch_parent of <openerp.service.server.GeventServer object at 0x060DE1D0>>> failed with AttributeError
    想用pydev调试代码,就报这个错

    原因是windows环境中没有getppid属性



  • 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



  • 按照这种方法debug 不报错了。谢谢


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待