Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead #71497

Closed
ned-deily opened this issue Jun 14, 2016 · 2 comments
Closed
Assignees

Comments

@ned-deily
Copy link
Member

BPO 27310
Nosy @terryjreedy, @ned-deily

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ned-deily'
closed_at = <Date 2016-06-14.00:30:30.324>
created_at = <Date 2016-06-14.00:16:34.095>
labels = ['expert-IDLE']
title = '3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead'
updated_at = <Date 2016-06-14.01:13:03.445>
user = 'https://github.com/ned-deily'

bugs.python.org fields:

activity = <Date 2016-06-14.01:13:03.445>
actor = 'ned.deily'
assignee = 'ned.deily'
closed = True
closed_date = <Date 2016-06-14.00:30:30.324>
closer = 'ned.deily'
components = ['IDLE']
creation = <Date 2016-06-14.00:16:34.095>
creator = 'ned.deily'
dependencies = []
files = []
hgrepos = []
issue_num = 27310
keywords = []
message_count = 2.0
messages = ['268487', '268488']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'ned.deily', 'python-dev']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue27310'
versions = ['Python 3.6']

@ned-deily
Copy link
Member Author

For 3.6.0a2, when attempting to launch IDLE.app on OS X (for example, by double-clicking the IDLE icon in the "/Applications/Python 3.6" folder), IDLE does not launch. In the system.log there will be a log message similar to:

(org.python.IDLE.917792[45897]): Service exited with abnormal code: 1

The problem is that the glue code (idlemain.py) used to launch IDLE from within the IDLE app bundle is trying to import macosxSupport which has been renamed as of 3.6.0a2. However, there is no longer any reason for the app bundle to import this module: this is vestigial code that I should have removed some releases ago when I refactored macosxSupport. It hasn't hurt up until now.

As a workaround for 3.6.0a2, you can launch IDLE from a terminal command line:

/usr/local/bin/idle3.6

or you *could* carefully msnuslly edit the file /Applications/Python 3.6/IDLE.app/Contents/Resources/idlemain.py to remove the two lines near the end:

from idlelib import macosxSupport
macosxSupport._appbundle = True

Fix for 3.6.0a3 to follow.

@ned-deily ned-deily self-assigned this Jun 14, 2016
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 14, 2016

New changeset 675569bee37f by Ned Deily in branch '2.7':
Issue bpo-27310: remove vestigial import in IDLE.app
https://hg.python.org/cpython/rev/675569bee37f

New changeset 0cf4bda2882c by Ned Deily in branch '3.5':
Issue bpo-27310: remove vestigial import in IDLE.app
https://hg.python.org/cpython/rev/0cf4bda2882c

New changeset 9ba934d159e3 by Ned Deily in branch 'default':
Issue bpo-27310: Fix IDLE.app failure to launch on OS X due to vestigial import.
https://hg.python.org/cpython/rev/9ba934d159e3

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant