IDLE无法使用Raspberry Pi

时间:2016-08-21 16:05:59

标签: python linux raspberry-pi2

我正在使用raspberry pi 2B运行raspbian jessie。

目前我正在使用它来下载东西和Samba服务器,但现在我也在用它学习python并写了几个脚本,比如在LCD屏幕上显示当前温度等等。

我正在使用远程桌面登录并想要启动IDLE。 当我去编程然后点击IDLE时它没有启动 - 如果我选择IDLE2或3则没有任何区别。

所以我尝试了命令行并得到以下错误:

** Invalid host:  ('192.168.178.2', 52723)
Traceback (most recent call last):
File "/usr/bin/idle3", line 5, in <module>
main()
File "/usr/lib/python3.4/idlelib/PyShell.py", line 1569, in main
shell = flist.open_shell()
File "/usr/lib/python3.4/idlelib/PyShell.py", line 327, in open_shell
if not self.pyshell.begin():
File "/usr/lib/python3.4/idlelib/PyShell.py", line 1042, in begin
client = self.interp.start_subprocess()
File "/usr/lib/python3.4/idlelib/PyShell.py", line 452, in start_subprocess
self.rpcclt.accept()
File "/usr/lib/python3.4/idlelib/rpc.py", line 540, in accept
raise OSError

OSERROR

我正在研究并发现:

idle is expecting the connection to only come from localhost, yours is coming from 192.168.0.21.

This has nothing to do with gspread, looks like you broke your networking configuration somehow.

Did you edit /etc/hostname, /etc/hosts, or /etc/network/interfaces ? Did you shutdown the lo interface or something?

但这对我没有帮助。我给我的覆盆子pi一个静态ip(现在是无效的主机),但它已经工作了好几个月。

帮助将不胜感激。

0 个答案:

没有答案