本地搭建SAE的python環境時,總是報如下錯誤:
1 F:\workspace\dev\python\frikyskice\1>dev_server.py 2 Traceback (most recent call last): 3 File "C:\Python27\Scripts\dev_server.py", line 205, in <module> 4 main(options) 5 File "C:\Python27\Scripts\dev_server.py", line 165, in main 6 options.__dict__.update(conf) 7 ValueError: dictionary update sequence element #0 has length 1; 2 is required
找了好久也沒發現到底錯在何方,偶然發現是config.yaml文件的問題
name: frikyskice version: 1
關鍵在冒號的后面需要一個空格,增加上空格以后,問題解決。
初始接觸時還容易遇到的一種錯誤
1 F:\workspace\dev\python\frikyskice\1>dev_server.py
2 Error: Not an app directory(or any of the parent directories)
產生錯誤的原因是文件夾下不存在config.yaml
自己用記事本寫一個文件即可