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

Replace the addons folder

By
Kassem
on 7/10/14, 11:56 AM 1,108 views

Dears,

I would like to know if it's possible to replace the addons folder by another one recovered from another machine. Because, when I do that, I get the following errors:

pydev debugger: starting
2014-07-10 12:36:47,354 2403352 INFO ? openerp: OpenERP version 7.0-20131220-002431
2014-07-10 12:36:47,355 2403352 INFO ? openerp: addons paths: C:\Users\Admin\workspace\openerp-7.0\openerp\addons
2014-07-10 12:36:47,355 2403352 INFO ? openerp: database hostname: localhost
2014-07-10 12:36:47,355 2403352 INFO ? openerp: database port: 5432
2014-07-10 12:36:47,355 2403352 INFO ? openerp: database user: openpg
2014-07-10 12:36:47,676 2403352 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-07-10 12:36:47,677 2403352 CRITICAL ? openerp.modules.module: The report "report.account.analytic.journal" already exists!
2014-07-10 12:36:47,677 2403352 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\service\__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\modules\module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\web\http.py", line 628, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\web\http.py", line 517, in __init__
    self.load_addons()
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\web\http.py", line 580, in load_addons
    m = __import__('openerp.addons.' + module)
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\modules\module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\account\__init__.py", line 25, in <module>
    import project
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\account\project\__init__.py", line 23, in <module>
    import report
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\account\project\report\__init__.py", line 22, in <module>
    import analytic_journal
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\addons\account\project\report\analytic_journal.py", line 61, in <module>
    report_sxw.report_sxw('report.account.analytic.journal', 'account.analytic.journal', 'addons/account/project/report/analytic_journal.rml',parser=account_analytic_journal,header="internal")
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\report\report_sxw.py", line 392, in __init__
    report_rml.__init__(self, name, table, rml, '')
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\report\interface.py", line 65, in __init__
    super(report_rml, self).__init__(name)
  File "C:\Users\Admin\workspace\openerp-7.0\openerp\report\interface.py", line 45, in __init__
    assert not self.exists(name), 'The report "%s" already exists!' % name
AssertionError: The report "report.account.analytic.journal" already exists!
2014-07-10 12:36:47,690 2403352 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-07-10 12:36:47,697 2403352 INFO ? openerp: OpenERP server is running, waiting for connections...

Thank you,

1

Ludo - Neobis

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

Developer

Ludo - Neobis
On 7/11/14, 10:32 AM

This error shows that your OpenERP is trying to add a report which already exists, namely "report.account.analytic.journal". 

You could try to uncomment that report and retry. An alternative is to remove the report from the database so it can be "regenerated".

1
DelphineL
On 7/10/14, 1:03 PM

Hello, 

"2014-07-10 12:36:47,355 2403352 INFO ? openerp: addons paths: C:\Users\Admin\workspace\openerp-7.0\openerp\addons":

Addons directory where the web module seems to miss , you must add in your config file:

addons_paths: C:\Users\Admin\workspace\openerp-7.0\openerp\addons, C:\Users\Admin\workspace\openerp-7.0\addons

1
Kassem
On 7/11/14, 6:50 AM

Thank yout but i still have the same error.

Here is the content of the openerp-server.conf file:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = openpg
db_password = openpgpwd
addons_paths: C:\Users\Admin\workspace\openerp-7.0\openerp\addons, C:\Users\Admin\workspace\openerp-7.0\addons
pg_path = C:\Program Files (x86)\OpenERP 7.0-20131016-232725\PostgreSQL\bin

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: 7/10/14, 11:56 AM
Seen: 1108 times
Last updated: 3/16/15, 8:10 AM