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

IDLE fails to launch if 2.3 is installed to "Program Files" #38976

Closed
clumma mannequin opened this issue Jul 30, 2003 · 5 comments
Closed

IDLE fails to launch if 2.3 is installed to "Program Files" #38976

clumma mannequin opened this issue Jul 30, 2003 · 5 comments
Assignees

Comments

@clumma
Copy link
Mannequin

clumma mannequin commented Jul 30, 2003

BPO 780451
Nosy @theller, @kbkaiser

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/kbkaiser'
closed_at = <Date 2003-08-14.15:03:57.000>
created_at = <Date 2003-07-30.20:03:19.000>
labels = ['expert-installation']
title = 'IDLE fails to launch if 2.3 is installed to "Program Files"'
updated_at = <Date 2003-08-14.15:03:57.000>
user = 'https://bugs.python.org/clumma'

bugs.python.org fields:

activity = <Date 2003-08-14.15:03:57.000>
actor = 'kbk'
assignee = 'kbk'
closed = True
closed_date = None
closer = None
components = ['Installation']
creation = <Date 2003-07-30.20:03:19.000>
creator = 'clumma'
dependencies = []
files = []
hgrepos = []
issue_num = 780451
keywords = []
message_count = 5.0
messages = ['17478', '17479', '17480', '17481', '17482']
nosy_count = 4.0
nosy_names = ['theller', 'clumma', 'kbk', 'jorend']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue780451'
versions = ['Python 2.3']

@clumma
Copy link
Mannequin Author

clumma mannequin commented Jul 30, 2003

Reproducible on Windows XP SP1.

If one changes the install path to
"C:\Program Files\Python\", the resulting IDLE shortcut
does get pythonw.exe running but fails to produce any
window, even if the OS is restarted after the install.

If one installs to "C:\Python23\" or "C:\Python\", it works.
So I assume it has something to do with whitespace in
the path.

Please notice that it is strongly recommended to install
Python in a path without space

Where is it recommended? The installer should warn the
user.

one frequently needs to type the path on the command
line or put it into wrapper scripts; in either case,
spaces cause problems.

So recommending that the install occur in \Python23\
is fine. But with ~x notation and quotation marks, there
should be no trouble supporting whitespace on Windows.

@clumma clumma mannequin closed this as completed Jul 30, 2003
@clumma clumma mannequin assigned kbkaiser Jul 30, 2003
@clumma clumma mannequin added the topic-installation label Jul 30, 2003
@jorend
Copy link
Mannequin

jorend mannequin commented Aug 5, 2003

Logged In: YES
user_id=18139

Yep, this bit me, too.

This bug is caused by:

http://sourceforge.net/tracker/index.php?func=detail&aid=436259&group_id=5470&atid=105470
[ 436259 ] [Windows] exec*/spawn* problem with spaces in args

As that bug notes, distutils already works around this.
Idle could borrow the same workaround, except with P_NOWAIT.

Hey, maybe the workaround could be polished and published as
"os.spawn(executable, args, env=None, wait=False,
search_path=False)". Neat.

Cheers, and thanks for Python.

@theller
Copy link

theller commented Aug 8, 2003

Logged In: YES
user_id=11105

Should the windows installer be modified to warn when the
path contains spaces?

@kbkaiser
Copy link
Contributor

Logged In: YES
user_id=149084

Now works with spaces in path.
Fixed at PyShell.py Rev 1.82
Backported to release22-maint

@kbkaiser
Copy link
Contributor

Logged In: YES
user_id=149084

um, release23-maint

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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

2 participants