简体   繁体   English

在Mac OS X上打开时IDLE崩溃

[英]IDLE crash when opening on Mac OS X

I recently attempted to install python 3.2 along with IDLE 3 on my macbook pro. 我最近尝试在我的macbook pro上安装python 3.2和IDLE 3。 I successfully installed python 3.2 (as in, I can run it from the terminal), but when I attempted to install IDLE 3.2 I must have done something wrong because now both IDLE 2.7 and IDLE 3.2 crash immediately upon opening with the message "Python quit unexpectedly", no matter whether I open it through the terminal or through finder. 我成功安装了python 3.2(因为我可以从终端运行它),但是当我尝试安装IDLE 3.2时,我一定做错了,因为现在IDLE 2.7和IDLE 3.2在打开时立即崩溃并显示消息“Python quit意外地“,无论我是通过终端还是通过发现者打开它。 Does anyone know how to fix this? 有谁知道如何解决这一问题? I have installed the correct ActiveTCL package (and reinstalled) and still nothing. 我已经安装了正确的ActiveTCL软件包(并重新安装),但仍然没有。 I have attempted to reinstall python 3.2 and IDLE 3 but I am not sure whether I did it correctly. 我试图重新安装python 3.2和IDLE 3,但我不确定我是否正确完成了。 Through a good amount of googling I found some people say that it was most likely a path issue but all of the solutions I found were using Windows so I am not sure how to apply that to my mac. 通过大量的谷歌搜索我发现有些人说这很可能是一个路径问题,但我找到的所有解决方案都使用Windows,所以我不知道如何将其应用到我的mac。

If you are running Mac OS X Lion, it sounds like you are being bitten by the saved-state crash. 如果你正在运行Mac OS X Lion,听起来好像你被保存状态崩溃所困扰。 You need to delete the saved state to make the crash go away: 您需要删除已保存的状态才能使崩溃消失:

http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/ http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/

http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-application-resume-feature/ http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-application-resume-feature/

Try renaming or removing the directory ~/.idlerc which is about the only thing used by Python that would in common to IDLE for 2.7 and 3.2. 尝试重命名或删除目录~/.idlerc ,这是Python使用的唯一与IDLE 2.7和3.2共同的东西。 If that doesn't help, state exactly which Python 3 you installed, what version of OS X, and show the stack traces from the termination report. 如果这没有帮助,请准确说明您安装的Python 3,OS X的哪个版本,并显示终止报告中的堆栈跟踪。

UPDATE: Based on the crash report you've supplied, it appears that Tk is crashing during its initialization of menu items: 更新:根据您提供的崩溃报告,似乎Tk在菜单项初始化期间崩溃:

...
4   Tcl                             0x00000001013dfa61 Tcl_Panic + 162
5   Tk                              0x000000010151c523 TkpGetColor + 383
6   Tk                              0x0000000101529a25 TkpMenuInit + 156
7   Tk                              0x00000001014ac254 TkMenuInit + 88
8   Tk                              0x000000010152c687 -[TKApplication(TKMenus) _setupMenus] + 53
...

I have not seen any reports of a similar problems when IDLE is used with A/S Tcl/Tk 8.5 on 10.7.3 and I haven't been able to reproduce it myself on 10.7.3. 当IDLE与10.7.3上的A / S Tcl / Tk 8.5一起使用时,我没有看到任何类似问题的报告,而我自己也无法在10.7.3上重现它。 However, the Cocoa Tcl/Tk 8.5 is not the most robust framework out there and it may be susceptible to problems when using languages or input methods other than US or US Extended . 但是,Cocoa Tcl / Tk 8.5并不是最强大的框架,当使用除USUS Extended之外的语言或输入方法时,它可能容易出问题。 Another possibility (more likely) is if you are using some third-party menu enhancement application or preference panel (to add colors to menus perhaps). 另一种可能性(更有可能)是如果您使用某些第三方菜单增强应用程序或首选项面板(可能为菜单添加颜色)。 If those suggestions don't help you to isolate the problem, I suggest you ask on the Tcl Mac mailing list ( tcl-mac@lists.sourceforge.net , archived at http://dir.gmane.org/gmane.comp.lang.tcl.mac ). 如果这些建议无法帮助您解决问题,我建议您在Tcl Mac邮件列表中查询( tcl-mac@lists.sourceforge.net ,存档于http://dir.gmane.org/gmane.comp。 lang.tcl.mac )。

I had the same issue. 我遇到过同样的问题。 I run OSX 10.8.5, Python 3.3.3 and IDLE 3.3.3 and reinstalling Python haven't been a solution. 我运行OSX 10.8.5,Python 3.3.3和IDLE 3.3.3并重新安装Python并不是一个解决方案。 I solved any problem removing the ~/.idlerc directory. 我解决了删除~/.idlerc目录的任何问题。 My problem showed for the first time when I tried to change some Preferences (IDLE->Preferences->General->Startup Preferences->At Startup Open Edit Window), so I suppose that's why resetting my Preferences deleting ~/.idlerc folder have been the solution. 我第一次尝试更改一些首选项(IDLE-> Preferences-> General-> Startup Preferences-> Startup Open Edit Window)时出现问题,所以我想这就是重置我的首选项删除~/.idlerc文件夹的原因了一直是解决方案。

I had the same problem where IDLE would crash after I opened it on my MAC I ended up updating my computer to OS Yosemite. 我遇到了同样的问题,我在MAC上打开它后IDLE会崩溃我最终将我的计算机更新为OS Yosemite。 and the most updated version of python but it still would shut the reason it started was because I tried to change the preferences for certain keys. 和python的最新版本,但它仍然会关闭它启动的原因是因为我试图更改某些键的首选项。 Resetting the preferences fixed it! 重置首选项修复它! I typed mc ~/.idlerc idlerc2 :) 我输入了mc~ / .idlerc idlerc2 :)

[Solved] I had the same problem here using: Yosemite 10.10.2 python 3.4.2 [解决]我在这里遇到了同样的问题:Yosemite 10.10.2 python 3.4.2

The issue was solved downloading and installing the ActiveTcl 8.5.17.0 version from http://www.activestate.com/activetcl/downloads 解决了从http://www.activestate.com/activetcl/downloads下载和安装ActiveTcl 8.5.17.0版本的问题

Best Regards, 最好的祝福,

Tchê Tchê

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM