This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE fails to launch if 2.3 is installed to "Program Files"
Type: Stage:
Components: Installation Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kbk Nosy List: clumma, jorend, kbk, theller
Priority: normal Keywords:

Created on 2003-07-30 20:03 by clumma, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (5)
msg17478 - (view) Author: Carl Lumma (clumma) Date: 2003-07-30 20:03
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.
msg17479 - (view) Author: Jason Orendorff (jorend) Date: 2003-08-05 14:40
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.
msg17480 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-08-08 18:18
Logged In: YES 
user_id=11105

Should the windows installer be modified to warn when the
path contains spaces?
msg17481 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-08-14 14:57
Logged In: YES 
user_id=149084

Now works with spaces in path.
Fixed at PyShell.py Rev 1.82
Backported to release22-maint
msg17482 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-08-14 15:03
Logged In: YES 
user_id=149084

um, release23-maint
History
Date User Action Args
2022-04-10 16:10:21adminsetgithub: 38976
2003-07-30 20:03:19clummacreate