原文:BUG!!!======> syncdb 时 “ TypeError: decode() argument 1 must be string, not None ”

初步断定decode 的话,问题应该出现在语言编码的问题,想到了环境变量,于是设置: 创建superuser: BUG除掉 将export LC ALL en US.UTF 写入到profile或者.bashrc中即可。 引用: The immediate resolution for this, assuming you are using bash as your shell: export ...

2012-08-24 10:23 0 2948 推荐指数:

查看详情

TypeError: string argument without an encoding

学习分布式进程该书用的python2.x,代码为 manager = QueueManager(address=('127.0.0.1', 8001), authkey='qiye') 运行报错TypeError: string argument without an encoding ...

Tue Apr 14 16:27:00 CST 2020 0 2332
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM