openerp.cli.main() AttributeError: 'module' object has no attribute 'cli'
2014-05-27 16:45
836 查看
freebsd 下安装openerp之后, 设置了数据库和用户名, 然后报错:
这到底是怎么回事
问题很明显, openerp没有一个叫做cli的子模块或者属性.
当然上述的错误你能看到, 很大程度上是将openerpd文件里的 comargs='>dev/null' 之类的输出重定向给去掉了, 不然openerp启动不了, 居然连一点错误消息都看不到.
后来进python命令行
然后, 就去ports里将openerp-web给卸载掉. 再重新运行openerpd, 发现错误变成了
这个错误google上没什么好答案, 可能有的人会将 /usr/local/lib/libxml2.so.2 软链接到 /usr/local/lib/libxml2.so.5, 但是我没看到任何资料.
我后来重新安装了 libxml2, 发现没效果, 然后我又重新安装了 linxslt, 结果发现问题消失了.
完.
Traceback (most recent call last): File "/usr/local/bin/openerp-server", line 5, in <module> openerp.cli.main() AttributeError: 'module' object has no attribute 'cli' /usr/local/etc/rc.d/openerpd: WARNING: failed to start openerpd
这到底是怎么回事
问题很明显, openerp没有一个叫做cli的子模块或者属性.
当然上述的错误你能看到, 很大程度上是将openerpd文件里的 comargs='>dev/null' 之类的输出重定向给去掉了, 不然openerp启动不了, 居然连一点错误消息都看不到.
后来进python命令行
import openerp openerp结果发现openerp是openerp-web的某个目录里的, 不是openerp-server的.
然后, 就去ports里将openerp-web给卸载掉. 再重新运行openerpd, 发现错误变成了
Shared object "libxml2.so.5" not found, required by "libxslt.so.2"
这个错误google上没什么好答案, 可能有的人会将 /usr/local/lib/libxml2.so.2 软链接到 /usr/local/lib/libxml2.so.5, 但是我没看到任何资料.
我后来重新安装了 libxml2, 发现没效果, 然后我又重新安装了 linxslt, 结果发现问题消失了.
/usr/ports/textproc/libxml2 #make deinstall /usr/ports/textproc/libxml2 #make install /usr/ports/textproc/libxslt #make deinstall /usr/ports/textproc/libxslt #make install
完.
相关文章推荐
- [Python]attributeError:'module' object has no attribute 'dump'
- service_identity 模块 AttributeError: 'module' object has no attribute 'Any'
- Debian (Jessie 8.0) 的修复pip AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'
- AttributeError 'module' object has no attribute 'handlers'--Python子模块导入问题
- AttributeError: 'module' object has no attribute 的解决方法
- AttributeError: 'module' object has no attribute 'handlers'--Python子模块导入问题
- solution:AttributeError: 'module' object has no attribute 'PY2'
- AttributeError: 'module' object has no attribute 'Frame' 解决方法
- AttributeError: &#39;module&#39; object has no attribute &#39;maketrans&#39;
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- Python:AttributeError: 'function' object has no attribute '_doc_'
- AttributeError: 'module' object has no attribute 'getpass'
- AttributeError: 'Response' object has no attribute 'json'
- AttributeError: 'module' object has no attribute 'randint'
- python 使用scapy包告警WARNING: can't import layer inet: 'module' object has no attribute 'IPPROTO_IPIP'
- python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
- AttributeError: type object '_socketobject' has no attribute 'socket'
- TypeError: 'generator' object has no attribute '__getitem__'
- scapy AttributeError: 'NoneType' object has no attribute 'route'解决办法
- yum错误'module' object has no attribute 'iterparse'解决方法