SAE 本地环境报错[python][dictionary update sequence element #0 has length 1; 2 is required]

时间:2014-11-15 15:27:19   收藏:0   阅读:911

本地搭建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

自己用记事本写一个文件即可

原文:http://www.cnblogs.com/frikyskicce/p/4099247.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!