← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 616224] Re: [6.0] client web setup incorrect

 

** Changed in: openobject-client-web
       Status: Fix Committed => Fix Released

-- 
[6.0] client web setup incorrect
https://bugs.launchpad.net/bugs/616224
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Fix Released

Bug description:
revno 3007
When I launch openobject-web.py directly in the downloaded directory from bzr, I can start the web server (port 8080)
When I launch setup with the command python ./setup.py install I get the following error:

/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'copyright'
  warnings.warn(msg)
running install
/usr/lib/python2.6/dist-packages/setuptools/package_index.py:156: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  Environment.__init__(self,*args,**kw)
/usr/lib/python2.6/dist-packages/setuptools/command/easy_install.py:216: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  self.local_index = Environment(self.shadow_path+sys.path)
.....

When I launch /usr/local/bin/openobject-web, I get the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/tools/_expose.py", line 202, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/controllers/_root.py", line 28, in default
    func, vpath = self.find_handler()
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/controllers/_root.py", line 45, in find_handler
    pool = request.pool = pooler.get_pool()
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/pooler.py", line 85, in get_pool
    addons.load_addons(db_name, config)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/addons.py", line 213, in load_addons
    addons = [f for f in os.listdir(ADDONS_PATH) \
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons'

then I copy the missing directory in /usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons

Launch again /usr/local/bin/openobject-web and can connect on port 8080 and use openerp server 6.0

But then I want to use my config file to pass different port:

[global]
# Some server parameters that you may want to tweak
server.socket_host = "0.0.0.0"
server.socket_port = 9920

# OpenERP Server
openerp.server.host = 'localhost'
openerp.server.port = '9922'
openerp.server.protocol = 'socket'

# logging
log.access_file = "/var/log/openerp/access_9920.log"
log.error_file = "/var/log/openerp/error_9920.log"

# Restrict the databases being displayed
# selected_dbs: All db given in list
selected_dbs = ["demo_v6"]

##############################################################################
# Other information
##############################################################################

# Sets the number of threads the server uses
server.thread_pool = 10

server.environment = "development"

tools.sessions.on = True

# Simple code profiling
server.profile_on = False
server.profile_dir = "profile"

# if this is part of a larger site, you can set the path
# to the TurboGears instance here
#server.webpath = ""

# OpenERP tools
tools.nestedvars.on = True

# Web client settings
[openerp-web]
# filter dblists based on url pattern?
# NONE: No Filter
# EXACT: Exact Hostname
# UNDERSCORE: Hostname_
# BOTH: Exact Hostname or Hostname_

dblist.filter = 'NONE'
#dblist.filter = 'EXACT'
# whether to show Databases button on Login screen or not
#dbbutton.visible = True
dbbutton.visible = False

# will be applied on company logo

# options to limit data rows in M2M/O2M lists, will be overriden 
# with limit="5", min_rows="5" attributes in the tree view definitions
child.listgrid.limit = 10
child.listgrid.min_rows = 10

#options to limit data in listgrid view will be overriden
#with steps="20", min="10", max="1000" attributes.
#You can't set maximum limit more than 1000.
listgrid.pager.min = 20
listgrid.pager.max = 100
listgrid.pager.steps = 20


Then I get the following error (it seems the server cant read the information contained in the config file)

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/tools/_expose.py", line 202, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/controllers/_root.py", line 28, in default
    func, vpath = self.find_handler()
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/controllers/_root.py", line 45, in find_handler
    pool = request.pool = pooler.get_pool()
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/pooler.py", line 85, in get_pool
    addons.load_addons(db_name, config)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/addons.py", line 219, in load_addons
    load_module_graph(db_name, graph, config)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/addons.py", line 180, in load_module_graph
    m = imp_module(package.name)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/openobject/addons.py", line 160, in imp_module
    return imp.load_module(name, fp, pathname, description)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/__init__.py", line 2, in <module>
    import widgets
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/widgets/__init__.py", line 4, in <module>
    from _views import *
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/widgets/_views.py", line 3, in <module>
    from openerp.utils import rpc
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/__init__.py", line 2, in <module>
    import rpc_utils
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/rpc_utils.py", line 36, in <module>
    init_rpc_session()
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/rpc_utils.py", line 34, in init_rpc_session
    rpc.initialize(host, port, protocol, storage=CPSessionWrapper())
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/rpc.py", line 372, in initialize
    session = RPCSession(host, port, protocol, storage=storage)
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/rpc.py", line 244, in __init__
    raise common.message(_("Unsupported protocol."))
  File "/usr/local/lib/python2.6/dist-packages/openobject_web-5.2dev-py2.6.egg/addons/openerp/utils/common.py", line 78, in message
    raise TinyMessage(message=msg)
TinyMessage: Unsupported protocol.