Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

请问该如何解决呢?openERP6.1源码调试和开发,ImportError: No module named wsgi



  • [color=red][size=14pt][b]openERP6.1源码调试开发发生的问题,ImportError: No module named wsgi[/b][/size][/color]

    [size=12pt]本机环境:windows7旗舰版+eclipse+pydev+pg数据库+python2.7[/size]

    2013-02-25 15:02:40,374 5992 INFO ? openerp: OpenERP version 6.1-20130205-002350
    2013-02-25 15:02:40,374 5992 INFO ? openerp: addons paths: D:\develop\projects\workspace_python\openerp61\openerp\addons
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database hostname: localhost
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database port: 5432
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database user: openpg
    2013-02-25 15:02:40,405 5992 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
    2013-02-25 15:02:40,405 5992 INFO ? openerp.netsvc: Starting 1 services
    2013-02-25 15:02:40,562 5992 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: Couldn't load module web
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: No module named wsgi
    2013-02-25 15:02:40,576 5992 ERROR ? openerp: 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 "D:\develop\projects\workspace_python\openerp61\openerp-server", line 252, in <module>
        openerp.modules.module.load_openerp_module(m)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 409, in load_openerp_module
        import('openerp.addons.' + module_name)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 139, in load_module
        mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web_init_.py", line 3, in <module>
        from . import common
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common_init_.py", line 2, in <module>
        from . import http
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common\http.py", line 21, in <module>
        import werkzeug.contrib.sessions
      File "D:\develop\Python27\lib\site-packages\werkzeug-0.8.3-py2.7.egg\werkzeug\contrib\sessions.py", line 69, in <module>
        from werkzeug.wsgi import ClosingIterator
    ImportError: No module named wsgi
    2013-02-25 15:02:40,592 5992 INFO ? openerp: OpenERP server is running, waiting for connections...
    2013-02-25 15:02:44,665 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:44,819 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /favicon.ico HTTP/1.1" 404 -
    2013-02-25 15:02:48,464 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:48,526 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /favicon.ico HTTP/1.1" 404



  • [color=red][size=14pt][b]openERP6.1源码调试开发发生的问题,ImportError: No module named wsgi[/b][/size][/color]

    [size=12pt]本机环境:windows7旗舰版+eclipse+pydev+pg数据库+python2.7[/size]

    2013-02-25 15:02:40,374 5992 INFO ? openerp: OpenERP version 6.1-20130205-002350
    2013-02-25 15:02:40,374 5992 INFO ? openerp: addons paths: D:\develop\projects\workspace_python\openerp61\openerp\addons
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database hostname: localhost
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database port: 5432
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database user: openpg
    2013-02-25 15:02:40,405 5992 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
    2013-02-25 15:02:40,405 5992 INFO ? openerp.netsvc: Starting 1 services
    2013-02-25 15:02:40,562 5992 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: Couldn't load module web
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: No module named wsgi
    2013-02-25 15:02:40,576 5992 ERROR ? openerp: 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 "D:\develop\projects\workspace_python\openerp61\openerp-server", line 252, in <module>
        openerp.modules.module.load_openerp_module(m)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 409, in load_openerp_module
        import('openerp.addons.' + module_name)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 139, in load_module
        mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web_init_.py", line 3, in <module>
        from . import common
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common_init_.py", line 2, in <module>
        from . import http
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common\http.py", line 21, in <module>
        import werkzeug.contrib.sessions
      File "D:\develop\Python27\lib\site-packages\werkzeug-0.8.3-py2.7.egg\werkzeug\contrib\sessions.py", line 69, in <module>
        from werkzeug.wsgi import ClosingIterator
    ImportError: No module named wsgi
    2013-02-25 15:02:40,592 5992 INFO ? openerp: OpenERP server is running, waiting for connections...
    2013-02-25 15:02:44,665 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:44,819 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /favicon.ico HTTP/1.1" 404 -
    2013-02-25 15:02:48,464 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:48,526 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /favicon.ico HTTP/1.1" 404



  • 楼主是如何解决的呢,我现在也碰到了这样的问题?



  • [quote author=zw1982 link=topic=5769.msg14282#msg14282 date=1361783794]
    [color=red][size=14pt][b]openERP6.1源码调试开发发生的问题,ImportError: No module named wsgi[/b][/size][/color]

    [size=12pt]本机环境:windows7旗舰版+eclipse+pydev+pg数据库+python2.7[/size]

    2013-02-25 15:02:40,374 5992 INFO ? openerp: OpenERP version 6.1-20130205-002350
    2013-02-25 15:02:40,374 5992 INFO ? openerp: addons paths: D:\develop\projects\workspace_python\openerp61\openerp\addons
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database hostname: localhost
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database port: 5432
    2013-02-25 15:02:40,374 5992 INFO ? openerp: database user: openpg
    2013-02-25 15:02:40,405 5992 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
    2013-02-25 15:02:40,405 5992 INFO ? openerp.netsvc: Starting 1 services
    2013-02-25 15:02:40,562 5992 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: Couldn't load module web
    2013-02-25 15:02:40,576 5992 CRITICAL ? openerp.modules.module: No module named wsgi
    2013-02-25 15:02:40,576 5992 ERROR ? openerp: 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 "D:\develop\projects\workspace_python\openerp61\openerp-server", line 252, in <module>
        openerp.modules.module.load_openerp_module(m)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 409, in load_openerp_module
        import('openerp.addons.' + module_name)
      File "D:\develop\projects\workspace_python\openerp61\openerp\modules\module.py", line 139, in load_module
        mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web_init_.py", line 3, in <module>
        from . import common
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common_init_.py", line 2, in <module>
        from . import http
      File "D:\develop\projects\workspace_python\openerp61\openerp\addons\web\common\http.py", line 21, in <module>
        import werkzeug.contrib.sessions
      File "D:\develop\Python27\lib\site-packages\werkzeug-0.8.3-py2.7.egg\werkzeug\contrib\sessions.py", line 69, in <module>
        from werkzeug.wsgi import ClosingIterator
    ImportError: No module named wsgi
    2013-02-25 15:02:40,592 5992 INFO ? openerp: OpenERP server is running, waiting for connections...
    2013-02-25 15:02:44,665 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:44,819 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:44] "GET /favicon.ico HTTP/1.1" 404 -
    2013-02-25 15:02:48,464 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /mobile HTTP/1.1" 404 -
    2013-02-25 15:02:48,526 5992 INFO ? werkzeug: 127.0.0.1 - - [25/Feb/2013 15:02:48] "GET /favicon.ico HTTP/1.1" 404
    [/quote]



  • https://pypi.python.org/pypi/Werkzeug 版本升到最新版 试试. 或者将版本降降级.....


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待