How run the new client?

Asked by Nhomar - Vauxoo

Hello.

I compile documentation on new web client and it is not indacated there.

When i trie to run this error appear.
Traceback (most recent call last):
  File "./openerp-web.py", line 41, in <module>
    import web.common.dispatch
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/__init__.py", line 1, in <module>
    import common
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/common/__init__.py", line 4, in <module>
    from dispatch import *
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/common/dispatch.py", line 16, in <module>
    import werkzeug.urls
ImportError: No module named urls

I now the architecture has changed, can you help me how do i need to run the new web client please.

Regards.

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Solved by:
Valentin Lab
Solved:
Last query:
Last reply:
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#1

You are missing a dependency. Install python-werkzeug.

Cheers,
--
Maxime Chambreuil

----- Mail original -----
New question #170585 on OpenERP Web Client:
https://answers.launchpad.net/openobject-client-web/+question/170585

Hello.

I compile documentation on new web client and it is not indacated there.

When i trie to run this error appear.
Traceback (most recent call last):
  File "./openerp-web.py", line 41, in <module>
    import web.common.dispatch
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/__init__.py", line 1, in <module>
    import common
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/common/__init__.py", line 4, in <module>
    from dispatch import *
  File "/home/openerp/instancias/trunk/openerp-web/addons/web/common/dispatch.py", line 16, in <module>
    import werkzeug.urls
ImportError: No module named urls

I now the architecture has changed, can you help me how do i need to run the new web client please.

Regards.

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#2

Thank maxime.

I installed already python-werkzeug, look the error is with "urls " module, if the error should error in import werkzeug this package would solve the issue (it happends before.) but i look for a packege of python colled urls and everithings refer to django, may somebody helps me with this dependency please.

Regards,

Revision history for this message
Best Valentin Lab (vaab) said :
#3

Hello

It seems that python-werkzeug in Ubuntu is version 0.5.1 - You can check this yourself by running:

$ dpkg -l python-werkzeug

If this is the case, even if werkzeug documentation is not clear on that fact, it seems that sub-module "urls" has been
committed in the 0.6.0 package as the github repository shows:

The history of "urls.py" (https://github.com/mitsuhiko/werkzeug/commits/0.6/werkzeug/urls.py), shows that the file "urls.py" has been created 06 August 2009 nearly one month after the release date of the 0.5.1 tag.

In short: Ubuntu's werkzeug version is 0.5.1 and you need the 0.6.0 at least... to have the "urls.py" module.

Revision history for this message
Cristian Salamea (ovnicraft) said :
#4

IMHO the best way to install python libraries is use pip, you can set the version what you need.

Best regards,

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#5

Hey valentin/cristian

Thanks for help.... it was a problem with versioning, i think the project should have a list of libraries needs or the running.

I install with pip as cristian propose and it installs V0.7 ...

Thanks

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#6

Thanks Valentin LAB, that solved my question.