原文: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