首先看看,在安装完odoo后, 启动运行后出现错误
ile "D:\odoofj\Python37-32\lib\_strptime.py", line 92, in __calc_weekday
a_weekday = [calendar.day_abbr[i].lower() for i in range(7)]
File "D:\odoofj\Python37-32\lib\_strptime.py", line 92, in <listcomp>
a_weekday = [calendar.day_abbr[i].lower() for i in range(7)]
File "D:\odoofj\Python37-32\lib\calendar.py", line 82, in __getitem__
return funcs(self.format)
ValueError: embedded null byte
进程已结束,退出代码 1
解决办法:
python\Lib\_strptime.py 下,23行处添加代码:
locale.setlocale(locale.LC_ALL, 'en')
找到_strptime.py
这个一般在python路径下,我这里安装的是python虚拟环境,所以找到虚拟环境位置下的Lib文件夹
重启odoo