This question has been flagged
17 Replies
61142 Views

UPDATE: Later I experienced the same on a system with Ubuntu 14.04

I'm trying to install Odoo on my Mac with OSX 10.9. Here's what I did:

1. `brew install postgresql`

2. `postgres -D /usr/local/var/postgres`
3. `createdb odootest`
4. `git clone https://github.com/odoo/odoo.git`, the repo is 500MB big so this takes a while
5. `cd odoo; sudo python setup.py install`, this will also install many dependencies with `easy_install`, ignore all the warnings
6. `python odoo.py -s` to start with sample data generated by odoo

7. I ran into an error with pyPdf so `sudo easy_install pyPdf`

But now:

014-07-02 12:42:09,332 44979 ERROR guaka werkzeug: Error on request:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/Library/Python/2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/Users/guaka/playground/odoo/openerp/service/server.py", line 280, in app
    return self.app(e, s)
  File "/Users/guaka/playground/odoo/openerp/service/wsgi_server.py", line 215, in application
    return application_unproxied(environ, start_response)
  File "/Users/guaka/playground/odoo/openerp/service/wsgi_server.py", line 201, in application_unproxied
    result = handler(environ, start_response)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1151, in __call__
    return self.dispatch(environ, start_response)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1128, in __call__
    return self.app(environ, start_wrapped)
  File "/Library/Python/2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1297, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1232, in get_response
    result = request.registry['ir.http']._handle_exception(e)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
    return request._handle_exception(exception)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 544, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1229, in get_response
    result.flatten()
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1105, in flatten
    self.response.append(self.render())
  File "/Users/guaka/playground/odoo/openerp/http.py", line 1100, in render
    context=request.context)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1002, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_qweb.py", line 246, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_qweb.py", line 186, in get_template
    raise_qweb_exception(QWebTemplateNotFound, message="Loader could not find template %r" % name, template=origin_template)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_qweb.py", line 184, in get_template
    xml_doc = qwebcontext.loader(name)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1000, in loader
    return self.read_template(cr, uid, name, context=context)
  File "/Users/guaka/playground/odoo/openerp/tools/cache.py", line 21, in lookup
    r = self.lookup(self2, cr, *args, **argv)
  File "/Users/guaka/playground/odoo/openerp/tools/cache.py", line 86, in lookup
    value = d[key] = self.method(self2, cr, *args, **argv)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_ui_view.py", line 845, in read_template
    view_id = self.pool['ir.model.data'].xmlid_to_res_id(cr, uid, xml_id, raise_if_not_found=True)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_model.py", line 887, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(cr, uid, xmlid, raise_if_not_found)[1]
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_model.py", line 879, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(cr, uid, xmlid)[1:3]
  File "/Users/guaka/playground/odoo/openerp/tools/cache.py", line 21, in lookup
    r = self.lookup(self2, cr, *args, **argv)
  File "/Users/guaka/playground/odoo/openerp/tools/cache.py", line 49, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/Users/guaka/playground/odoo/openerp/addons/base/ir/ir_model.py", line 869, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % (xmlid))
QWebTemplateNotFound: External ID not found in the system: web.login

 

 

Avatar
Discard

same here. starting from source directly without sudo python setup.py install, dependencies installed manually

Best Answer

Passlib is missing, try this (worked for me):

sudo apt-get install python-passlib

Avatar
Discard

Thanks Mario Gielissen, it was ok.

Thanks you It works... New entry in linked git's issue https://github.com/odoo/odoo/issues/953

Great thanks to you

Best Answer

You have to follow some steps when you get this type of error.

1) First of all clear the browser history.

2) run the command "createdb odoo" or you can use your old database also.

3) run the openerp-server using this command

  • ./openerp-server -d odoo -u base

Note : Don't Forget to clear your browser history otherwise it will again throw an error.

 

Avatar
Discard

Thanks Rakeshkumar! That solved my "Access Denied" problem when trying to create a new DB.

Author Best Answer

On this Ubuntu 14.04 machine it's running as user odoo. There was also an odoo database that was somewhat created during the installation process which halted because of missing modules (at least pyPdf, possibly more). I did a `dropdb odoo` from the shell to get things rolling again.

Avatar
Discard
Best Answer

Try adding "-u all" when calling odoo.py, I got the same problem minutes ago and that solved it.

Avatar
Discard

thanks @ David, Its work..fine

Best Answer

In your URL write database/selector insteadof web login and delete faulty database and then create a new one. enjoy ! 

Avatar
Discard
Best Answer

Restore the db to a new db and try with upgrade all modules 

Avatar
Discard
Best Answer

Hi..,
This error will raise for many reasons. Majority of them listed above. Another reason of this module is empty manifest file [ __openerp__.py ] in your addons. So please check that possibility also.


Regards,

Nilmar

Avatar
Discard
Best Answer

Just in case some gets this problem today in odoo 10:

it says in the documentation of the reportsthat the parameter "name" is just a descriotion and it is ot used, see https://www.odoo.com/documentation/10.0/reference/reports.html.


After hours of search documentations and tring so many stuf, itasbeen found that the name of the report should be <DirectoryOfFile>.NameOfYourChoice.

See here :

https://stackoverflow.com/questions/43332982/odoo-9-valueerror-external-id-not-found-in-the-system

Hope this would help any one else that as just changed the name of the directory of his module.

Avatar
Discard
Best Answer

strangely setting the database password to "admin" bypassed that error... probably it's an old fallback method as the "/web/login?redirect" is different from the one that passes on the runbot which is (second occurrence when searching "redirect"): http://runbot.odoo.com/runbot/static/build/05252-8-0-cbe2db/logs/job_10_test_base.txt in the sam line you get login:admin key:admin which led me to think that key might refer to password, and obviously it works...

Could you please open an issue on github for that? https://github.com/odoo/odoo/issues

Avatar
Discard

opene issue: https://github.com/odoo/odoo/issues/953

yes , up till today , 2015/Mar/11, downloaded latest source code from nightly build version 8.0 , after created new odoo db, still face the issue , u can by pass when the password of the admin is "admin" !