odoo12与Python3.7的兼容问题

在Manjaro系统中安装Odoo12时,遇到登录页面样式错误,原因是libsass未正常工作。通过检查错误信息,发现可能是libsass 0.12.3版本与Python3.7不兼容。解决方案是将requirements.txt中的libsass版本改为0.17.0以上,重新安装依赖后问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近在Manjaro上安装odoo12,安装过程一切顺利,服务跑起来后,浏览器访问前台,创建用户和数据库后,走到登录这一步报错,前台样式显示错误,从报错信息来看,初步判断是libsass没有正常工作导致无法正确编译css样式文件。

后台错误信息:

2019-01-12 03:30:43,852 10887 WARNING odoo12 odoo.addons.base.models.assetsbundle: Traceback (most recent call last):
  File "/home/steel/.local/share/virtualenvs/odoo12-YnLelO5z/bin/sassc", line 7, in <module>
    from sassc import main
  File "/home/steel/.local/share/virtualenvs/odoo12-YnLelO5z/bin/sassc.py", line 82, in <module>
    import sass
  File "/home/steel/.local/share/virtualenvs/odoo12-YnLelO5z/lib/python3.7/site-packages/sass.py", line 27, in <module>
    import _sass
ImportError: /home/steel/.local/share/virtualenvs/odoo12-YnLelO5z/lib/python3.7/site-packages/_sass.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN4Sass4Eval13fallback_implEPNS_8AST_NodeE
This error occured while compiling the bundle 'web.assets
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值