Skip to main content

IDLE's subprocess didn't make connection

安装Python 3.1.1的后,启动IDLE的时候遇到错误:

“IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection."

简单一点说就是IDLE被防火墙屏蔽,不允许访问网络。实际上了呢,IDLE也根本没有需要去访问网络,只是使用socket来进行进程间的通讯。

在网上找找,解决方案有这么几条:
1. 在防火墙中规则中添加python目录下的pythonw.exe文件,并允许它访问网络。这个对我的情况不适用,公司限定不可以随意更改防火墙设置。
2. 给IDLE的快捷方式加上"-n"参数,让IDLE不使用subprocess。结果查看那个快捷方式的属性:

"Target"那个一栏是锁死的,根本没办法改。
3. 修改[Python目录]\Lib\idlelib\PyShell.py文件,在1300行附近,将
use_subprocess = True
修改为:
use_subprocess = False

Comments

Popular posts from this blog

Google Notebook整合了Google 书签

FF上一直装有Google笔记本的插件,一直没有到一面上去看,今天无意点到。发现多了个叫“Unfiled”的记事本,记得自己并未建过这么个东西,进去一看才发现,其实就是我的Google书签: 并且右下角也多了“Labels”,且与我Google书签中的相同。 其实人家的右上角的“ New features! ”里说得很清楚: Integration with Google Bookmarks Notebook is now integrated with Google Bookmarks. Your bookmarks will show up as a special Unfiled notebook, making Google Notebook a single place to collect and organize interesting web pages. To publish and collaborate, just drag and drop bookmarks into notebooks.

PSP 三国无双 大蛇传 人物图片

PSP三国无双 大蛇传 人物图片(Google Picasa相册) 现在还不全,太多了。。。(2008-03-23) 搞完了,体力活啊。(2008-04-20) 暂时放弃吧,那个空间到期很久了,忘了更新这里了。什么时候找到地方放再跟新。(2009-04-29) 上传到Google Picasa(2009-09-25)

调用Response.Redirect时出现ThreadAbortException

调用Response.Redirect("test.aspx")时出现ThreadAbortException异常,是因为在内部调用Response.End(),而Response.End() 方法终止页的执行,并将此执行切换到应用程序的事件管线中的Application_EndRequest 事件。不执行 Response.End 后面的代码。可以使用 Response.Redirect ("test.aspx", false); 来代替。 更多情况请参考 PRB:在使用 Response.End、Response.Redirect或Server.Transfer时出现ThreadAbortException 适用于.net framework 1.0 1.1