[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

New submission from Thomas Kember:

I am a retired programmer. I still like to write small programs for my own 
interest. Python is ideal for this. I prefer to use Idle rather than the 
command line. For some time now when I click on the Idle shortcut on the home 
screen, the command line screen flashes and then nothing. I am not able to do 
anything on Idle. I had been using Python33. So I upgraded to Python34. It was 
the same thing. I looked at the batch file, idle.bat. This is what it contains.

@echo off
rem Start IDLE using the appropriate Python interpreter
set CURRDIR=%~dp0
start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 
%7 %8 %9

I don't understand what %~dp0 means. I can't think what changes I have made to 
the operating system, it is Windows 7, that could cause this problem.

As I say Python is great for what I do. But I am stuck with the command line if 
I cannot fix this.

Tomk

--
messages: 222916
nosy: Tomk
priority: normal
severity: normal
status: open
title: Can't use Idle
type: behavior
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue21973>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

Thomas Kember added the comment:

I ran what you said. Here's what I got.

C:\Python34>c:\python34\python.exe -m idlelib.idle
Traceback (most recent call last):
  File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\python34\lib\idlelib\idle.py", line 10, in 
    import idlelib.PyShell
  File "c:\python34\lib\idlelib\PyShell.py", line 29, in 
    from idlelib.EditorWindow import EditorWindow, fixwordbreaks
  File "c:\python34\lib\idlelib\EditorWindow.py", line 22, in 
    from idlelib.configHandler import idleConf
  File "c:\python34\lib\idlelib\configHandler.py", line 703, in 
    idleConf=IdleConf()
  File "c:\python34\lib\idlelib\configHandler.py", line 171, in __init__
    self.LoadCfgFiles()
  File "c:\python34\lib\idlelib\configHandler.py", line 694, in LoadCfgFiles
    self.userCfg[key].Load() #same keys
  File "c:\python34\lib\idlelib\configHandler.py", line 68, in Load
    self.read(self.file)
  File "c:\python34\lib\configparser.py", line 672, in read
    self._read(fp, filename)
  File "c:\python34\lib\configparser.py", line 1058, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\Tomk\\.idlerc\\config-extensions.cfg', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


 From: SilentGhost 
To: t.kemb...@btinternet.com 
Sent: Sunday, 13 July 2014, 13:15
Subject: [issue21973] Can't use Idle

SilentGhost added the comment:

This is the normal content of idle.bat
Could you run `c:\python34\python.exe -m idlelib.idle` from the command-line 
and post the output here?

--
components: +IDLE
nosy: +SilentGhost, kbk, roger.serwy, terry.reedy

___
Python tracker 
<http://bugs.python.org/issue21973>
___

--

___
Python tracker 
<http://bugs.python.org/issue21973>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21973] Can't use Idle

2014-07-13 Thread Thomas Kember

Thomas Kember added the comment:

Thanks, I backed that file on to a memory stick and deleted it. I made a 
shortcut to the idle batch file on the desktop. When I click on it, Idle comes 
up fine.
What has happened here? What is config-extensions.cfg for and why has it 
stopped Idle coming up? And  why can Idle work without it? In any case, I am 
now able to work on my little programs.
Thank you again.
Tomk


 From: SilentGhost 
To: t.kemb...@btinternet.com made a 
Sent: Sunday, 13 July 2014, 15:30
Subject: [issue21973] Can't use Idle

SilentGhost added the comment:

If you would delete this file: C:\Users\Tomk\.idlerc\config-extensions.cfg 
(back it up some place else just in case). Does it start? and if not, would you 
mind re-running the same command again?

--

___
Python tracker 
<http://bugs.python.org/issue21973>
___

--

___
Python tracker 
<http://bugs.python.org/issue21973>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21981] Idle problem

2014-07-14 Thread Thomas Kember

New submission from Thomas Kember:

Hello Terry,

Thank you for your explanation of the bug in Idle. I know Idle has limitations, 
but it is quite adequate for the programming I want to do. I agree that when 
this error occurs there should only be a warning, so the user can decide what 
he wants to do about it. There is however one fault in Idle that would be good 
if it were fixed. That is, it does not show line numbers. Since errors all 
indicate the line number the error occured, having the line numbers on the 
listing would be very useful.

One other thing. Now the problem is solved but it is still showing status 
'open' on the problem site, how do I change the status?

Regards,

Thomas

--
messages: 223016
nosy: Tomk
priority: normal
severity: normal
status: open
title: Idle problem

___
Python tracker 
<http://bugs.python.org/issue21981>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21981] Idle problem

2014-07-14 Thread Thomas Kember

Thomas Kember added the comment:

Hello Eric V. Smith,

I reported only one bug and it has been fixed. I can't find out how I am to 
reset the status of it to closed.

Thomas Kember


 From: Eric V. Smith 
To: t.kemb...@btinternet.com 
Sent: Monday, 14 July 2014, 13:31
Subject: [issue21981] Idle problem

Eric V. Smith added the comment:

Please respond to the other bug. No need to open a new bug when responding to 
an existing issue. Thanks.

--
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue21981>
___

--

___
Python tracker 
<http://bugs.python.org/issue21981>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com