如果"加载演示"第一次无法启动Odoo。检查数据

时间:2015-06-14 14:20:40

标签: openerp odoo openerp-8 odoo-8

我刚刚下载了Odoo,安装了依赖项并配置了我的IDE。启动Odoo并提示您创建我的数据库并选择密码后,它会失败,并显示以下错误:

ParseError: "MissingError
One of the documents you are trying to access has been deleted, please try again after refreshing." while parsing /path/to/odoo/openerp/addons/base/base_data.xml:4, near
<record id="view_menu" model="ir.ui.view">
            <field name="name">ir.ui.menu.tree</field>
            <field name="model">ir.ui.menu</field>
            <field name="arch" type="xml">
                <tree string="Menu" toolbar="1">
                    <field icon="icon" name="name"/>
                </tree>
            </field>
            <field name="field_parent">child_id</field>
        </record>

我试过多次丢弃数据库都无济于事。

当前的堆栈跟踪:

2015-06-21 04:55:00,293 16487 INFO odoo-test werkzeug: 127.0.0.1 - - [21/Jun/2015 04:55:00] "GET /web/login?redirect=http%3A%2F%2F0.0.0.0%3A8069%2Fweb%3Fdb%3Dodoo-test HTTP/1.1" 500 -
2015-06-21 04:55:00,303 16487 ERROR odoo-test werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/path/to/proj/odoo/openerp/service/server.py", line 285, in app
    return self.app(e, s)
  File "/path/to/proj/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/path/to/proj/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/path/to/proj/odoo/openerp/http.py", line 1281, in __call__
    return self.dispatch(environ, start_response)
  File "/path/to/proj/odoo/openerp/http.py", line 1255, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/path/to/proj/odoo/openerp/http.py", line 1427, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/path/to/proj/odoo/openerp/http.py", line 1362, in get_response
    result = request.registry['ir.http']._handle_exception(e)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_http.py", line 146, in _handle_exception
    return request._handle_exception(exception)
  File "/path/to/proj/odoo/openerp/http.py", line 659, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/path/to/proj/odoo/openerp/http.py", line 1359, in get_response
    result.flatten()
  File "/path/to/proj/odoo/openerp/http.py", line 1232, in flatten
    self.response.append(self.render())
  File "/path/to/proj/odoo/openerp/http.py", line 1226, in render
    context=request.context)
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1029, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_qweb.py", line 261, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_qweb.py", line 192, in get_template
    raise_qweb_exception(QWebTemplateNotFound, message="Loader could not find template %r" % name, template=origin_template)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_qweb.py", line 190, in get_template
    xml_doc = qwebcontext.loader(name)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1027, in loader
    return self.read_template(cr, uid, name, context=context)
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "<string>", line 2, in read_template

  File "/path/to/proj/odoo/openerp/tools/cache.py", line 122, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_ui_view.py", line 857, in read_template
    view_id = self.pool['ir.model.data'].xmlid_to_res_id(cr, uid, xml_id, raise_if_not_found=True)
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_model.py", line 944, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(cr, uid, xmlid, raise_if_not_found)[1]
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_model.py", line 936, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(cr, uid, xmlid)[1:3]
  File "/path/to/proj/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "<string>", line 2, in xmlid_lookup

  File "/path/to/proj/odoo/openerp/tools/cache.py", line 74, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/path/to/proj/odoo/openerp/addons/base/ir/ir_model.py", line 926, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % (xmlid))
QWebTemplateNotFound: External ID not found in the system: web.login

2 个答案:

答案 0 :(得分:1)

在我的情况下,错误已通过以下步骤解决。

首先安装一系列缺少的依赖项

从我的日志中,为odoo安装了以下内容。您可以通过反复试验来减少列表。

comerr-dev
gyp
javascript-common
krb5-multidev
libc-ares2
libc-ares-dev
libexpat1-dev
libffi-dev
libfreetype6-dev
libgssrpc4
libjpeg8-dev
libjpeg-dev
libjpeg-turbo8-dev
libjs-node-uuid
libkadm5clnt-mit9
libkadm5srv-mit9
libkdb5-7
libldap2-dev
libpng12-dev
libpq-dev
libpython2.7-dev
libpython-dev
libsasl2-dev
libssl-dev
libssl-doc
libv8-3.14.5
libv8-3.14-dev
libxml2-dev
libxslt1-dev
node-abbrev
node-ansi
node-archy
node-async
node-block-stream
node-combined-stream
node-cookie-jar
node-delayed-stream
node-forever-agent
node-form-data
node-fstream
node-fstream-ignore
node-github-url-from-git
node-glob
node-graceful-fs
node-gyp
node-inherits
node-ini
nodejs
nodejs-dev
node-json-stringify-safe
node-lockfile
node-lru-cache
node-mime
node-minimatch
node-mkdirp
node-mute-stream
node-node-uuid
node-nopt
node-normalize-package-data
node-npmlog
node-once
node-osenv
node-qs
node-read
node-read-package-json
node-request
node-retry
node-rimraf
node-semver
node-sha
node-sigmund
node-slide
node-tar
node-tunnel-agent
node-which
npm
postgresql-server-dev-9.3
python2.7-dev
python-dev
zlib1g-dev

接下来是来自PIL的错误。

我将其删除并重新安装:请参阅Installing PIL with pip

答案 1 :(得分:0)

首次安装

  • 的libjpeg-dev的
  • libfreetype6-dev的
  • 的zlib1g-dev的

卸载python-pil

  • sudo apt-get purge python-pil

安装枕头

  • pip install pillow

这些步骤应该可以解决问题。我希望能帮到你,^^

有关详细信息,请参阅此链接:

[BUG] DB Creation :: ?Missing Dependency?

Odoo new dependency to Pillow