如果“負載演示”數據被檢查,不能第一次啟動Odoo嗎

[英]Can't start Odoo the first time if “Load demonstration” data is checked


I just downloaded Odoo, installed dependencies and configured my IDE. After starting Odoo and being prompted to create my database and choose password it fails with the following error:

我剛剛下載了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>

I've tried dropping the database several times to no avail.

我試過幾次刪除數據庫,但都沒有用。

The current stacktrace:

目前加:

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 个解决方案

#1


1  

In my case error was resolved with following steps.

在我的例子中,錯誤通過以下步驟得到解決。

First install series of missing dependencies

首先安裝一系列丟失的依賴項

From my log, the following are installed for odoo. You can probably reduce the list by trial and error.

在我的日志中,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

Next was error coming from PIL.

接下來是PIL發出的錯誤。

I removed it and installed again : See Installing PIL with pip

我刪除了它並再次安裝:參見使用pip安裝PIL

#2


0  

First Install

第一次安裝

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

Uninstalling python-pil

卸載python-pil

  • sudo apt-get purge python-pil
  • sudo apt-get清洗python-pil

Installing pillow

安裝枕頭

  • pip install pillow
  • pip安裝枕頭

these steps should resolved the problem. I hope help you, ^^

這些步驟應該能夠解決問題。我希望幫助你,^ ^

for more information see this link:

有關更多信息,請參見以下鏈接:

[BUG] DB Creation :: ?Missing Dependency?

DB創建:?丟失依賴項?

Odoo new dependency to Pillow

對枕頭的新依賴


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/06/14/7299564590fb864ede494eb2a628d04c.html



 
粤ICP备14056181号  © 2014-2020 ITdaan.com