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

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

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

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

[9.0]非root权限无法启动odoo



  • CentOS 7.0
    Odoo 9.0
    问题1:
    sudo执行odoo启动命令可以正常启动,但非root权限就无法启动,不知道什么问题??
    提示如下:
    Traceback (most recent call last):
    File "/data/service/odoo/odoo.py", line 160, in <module>
    main()
    File "/data/service/odoo/odoo.py", line 156, in main
    import openerp
    File "/data/service/odoo/openerp/init.py", line 58, in <module>
    import modules
    File "/data/service/odoo/openerp/modules/init.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
    File "/data/service/odoo/openerp/modules/graph.py", line 13, in <module>
    import openerp.osv as osv
    File "/data/service/odoo/openerp/osv/init.py", line 4, in <module>
    import osv
    File "/data/service/odoo/openerp/osv/osv.py", line 4, in <module>
    from ..exceptions import except_orm
    File "/data/service/odoo/openerp/exceptions.py", line 15, in <module>
    from lxml import etree
    File "lxml.etree.pyx", line 161, in init lxml.etree (src/lxml/lxml.etree.c:198645)
    TypeError: encode() argument 1 must be string without null bytes, not unicode

    不知道是不是跟python安装的时候是以root权限安装的有关联?



  • CentOS 7.0
    Odoo 9.0
    问题1:
    sudo执行odoo启动命令可以正常启动,但非root权限就无法启动,不知道什么问题??
    提示如下:
    Traceback (most recent call last):
    File "/data/service/odoo/odoo.py", line 160, in <module>
    main()
    File "/data/service/odoo/odoo.py", line 156, in main
    import openerp
    File "/data/service/odoo/openerp/init.py", line 58, in <module>
    import modules
    File "/data/service/odoo/openerp/modules/init.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
    File "/data/service/odoo/openerp/modules/graph.py", line 13, in <module>
    import openerp.osv as osv
    File "/data/service/odoo/openerp/osv/init.py", line 4, in <module>
    import osv
    File "/data/service/odoo/openerp/osv/osv.py", line 4, in <module>
    from ..exceptions import except_orm
    File "/data/service/odoo/openerp/exceptions.py", line 15, in <module>
    from lxml import etree
    File "lxml.etree.pyx", line 161, in init lxml.etree (src/lxml/lxml.etree.c:198645)
    TypeError: encode() argument 1 must be string without null bytes, not unicode

    不知道是不是跟python安装的时候是以root权限安装的有关联?


  • 管理员

    你可以检查下你启动odoo用户的python版本和包的路径对不对。



  • 之前是提示lxml包找不到,所以添加了包路径,但却出现了现在的问题,
    TypeError: encode() argument 1 must be string without null bytes, not unicode
    根据这个提示,应是启动过程中,调用lxml执行encode方法的参数为null,但就是不知哪里引起的这个参数错误?



  • 步科绿色版真是伟大的东东。
    希望引起大家的足够重视。



  • 你重新安装下lxml


登录后回复
 

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