Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6133 > unrolled thread
| Started by | markrrivet@aol.com |
|---|---|
| First post | 2011-05-24 08:01 -0400 |
| Last post | 2011-05-24 18:06 -0400 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | markrrivet@aol.com |
|---|---|
| Date | 2011-05-24 08:01 -0400 |
| Subject | Python 3.2 Idle doesn't start. No error message. |
| Message-ID | <677nt65c93756jvjbvpume2kdj6it0dm4g@4ax.com> |
Hello all. I have Python 2.71 installed on my Windows 7 laptop and it runs fine. I was having a problem with Python 3.2, 32bit, not starting with an error message saying this application has quit abnormally. That was fixed when I took the PYTHONPATH statement out of my environment variables. However, now when I try to start Idle, I can see some hard drive activity, but Idle for Python 3.2 does not start; nothing happens. Any clues as to the problem here?
[toc] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-05-24 12:50 -0400 |
| Message-ID | <mailman.2029.1306255856.9059.python-list@python.org> |
| In reply to | #6133 |
On 5/24/2011 8:01 AM, markrrivet@aol.com wrote: > Hello all. I have Python 2.71 installed on my Windows 7 laptop and it > runs fine. I was having a problem with Python 3.2, 32bit, not starting > with an error message saying this application has quit abnormally. > That was fixed when I took the PYTHONPATH statement out of my > environment variables. However, now when I try to start Idle, I can > see some hard drive activity, but Idle for Python 3.2 does not start; > nothing happens. Any clues as to the problem here? How do you try to start it? -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | markrrivet@aol.com |
|---|---|
| Date | 2011-05-24 16:12 -0400 |
| Message-ID | <4o3ot6h6efljelmtvqu6fcu6o9vqpfjoec@4ax.com> |
| In reply to | #6158 |
On Tue, 24 May 2011 12:50:47 -0400, Terry Reedy <tjreedy@udel.edu> wrote: >On 5/24/2011 8:01 AM, markrrivet@aol.com wrote: >> Hello all. I have Python 2.71 installed on my Windows 7 laptop and it >> runs fine. I was having a problem with Python 3.2, 32bit, not starting >> with an error message saying this application has quit abnormally. >> That was fixed when I took the PYTHONPATH statement out of my >> environment variables. However, now when I try to start Idle, I can >> see some hard drive activity, but Idle for Python 3.2 does not start; >> nothing happens. Any clues as to the problem here? > >How do you try to start it? From start|programs|python and clicking on the idle icon.
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-05-24 17:53 -0400 |
| Message-ID | <mailman.2040.1306274047.9059.python-list@python.org> |
| In reply to | #6170 |
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.
--
Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | markrrivet@aol.com |
|---|---|
| Date | 2011-05-24 18:06 -0400 |
| Message-ID | <vsaot69kngcb1jhvkssvn3j7a3eekealdb@4ax.com> |
| In reply to | #6176 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web