Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Couldn't load module web AFTER UPDATE

Avatar
odoo
Avatar
Discard
7 Answers
0
Avatar
odoo
Best Answer

Hi;

Post the last lines of your log.

No module named wizard means probably that there is no directory named wizard under pos_delivery_restaurant (probably stated in __init__.py).

look under your ..../addons/pos_delivery_restaurant/ to see if it's there (probably not), if so copy the original pos_delivery_restaurant to you addons dir.

Or try to re-download pos_delivery_restaurant

*In fact, the error you encountered, is a "very particular" case, cause i encounter the same issue each time i update my openERP instance, and exlusively with some addons from VAUXOO. Some subdirectories of vauxoo's addons (e.g wizard and model) are deleted after each update.

So, i think this case should and must be raised in Launchpad. And i will do it.

For the part of your comment related to ftp and sftp, can you describe your exact need.*

Update after the last response, and last comment from William Crandell .

Read this on Launchpad

7 Comments
Avatar
Discard
Avatar
odoo
-

I couldn't send a new post so I edited last one. For me my log now is exactly the same than it was in my first post. Thanks for helping me.

Avatar
odoo
-

That was it. I uploaded again de files and start working again. Thanks a lot.

Do you know how to get FTP access? Or SFTP? It drove me crazy to get the files there.

Avatar
odoo
-

I'd like to use "root" ftp in ubuntu to be able to access "root" and "openerp" folder and edit them. So, it have nothing to be with this issue.

Avatar
odoo
-

On the web you can find tons of documentations explaining WHY we should NOT use the root account. My advice is avoid this practice, sudo command is sufficient in most cases.

Avatar
odoo
-

Ok, but how do you change folders and files on openerp directories? Do u use filezilla o SHELL commands?

Avatar
odoo
-

How do u use sudo command to upload and change files?

Avatar
odoo
-

If you are using Filezilla with vsftpd, just put the right config in /etc/vsftpd.conf. (http://www.techrepublic.com/blog/smb-technologist/how-to-create-an-ftp-server-on-an-ubuntu-1204-virtual-machine/)

0
Avatar
odoo
Best Answer

Thanks a lot for de answered.

My main guess is that i'm no able to follow your instructions.

I've deletete the folder ~/addons/pos_delivery_restaurant/ I've added "addons_path = /usr/lib/pymodules/python2.7/openerp/addons" in "/etc/openerp/openerp-server.conf"

But I still get No handler found. What do I do wrong? Thanks.

Log file:

2014-03-04 16:07:18,237 761 CRITICAL ? openerp.modules.module: No module named wizard

2014-03-04 16:07:18,237 761 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 "/usr/lib/pymodules/python2.7/openerp/service/__init__.py", line 60, in load_server_wide_modules openerp.modules.module.load_openerp_module(m)

File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 415, in load_openerp_module getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()

File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 628, in wsgi_postload openerp.wsgi.register_wsgi_handler(Root())

File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 517, in __init__ self.load_addons()

File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 580, in load_addons m = __import__('openerp.addons.' + module)

File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

File "/usr/lib/pymodules/python2.7/openerp/addons/pos_delivery_restaurant/__init__.py", line 26, in <module> import wizard

ImportError: No module named wizard

2014-03-04 16:07:18,307 761 INFO ? openerp: OpenERP server is running, waiting for connections...

2014-03-04 16:07:18,309 761 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069

2014-03-04 16:10:56,598 761 INFO ? werkzeug: 84.124.130.115 - - [04/Mar/2014 16:10:56] "GET / HTTP/1.1" 404 -

Avatar
Discard
0
Avatar
odoo
Best Answer

Hi,

  • Please review and checking file config openerp Example: /etc/init.d/openerp-server.conf
  • After adding line: addons_path = source code addons path in Your Local
  • Restart again openerp server.

Regards.

Avatar
Discard
0
Avatar
odoo
Best Answer

HI,

The traceback shows that there might be missing/or not found the wizard folder in "pos_delivery_restaurant" module. Please recheck the module.

Avatar
Discard
0
Avatar
odoo
Best Answer

Same problem here, after an update "make pull" from bazaar, I get the same kind of message.

I tried to run the server with a brand new installation from bazaar, trunk version.... same thing !

2014-03-05 07:45:57,693 5549 DEBUG ? openerp.http: Loading project_issue 2014-03-05 07:45:57,695 5549 DEBUG ? openerp.http: Loading project_timesheet 2014-03-05 07:45:57,696 5549 DEBUG ? openerp.http: Loading purchase 2014-03-05 07:45:57,701 5549 DEBUG ? openerp.http: Loading report 2014-03-05 07:45:57,703 5549 CRITICAL ? openerp.modules.module: Couldn't load module web 2014-03-05 07:45:57,703 5549 CRITICAL ? openerp.modules.module: No module named pyPdf 2014-03-05 07:45:57,703 5549 ERROR ? openerp.service.server: 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 "/home/alex/Documents/openerp3/source/server/openerp/service/server.py", line 810, in load_server_wide_modules openerp.modules.module.load_openerp_module(m) File "/home/alex/Documents/openerp3/source/server/openerp/modules/module.py", line 272, in load_openerp_module getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])() File "/home/alex/Documents/openerp3/source/server/openerp/http.py", line 1222, in wsgi_postload root = Root() File "/home/alex/Documents/openerp3/source/server/openerp/http.py", line 1009, in __init__ self.load_addons() File "/home/alex/Documents/openerp3/source/server/openerp/http.py", line 1034, in load_addons m = __import__('openerp.addons.' + module) File "/home/alex/Documents/openerp3/source/server/openerp/modules/module.py", line 73, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/home/alex/Documents/openerp3/source/addons/report/__init__.py", line 1, in <module> import controllers File "/home/alex/Documents/openerp3/source/addons/report/controllers/__init__.py", line 1, in <module> import main File "/home/alex/Documents/openerp3/source/addons/report/controllers/main.py", line 45, in <module> from pyPdf import PdfFileWriter, PdfFileReader ImportError: No module named pyPdf

Any idea ?

2 Comments
Avatar
Discard
Avatar
odoo
-

For alexis: PdfFileReader ImportError: No module named pyPdf : means that the python package pyPdf is not installed. Try to install it from https://pypi.python.org/pypi/pyPdf

Avatar
odoo
-

Alexis, you should move your question to a NEW QUESTION.

0
Avatar
odoo
Best Answer

Solution for this ERROR ? It would be great if i get a solution..

Thank you..

2015-02-11 09:13:22,024 2731 INFO ? openerp: OpenERP version 7.0-20150211
2015-02-11 09:13:22,024 2731 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2015-02-11 09:13:22,024 2731 INFO ? openerp: database hostname: localhost
2015-02-11 09:13:22,024 2731 INFO ? openerp: database port: 5432
2015-02-11 09:13:22,024 2731 INFO ? openerp: database user: openerp
2015-02-11 09:13:22,240 2731 CRITICAL ? openerp.modules.module: Couldn't load module web
2015-02-11 09:13:22,241 2731 CRITICAL ? openerp.modules.module: No module named unittest2
2015-02-11 09:13:22,241 2731 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 "/opt/openerp/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/server/openerp/addons/web/__init__.py", line 3, in <module>
    import cli
  File "/opt/openerp/server/openerp/addons/web/cli/__init__.py", line 1, in <module>
    import test_js
  File "/opt/openerp/server/openerp/addons/web/cli/test_js.py", line 5, in <module>
    import unittest2
ImportError: No module named unittest2
2015-02-11 09:13:22,309 2731 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2015-02-11 09:13:22,310 2731 INFO ? openerp: OpenERP server is running, waiting for connections...
2015-02-11 09:13:59,028 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:13:59] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:01,149 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:01] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:11,717 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:11,792 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET /favicon.ico HTTP/1.1" 404 -
2015-02-11 09:14:11,793 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET /favicon.ico HTTP/1.1" 404 -
2015-02-11 09:14:14,980 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:14] "GET / HTTP/1.1" 404 -

2015-02-11 09:13:22,024 2731 INFO ? openerp: OpenERP version 7.0-20150211
2015-02-11 09:13:22,024 2731 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2015-02-11 09:13:22,024 2731 INFO ? openerp: database hostname: localhost
2015-02-11 09:13:22,024 2731 INFO ? openerp: database port: 5432
2015-02-11 09:13:22,024 2731 INFO ? openerp: database user: openerp
2015-02-11 09:13:22,240 2731 CRITICAL ? openerp.modules.module: Couldn't load module web
2015-02-11 09:13:22,241 2731 CRITICAL ? openerp.modules.module: No module named unittest2
2015-02-11 09:13:22,241 2731 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 "/opt/openerp/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/server/openerp/addons/web/__init__.py", line 3, in <module>
    import cli
  File "/opt/openerp/server/openerp/addons/web/cli/__init__.py", line 1, in <module>
    import test_js
  File "/opt/openerp/server/openerp/addons/web/cli/test_js.py", line 5, in <module>
    import unittest2
ImportError: No module named unittest2
2015-02-11 09:13:22,309 2731 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2015-02-11 09:13:22,310 2731 INFO ? openerp: OpenERP server is running, waiting for connections...
2015-02-11 09:13:59,028 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:13:59] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:01,149 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:01] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:11,717 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET / HTTP/1.1" 404 -
2015-02-11 09:14:11,792 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET /favicon.ico HTTP/1.1" 404 -
2015-02-11 09:14:11,793 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:11] "GET /favicon.ico HTTP/1.1" 404 -
2015-02-11 09:14:14,980 2731 INFO ? werkzeug: 127.0.0.1 - - [11/Feb/2015 09:14:14] "GET / HTTP/1.1" 404 -

Avatar
Discard
0
Avatar
odoo
Best Answer

I am not sure what cause your problem but I have had to handle similar situations. Updating your modules does seem to fix the issue though getting them to update is not a straight forward process from my experience .

You can update in more than one way... 1. Module list update 2. Module upgrade 3. Cache update

When updating your modules list you can simply enable the technical features and select the new found menu item (after refreshing your browser) labeled "Update Module list"

To upgrade to new module version Select the desired module and click "Upgrade"

For Ubuntu/Debian users To update the cache you will have to start the server from the command line passing the flag --update=all or instead of all you can name a specific module.

This works fine if you have no custom addon paths though in my experience if you have custom addon paths you must all-so specify them as a command line flag. either by explicitly referring to them --addons-path=/srv/custom/path,/opt/openerp/custom/path or even better refer to your configuration file --config=/etc/openerp/openerp-server.conf

Additionally you may have permission errors as in by default the (Thankfully) OpenERP can not run as root. you may or may not want to run the system as your user, I prefer to use the user account openerp setup during install.

One though can not login to the account openerp becaus ethe lack of a shell (this should not change for security reasons)

So to run the server as user openerp and update the modules while accessing your configuration file use this command:

sudo -u openerp openerp-server --config=/etc/openerp/openerp-server.conf --update=all

You may want to access everything once to get the update to occur though it would be recommended to shutdown and restart the server without the update afterwards.

sudo service openerp start

Worth mentioning It has been noticed that this can also occur when one has manually installed and did not run

python setup.py install

Though this is not required and sometimes undesired depending on how the system administer wants the software used. If you are doing alot of changing and developing it may be better not to run this command but if you are looking for a persistent install (more in-line with production) then it may be better to "actually install the software."

If you installed from a "DEB" package then this is unnecessary.

1 Comment
Avatar
Discard
Avatar
odoo
-

You can also just update the cache using the standard python options.