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

Issue during install process of Odoo 8.0 on Debian 7 - ImportError: No module named requests

By
Eusebio Zavatti
on 11/18/14, 5:12 AM 1,324 views

Good morning,

I'm trying to install Odoo 8.0 in Debian 7.

When launching command "odoo/openerp-server" I obtain this:

Traceback (most recent call last):
  File "odoo/openerp-server", line 2, in <module>
    import openerp
  File "/opt/odoo/8.0/odoo/openerp/__init__.py", line 94, in <module>
    import cli
  File "/opt/odoo/8.0/odoo/openerp/cli/__init__.py", line 38, in <module>
    import deploy
  File "/opt/odoo/8.0/odoo/openerp/cli/deploy.py", line 5, in <module>
    import requests
ImportError: No module named requests


I'm a newbie.

Thank you very much.

2

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 11/18/14, 6:45 AM

The python-requests module is missing, just like it says in the error. On debian this should work:

sudo apt-get install python-requests

0
Eusebio Zavatti
On 11/18/14, 7:42 AM

Thank You very much!!!

Installation OK.

After creating db I obtain Erro 500: intenal server error and login redirect to : http://192.168.0.13:8069/web/login?redirect=http%3A%2F%2F192.168.0.13%3A8069%2Fweb.

in console I get:

2014-11-18 13:00:40,072 3425 ERROR mydatabase werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi
    execute(app)
  File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/8.0/odoo/openerp/service/server.py", line 280, in app
    return self.app(e, s)
  File "/opt/odoo/8.0/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/8.0/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1215, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1189, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1361, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1296, in get_response
    result = request.registry['ir.http']._handle_exception(e)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 596, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1293, in get_response
    result.flatten()
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1166, in flatten
    self.response.append(self.render())
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 1160, in render
    context=request.context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1007, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_qweb.py", line 184, in get_template
    raise_qweb_exception(QWebTemplateNotFound, message="Loader could not find template %r" % name, template=origin_template)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_qweb.py", line 182, in get_template
    xml_doc = qwebcontext.loader(name)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1005, in loader
    return self.read_template(cr, uid, name, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "<string>", line 2, in read_template
    
  File "/opt/odoo/8.0/odoo/openerp/tools/cache.py", line 119, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_ui_view.py", line 849, in read_template
    view_id = self.pool['ir.model.data'].xmlid_to_res_id(cr, uid, xml_id, raise_if_not_found=True)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_model.py", line 934, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(cr, uid, xmlid, raise_if_not_found)[1]
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_model.py", line 926, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(cr, uid, xmlid)[1:3]
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "<string>", line 2, in xmlid_lookup
    
  File "/opt/odoo/8.0/odoo/openerp/tools/cache.py", line 71, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/addons/base/ir/ir_model.py", line 916, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % (xmlid))
QWebTemplateNotFound: External ID not found in the system: web.login

 

You're very welcome. If this helped you out, please mark the answer as correct. This way the question will disappear from the active questions list.

Ludo - Neobis
on 11/18/14, 8:03 AM

Please create new question for this error. Also search the forum for similar questions before posting it and provide some form of error logs.

Ludo - Neobis
on 11/18/14, 8:07 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: 11/18/14, 5:12 AM
Seen: 1324 times
Last updated: 3/16/15, 8:10 AM