odoo win10 无法debug

win10能够启动项目,但是debug报错:


Process finished with exit code -1073740940 (0xC0000374)

解决方式:

修改translate.py

def resetlocale():
# locale.resetlocale is bugged with some locales.
for ln in get_locales():
try:
ln = ln[0:ln.index('.')] #加上这个一行
return locale.setlocale(locale.LC_ALL, ln)
except locale.Error:
continue

猜你喜欢

转载自www.cnblogs.com/shlwb0/p/12566190.html