2016-08-21 196 views
0

我正在用覆盆子pi 2B運行raspbian jessie。IDLE不能在樹莓派上工作

目前我正在使用它下載東西和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

作爲一個臨時的解決方案 - 用任何文本編輯器。我不完全確定爲什麼IDLE關心你的網絡配置 –

+1

我剛剛注意到,如果我使用空閒 - 它確實工作 - >現在我明白它甚至更少 – leherv

回答

0

得到了在Ubuntu 16.04.1 VM

@leherv同一個問題 - 坦克爲線索