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.

0

Odoo 8 on Windows 7 using Eclipse

By
Hunzala
on 8/25/16, 6:48 AM 164 views

Hi,

I am trying to use Odoo 8 on windows 7 using Eclipse environment. I have cloned the version 8 from github and installed postgresql on my system. I have followed all the steps mentioned in https://www.odoo.com/forum/how-to/developers-13/how-to-debug-odoo-in-eclipse-under-winows-36105

I can easily create database but I cannot restore database. I get an error command: psql not found. 

Please help. Thank you.

Here are the logs:

16:13:33] "GET / HTTP/1.1" 200 -

2016-08-25 16:13:34,901 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:34] "GET /web HTTP/1.1" 303 -

2016-08-25 16:13:35,285 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:35] "GET /web/database/selector HTTP/1.1" 303 -

2016-08-25 16:13:35,944 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:35] "GET /web/database/manager HTTP/1.1" 200 -

2016-08-25 16:13:38,821 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:38] "POST /web/session/get_session_info HTTP/1.1" 200 -

2016-08-25 16:13:39,528 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:39] "POST /web/webclient/bootstrap_translations HTTP/1.1" 200 -

2016-08-25 16:13:39,898 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:39] "POST /web/proxy/load HTTP/1.1" 200 -

2016-08-25 16:13:40,246 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:40] "POST /web/database/get_list HTTP/1.1" 200 -

2016-08-25 16:13:40,536 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:13:40] "POST /web/session/get_lang_list HTTP/1.1" 200 -

2016-08-25 16:15:18,046 7736 ERROR None openerp.http: Command `psql` not found.

Traceback (most recent call last):

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 115, in dispatch_rpc

result = dispatch(method, params)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 73, in dispatch

return fn(*params)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 217, in exp_restore

restore_db(db_name, data_file.name, copy=copy)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 260, in restore_db

if openerp.tools.exec_pg_command(pg_cmd, *pg_args):

File "D:\Office Work\Odoooooooo\odoo8\openerp\tools\misc.py", line 127, in exec_pg_command

prog = find_pg_tool(name)

File "D:\Office Work\Odoooooooo\odoo8\openerp\tools\misc.py", line 111, in find_pg_tool

raise Exception('Command `%s` not found.' % name)

Exception: Command `psql` not found.

2016-08-25 16:15:18,230 7736 INFO None werkzeug: 127.0.0.1 - - [25/Aug/2016 16:15:18] "POST /web/database/restore HTTP/1.1" 500 -

2016-08-25 16:15:18,325 7736 ERROR None werkzeug: Error on request:

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 193, in run_wsgi

execute(self.server.app)

File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 181, in execute

application_iter = app(environ, start_response)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\server.py", line 291, in app

return self.app(e, s)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\wsgi_server.py", line 216, in application

return application_unproxied(environ, start_response)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\wsgi_server.py", line 202, in application_unproxied

result = handler(environ, start_response)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 1296, in __call__

return self.dispatch(environ, start_response)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 1270, in __call__

return self.app(environ, start_wrapped)

File "C:\Python27\lib\site-packages\werkzeug\wsgi.py", line 599, in __call__

return self.app(environ, start_response)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 1446, in dispatch

result = _dispatch_nodb()

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 1425, in _dispatch_nodb

result = request.dispatch()

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 690, in dispatch

r = self._call_function(**self.params)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 317, in _call_function

return self.endpoint(*args, **kwargs)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 809, in __call__

return self.method(*args, **kw)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 409, in response_wrap

response = f(*args, **kw)

File "D:\Office Work\Odoooooooo\odoo8\addons\web\controllers\main.py", line 758, in restore

request.session.proxy("db").restore(restore_pwd, new_db, data, copy)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 885, in proxy_method

result = dispatch_rpc(self.service_name, method, args)

File "D:\Office Work\Odoooooooo\odoo8\openerp\http.py", line 115, in dispatch_rpc

result = dispatch(method, params)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 73, in dispatch

return fn(*params)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 217, in exp_restore

restore_db(db_name, data_file.name, copy=copy)

File "D:\Office Work\Odoooooooo\odoo8\openerp\service\db.py", line 260, in restore_db

if openerp.tools.exec_pg_command(pg_cmd, *pg_args):

File "D:\Office Work\Odoooooooo\odoo8\openerp\tools\misc.py", line 127, in exec_pg_command

prog = find_pg_tool(name)

File "D:\Office Work\Odoooooooo\odoo8\openerp\tools\misc.py", line 111, in find_pg_tool

raise Exception('Command `%s` not found.' % name)

Exception: Command `psql` not found.

Hunzala
on 8/25/16, 7:20 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

1 follower(s)

Stats

Asked: 8/25/16, 6:48 AM
Seen: 164 times
Last updated: 8/25/16, 10:27 AM