(English) Quickly get and run OpenERP 6.1 (trunk)

Tags:

Ci spiace, ma questo articolo è disponibile soltanto in English.

Facebook Twitter Linkedin Digg Delicious Reddit Stumbleupon Tumblr Posterous Email Snailmail

Written by on domenica, dicembre 11th, 2011

Lorenzo Battistini
OpenERP addicted
GitHub profile: https://github.com/eLBati
Launchpad profile: https://launchpad.net/~elbati
Linkedin profile: http://www.linkedin.com/in/elbati
------------------------------------------------
Agile Business Group
  • http://libertus.co.uk Alan Bell

    great stuff, I will now do all my customer presentations with the kitten=1 parameter I think 😉

  • Monjebour

    Hi, my openerp not found.

    Follow error:

    [2011-12-29 02:10:56,957][?] WARNING:wsgi:Werkzeug module unavailable, falling back to wsgiref.[2011-12-29 02:10:56,970][?] ERROR:root: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 “./server/trunk/openerp-server”, line 243, in     __import__(m)  File “/home/monocon/web/trunk/addons/web/__init__.py”, line 1, in     import common  File “/home/monocon/web/trunk/addons/web/common/__init__.py”, line 2, in     import http  File “/home/monocon/web/trunk/addons/web/common/http.py”, line 19, in     import werkzeug.contrib.sessionsImportError: No module named werkzeug.contrib.sessions[2011-12-29 02:10:56,974][?] INFO:server:OpenERP server is running, waiting for connections…[2011-12-29 02:10:56,975][?] INFO:wsgi:HTTP service (wsgiref) running on 0.0.0.0:8069

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

      Hello,

      pip install Werkzeug

      or

      apt-get install python-werkzeug

  • Riaz Aamir

    Error when executing:

    bzr cat -d lp:~openerp-dev/openerp-tools/trunk setup.sh | shbzr: ERROR: no such option: -d

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

      I think you have an old version of bzr. I’m using 2.4.1

  • Csergiu77

    i followed what is written here…server started ..web server as well…but when i access the localhost:8002 i have the new web interface which is new, but no possibility to create a database and the combine for databases is empty.on preview. versions i was able to create databases….i do something wrong…what¿

  • Crsilveira

    Hi, my openerp not open…

    Follow error:

    [2012-01-07 14:55:43,072][?] ERROR:root: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 “./server/trunk/openerp-server”, line 243, in
        __import__(m)
      File “/opt/openerp61/web/trunk/addons/web/__init__.py”, line 2, in
        import controllers
      File “/opt/openerp61/web/trunk/addons/web/controllers/__init__.py”, line 1, in
        import main
      File “/opt/openerp61/web/trunk/addons/web/controllers/main.py”, line 19, in
        import babel.messages.pofile
    ImportError: No module named babel.messages.pofile

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini


      pip install Babel
      or
      apt-get install python-babel

  • Perecastanyer

    Same as Crsilveira: 

    ERROR:root: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 “./server/trunk/openerp-server”, line 242, in     __import__(m)  File “/home/pere/openerp_v6/web/trunk/addons/web/__init__.py”, line 1, in     import common  File “/home/pere/openerp_v6/web/trunk/addons/web/common/__init__.py”, line 2, in     import http  File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 19, in     import werkzeug.contrib.sessionsImportError: No module named werkzeug.contrib.sessions

    And module babel installed, any sugestions?

    I’m on a Ubuntu 11.04 oneiric.

  • Perecastanyer

    Hi eLBati, 

    I’ve solved the problem. Was the missing packages python-werkzeug and python-openid. Nom I can see the login screen but I received in 3 seconds:

    Client Traceback (most recent call last):
    File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 175, in dispatch
    response[“result”] = method(controller, self, **self.params)
    File “/home/pere/openerp_v6/web/trunk/addons/web/controllers/main.py”, line 280, in get_list
    dbs = proxy.list()
    File “/home/pere/openerp_v6/web/trunk/addons/web/common/openerplib/main.py”, line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
    File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 577, in send
    raise fault

    Server Traceback (most recent call last):
    File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 558, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File “/home/pere/openerp_v6/server/trunk/openerp/netsvc.py”, line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
    File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 114, in dispatch
    return fn(*params)
    File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 309, in exp_list
    cr = db.cursor()
    File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 468, in cursor
    return Cursor(self._pool, self.dbname, serialized=serialized)
    File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 176, in __init__
    self._cnx = pool.borrow(dsn(dbname))
    File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 368, in _locked
    return fun(self, *args, **kwargs)
    File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 423, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
    OperationalError: fe_sendauth: no password supplied

    This in ubuntu oneiric. Whats wrong with fe_sendauth? something in postgress configuration is diferent from 6.0.3?

    Regards, and ty for the script.

  • Perecastanyer

    Solved.

    Seems that md5 not working in pg_hba config file. I must to put “local al all trust” is normal this behaviour?
    Something with md5 broken?

    regards.

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

      I did not have to edit pg_hba.

      Try creating the configuration file

      vim ~/.openerp_serverrc

      with the following content

      [options]
      db_password = openerp
      db_user = openerp
      db_host = localhost

      with the correct credentials of course

  • Perecastanyer

    Hello again, mmm there is a easy way to update the openerp 6.1 trunk to latest from this type of installation?

    Regards.

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

      make pull

      • Perecastanyer

        Maybe the code isn’t working? 
        I’ve made: make pull; make init-trunk;make server

        And server starts but when I autenticate…:

        Server Traceback (most recent call last):
        File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 590, in send
        result = openerp.netsvc.dispatch_rpc(service_name, method, args)
        File “/home/pere/openerp_v6/server/trunk/openerp/netsvc.py”, line 324, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
        File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 398, in dispatch
        return fn(*params)
        File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 409, in exp_authenticate
        res_users = pooler.get_pool(db).get(‘res.users’)
        File “/home/pere/openerp_v6/server/trunk/openerp/pooler.py”, line 50, in get_pool
        return get_db_and_pool(db_name, force_demo, status, update_module)[1]
        File “/home/pere/openerp_v6/server/trunk/openerp/pooler.py”, line 33, in get_db_and_pool
        registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/registry.py”, line 138, in get
        update_module, pooljobs)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/registry.py”, line 160, in new
        openerp.modules.load_modules(registry.db, force_demo, status, update_module)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/loading.py”, line 299, in load_modules
        loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/loading.py”, line 180, in load_module_graph
        modobj.check(cr, 1, [module_id])
        File “/home/pere/openerp_v6/server/trunk/openerp/addons/base/module/module.py”, line 613, in check
        if not mod.description:
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 476, in __getattr__
        return self[name]
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 391, in __getitem__
        field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load=”_classic_write”)
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 3381, in read
        result = self._read_flat(cr, user, select, fields, context, load)
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 3440, in _read_flat
        cr.execute(query, (tuple(sub_ids),))
        File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 152, in wrapper
        return f(self, *args, **kwargs)
        File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 214, in execute
        res = self._obj.execute(query, params)
        ProgrammingError: column ir_module_module.auto_install does not exist
        LINE 1: …e.”complexity”,ir_module_module.”views_by_module”,ir_module_…
        ^Server Traceback (most recent call last): File “/home/pere/openerp_v6/web/trunk/addons/web/common/http.py”, line 590, in send
        result = openerp.netsvc.dispatch_rpc(service_name, method, args)
        File “/home/pere/openerp_v6/server/trunk/openerp/netsvc.py”, line 324, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
        File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 398, in dispatch
        return fn(*params)
        File “/home/pere/openerp_v6/server/trunk/openerp/service/web_services.py”, line 409, in exp_authenticate
        res_users = pooler.get_pool(db).get(‘res.users’)
        File “/home/pere/openerp_v6/server/trunk/openerp/pooler.py”, line 50, in get_pool
        return get_db_and_pool(db_name, force_demo, status, update_module)[1]
        File “/home/pere/openerp_v6/server/trunk/openerp/pooler.py”, line 33, in get_db_and_pool
        registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/registry.py”, line 138, in get
        update_module, pooljobs)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/registry.py”, line 160, in new
        openerp.modules.load_modules(registry.db, force_demo, status, update_module)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/loading.py”, line 299, in load_modules
        loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
        File “/home/pere/openerp_v6/server/trunk/openerp/modules/loading.py”, line 180, in load_module_graph
        modobj.check(cr, 1, [module_id])
        File “/home/pere/openerp_v6/server/trunk/openerp/addons/base/module/module.py”, line 613, in check
        if not mod.description:
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 476, in __getattr__
        return self[name]
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 391, in __getitem__
        field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load=”_classic_write”)
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 3381, in read
        result = self._read_flat(cr, user, select, fields, context, load)
        File “/home/pere/openerp_v6/server/trunk/openerp/osv/orm.py”, line 3440, in _read_flat
        cr.execute(query, (tuple(sub_ids),))
        File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 152, in wrapper
        return f(self, *args, **kwargs)
        File “/home/pere/openerp_v6/server/trunk/openerp/sql_db.py”, line 214, in execute
        res = self._obj.execute(query, params)
        ProgrammingError: column ir_module_module.auto_install does not exist
        LINE 1: …e.”complexity”,ir_module_module.”views_by_module”,ir_module_…
        ^

        • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

          Usually you have to

          $ make pull

          then

          $ make server

          and then you’d better run a ‘migrate database’, if you want to use old databases.

          • Perecastanyer

            Was that. The database needs migration. With a new database all goes well.

            Ty very much.

  • Laurent Tizzone

    Hi,
    When I do ; bzr cat -d lp:~openerp-dev/openerp-tools/trunk setup.sh | sh
    I’ve got the bzr error no such option -d
    Do you have an idea? I’m in debian server.
    Thanks

    • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini
      • Laurent Tizzone

        Hi,

        Thanks!

      • Laurent Tizzone

        I remove my bzr install with apt-get and install new with wget but I’ve got this error when I do bzr version:
        /usr/bin/bzr no file or directory.I did whereis bzr :
        bzr: /usr/local/bin/bzrDo you knwo how i can updazt ethe link?Thanks!

        • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

           http://wiki.bazaar.canonical.com/BzrSupport

  • Xergio

     Hi,
    I have the following error:
    # launch the server
    # You can specify custom addons branches directories by overriding
    # SERVER_ADDONS_BRANCH and SERVER_ADDONS_WEB_BRANCH
    ./server/trunk/openerp-server –addons-path=addons/trunk,web/trunk/addons –log-level=debug –test-disable
    make: ./server/trunk/openerp-server: comando non trovato
    make: *** [server] Errore 127

    Any idea?
    Thanks

    • Xergio

       I solved, were the missing dependencies

      • http://planet.domsense.com/en/author/elbati/ Lorenzo Battistini

        By the way, if you are interested in getting OpenERP 6.1, see the article’s update.