Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6358 Lượt xem

I try to run odoo with gevent option but i got this error :

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 "C:\Users\cayley\git\odoo\openerp\service\server.py", line 375, in watch_parent
    ppid = os.getppid()
AttributeError: 'module' object has no attribute 'getppid'
<Greenlet at 0x5521d58L: <bound method GeventServer.watch_parent of <openerp.service.server.GeventServer object at 0x0000000004FC7128>>> failed with AttributeError

 

Someone can help me to fixe this ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

instead of running openerp-server try starting openerp-gevent

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

in my case, after upgrade pycharm from 3.1 to 4.01, there is same error message

after run the following command in the console , problem resolved

sys.path.insert(0,'D:\\PyCharm4\\helpers\\python-skeletons\\os')

the reason is that the relevant file(_init_.py under os subfolder) defining the getppid is not in the search path,

 

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 25
835
0
thg 11 24
1213
0
thg 5 24
20
0
thg 2 24
1189
2
thg 2 24
2386