Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6180

Re: Python 3.2 Idle doesn't start. No error message.

From markrrivet@aol.com
Newsgroups comp.lang.python
Subject Re: Python 3.2 Idle doesn't start. No error message.
Date 2011-05-24 18:06 -0400
Message-ID <vsaot69kngcb1jhvkssvn3j7a3eekealdb@4ax.com> (permalink)
References <677nt65c93756jvjbvpume2kdj6it0dm4g@4ax.com> <mailman.2029.1306255856.9059.python-list@python.org> <4o3ot6h6efljelmtvqu6fcu6o9vqpfjoec@4ax.com> <mailman.2040.1306274047.9059.python-list@python.org>

Show all headers | View raw


On Tue, 24 May 2011 17:53:53 -0400, Terry Reedy <tjreedy@udel.edu>
wrote:

>On 5/24/2011 4:12 PM, markrrivet@aol.com wrote:
>> On Tue, 24 May 2011 12:50:47 -0400, Terry Reedy<tjreedy@udel.edu>
>>> How do you try to start it?
>>
>>> From start|programs|python and clicking on the idle icon.
>
>OK. Works fine for me on winxp desktop and win7 laptop.
>3.2.1 will be out soon. Whether or not you find a fix before that, 
>download it, install, and try again. I think I would uninstall 3.2.0 
>first. You could, of course, try re-installing.
>
>I just tried
>C:\Documents and Settings\Terry>set PYTHONPATH
>Environment variable PYTHONPATH not defined
>
>so undefining that should not be the problem.
>
>The icon properties are not helpful as to how it starts IDLE.
>Perhaps is uses ../python32/Lib/idlelib/idle.bat
>
>@echo off
>rem Start IDLE using the appropriate Python interpreter
>set CURRDIR=%~dp0
>start "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 
>%7 %8 %9
>
>In a command prompt window you could directly try something like
>C:\Programs\Python32>pythonw Lib\idlelib\idle.pyw
>which works for me. Make sure idlelib and idle.pyw are present.
>Also check tcl/ and Lib/tkinter/
>
>idle.pyw has
>=======================
>try:
>     import idlelib.PyShell
>except ImportError:
>     # IDLE is not installed, but maybe PyShell is on sys.path:
>     try:
>         from . import PyShell
>     except ImportError:
>         raise
>     else:
>         import os
>         idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
>         if idledir != os.getcwd():
>             # We're not in the IDLE directory, help the subprocess find 
>run.py
>             pypath = os.environ.get('PYTHONPATH', '')
>             if pypath:
>                 os.environ['PYTHONPATH'] = pypath + ':' + idledir
>             else:
>                 os.environ['PYTHONPATH'] = idledir
>         PyShell.main()
>else:
>     idlelib.PyShell.main()
>==========================
>
>PYTHONPATH does come into play if but only if two imports fail.
>You could make a copy of that and add prints to see what does and does 
>not execute.

Thanks Terry, I will do what I can. I'll let you know how it works
out. But thanks again. Every little bit helps me get closer to the
solution.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python 3.2 Idle doesn't start. No error message. markrrivet@aol.com - 2011-05-24 08:01 -0400
  Re: Python 3.2 Idle doesn't start. No error message. Terry Reedy <tjreedy@udel.edu> - 2011-05-24 12:50 -0400
    Re: Python 3.2 Idle doesn't start. No error message. markrrivet@aol.com - 2011-05-24 16:12 -0400
      Re: Python 3.2 Idle doesn't start. No error message. Terry Reedy <tjreedy@udel.edu> - 2011-05-24 17:53 -0400
        Re: Python 3.2 Idle doesn't start. No error message. markrrivet@aol.com - 2011-05-24 18:06 -0400

csiph-web