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

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

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

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

求助:openerp 在ubuntu上安装成功,但是加载模块出错



  • 在Ubunut 10.10 desktop上安装6.0,开始使用tar文件,后来又使用deb文件,安装都是成功的,但是进入系统开始配置的第一步,就出错了,我只选了crm模块,点击下一步,安装的过程中弹出一个对话框说有问题,描述如下:
    Traceback (most recent call last):
      File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
        result = ExportService.getService(service_name).dispatch(method, auth, params)
      File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
        res = fn(db, uid, *params)
      File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
        return f(self, dbname, *args, **kwargs)
      File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
        res = self.execute_cr(cr, uid, obj, method, *args, **kw)
      File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
        return getattr(object, method)(cr, uid, *args, **kw)
      File "/usr/share/pyshared/openerp-server/addons/base/res/res_config.py", line 167, in action_next
        next = self.execute(cr, uid, ids, context=None)
      File "/usr/share/pyshared/openerp-server/addons/base/res/res_config.py", line 397, in execute
        new_db, self.pool = pooler.restart_pool(cr.dbname, update_module=True)
      File "/usr/share/pyshared/openerp-server/pooler.py", line 60, in restart_pool
        return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
      File "/usr/share/pyshared/openerp-server/pooler.py", line 39, in get_db_and_pool
        addons.load_modules(db, force_demo, status, update_module)
      File "/usr/share/pyshared/openerp-server/addons/init.py", line 883, in load_modules
        processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
      File "/usr/share/pyshared/openerp-server/addons/init.py", line 716, in load_module_graph
        register_class(package.name)
      File "/usr/share/pyshared/openerp-server/addons/init.py", line 450, in register_class
        imp.load_module(m, *fm)
      File "/usr/share/pyshared/openerp-server/addons/base_calendar/init.py", line 22, in <module>
        import base_calendar
      File "/usr/share/pyshared/openerp-server/addons/base_calendar/base_calendar.py", line 24, in <module>
        from dateutil import rrule
      File "/usr/local/lib/python2.6/dist-packages/python_dateutil-2.0-py2.6.egg/dateutil/rrule.py", line 13, in <module>
        import _thread
    ImportError: No module named _thread

    实在郁闷了,在linxu上怎么也无法成功,问题多多,请大家帮忙看看,非常感谢。



  • 看起来好象 dateutil 模块有问题.
    试着换几个版本试试...
    dateutil 模块中, 调用 _thread 出错了...



  • 我换了6.0.1,还是出错,要疯掉了…………



  • 是dateutil的版本问题,不是oe的版本问题。<br / http://labix.org/python-dateutil#head-2f49784d6b27bae60cde1cff6a535663cf87497b br />不知道你的dateutil版本为什么是2.0,这个版本只有python3上才能用
    sudo easy_install -m dateutil
    sudo easy_install dateutil==1.5
    未测试,祝你好运



  • 谢谢楼上,我重新安装了linux,严格按照步骤来做,这次没有问题了。