我有feedparser.py在我的项目目录中,但是我的代码不能在本地google dev服务器上运行。在
我得到这个错误
File "/home/ahmad/GAE/livemetals/lv.py", line 34, in <module>
d = feedparser.parse(url)
AttributeError: 'module' object has no attribute 'parse'
INFO 2012-06-23 16:13:25,891 dev_appserver.py:2891] "GET / HTTP/1.1" 500 -
这是我用的密码
^{pr2}$我可以在非googleappengine python脚本上使用feedparser。但是当我复制时”feedparser.py“我仍然无法在我的项目中使用它,即使我将其作为follows导入
import feedparser
如何让feedparser在我的GAE项目中工作?谢谢你的帮助
在我看来,GAE python运行时正在寻找另一个
feedparser
模块。您的项目中是否还有另一个
feedparser.py
脚本?我会尝试打印
feedparser.__file__
来检查您的项目所指向的模块的位置。在相关问题 更多 >
编程相关推荐