刚刚买了一个树莓派,我试图让我的第一个项目启动并运行,但linux一直说它找不到我的命令,即使它在那里。我不积极,因为我是新手,但我相信问题来自here。我也在YouTube上观看了教程,但没有人遇到这个问题。这里是我的输出...raspberrypi电子邮件通知程序 - 找不到py命令
我是新来的东西Linux的方法以及..
当我进入sudo python ./raspi-email.py
我得到如下:
Traceback (most recent call last):
File "./raspi-gmail.py", line 21, in <module>
newmails = int(feedparser.parse("https://" + USERNAME + ":" + PASSWORD +"@mail.google.com/gmail/feed/atom")["feed"]["fullcount"])
File "/usr/local/lib/python2.7/dist-packages/feedparser.py", line 375, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'fullcount'
'/ usr/bin/env python'的输出是什么? – g4ur4v 2014-09-21 21:57:22
尝试使用'sudo/full/path/to/raspi-gmail.py' – g4ur4v 2014-09-21 21:58:36
@ g4ur4v奇怪的是,当我导航到它时,我收到了'could not be found'消息。当我进入'/ usr/bin'时,它显示出来了,但它不会让我改变它的目录。 – itsclarke 2014-09-21 22:30:53