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

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

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

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

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



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



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



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



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



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