LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-25-2012, 05:21 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Question Strange error with python(idle)


I have both python 2 & 3 on my machine, Last night i was writing a simple game using Tkinter lib in idle. It was woking fine But After adding final touches I decided to make it executable from the terminal so I mistakenly added
Quote:
#!/usr/share/python
instead of
Quote:
#!/usr/bin/python
and since then both the idle and python are behaving funny. When I open a module in idle it opens but all this prints out on the shell, (Same thing prints out in terminal if I open it from there)
Code:
Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'open-class-browser'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<open-class-browser>>'
 from key set 'My pref'.
 returning default value: ['<Alt-c>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'restart-shell'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<restart-shell>>'
 from key set 'My pref'.
 returning default value: ['<Control-F6>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'change-indentwidth'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<change-indentwidth>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Key-u>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'history-previous'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<history-previous>>'
 from key set 'My pref'.
 returning default value: ['<Alt-p>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'del-word-right'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<del-word-right>>'
 from key set 'My pref'.
 returning default value: ['<Control-Key-Delete>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'print-window'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<print-window>>'
 from key set 'My pref'.
 returning default value: ['<Control-p>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'toggle-auto-coloring'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<toggle-auto-coloring>>'
 from key set 'My pref'.
 returning default value: ['<Control-slash>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'beginning-of-line'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<beginning-of-line>>'
 from key set 'My pref'.
 returning default value: ['<Control-a>', '<Home>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'indent-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<indent-region>>'
 from key set 'My pref'.
 returning default value: ['<Control-Key-bracketright>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'tabify-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<tabify-region>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Key-5>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'plain-newline-and-indent'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<plain-newline-and-indent>>'
 from key set 'My pref'.
 returning default value: ['<Control-j>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'python-context-help'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<python-context-help>>'
 from key set 'My pref'.
 returning default value: ['<Shift-F1>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'replace'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<replace>>'
 from key set 'My pref'.
 returning default value: ['<Control-h>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'save-copy-of-window-as-file'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<save-copy-of-window-as-file>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Shift-S>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'find-selection'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<find-selection>>'
 from key set 'My pref'.
 returning default value: ['<Control-F3>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'center-insert'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<center-insert>>'
 from key set 'My pref'.
 returning default value: ['<Control-l>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'uncomment-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<uncomment-region>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Key-4>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'find-in-files'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<find-in-files>>'
 from key set 'My pref'.
 returning default value: ['<Alt-F3>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'redo'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<redo>>'
 from key set 'My pref'.
 returning default value: ['<Control-y>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'comment-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<comment-region>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Key-3>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'save-window'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<save-window>>'
 from key set 'My pref'.
 returning default value: ['<Control-s>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'paste'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<paste>>'
 from key set 'My pref'.
 returning default value: ['<Control-v>', '<Control-V>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'close-window'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<close-window>>'
 from key set 'My pref'.
 returning default value: ['<Alt-F4>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'copy'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<copy>>'
 from key set 'My pref'.
 returning default value: ['<Control-c>', '<Control-C>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'goto-line'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<goto-line>>'
 from key set 'My pref'.
 returning default value: ['<Alt-g>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'smart-backspace'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<smart-backspace>>'
 from key set 'My pref'.
 returning default value: ['<Key-BackSpace>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'cut'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<cut>>'
 from key set 'My pref'.
 returning default value: ['<Control-x>', '<Control-X>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'view-restart'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<view-restart>>'
 from key set 'My pref'.
 returning default value: ['<F6>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'history-next'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<history-next>>'
 from key set 'My pref'.
 returning default value: ['<Alt-n>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'remove-selection'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<remove-selection>>'
 from key set 'My pref'.
 returning default value: ['<Escape>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'undo'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<undo>>'
 from key set 'My pref'.
 returning default value: ['<Control-z>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'open-window-from-file'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<open-window-from-file>>'
 from key set 'My pref'.
 returning default value: ['<Control-o>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'dedent-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<dedent-region>>'
 from key set 'My pref'.
 returning default value: ['<Control-Key-bracketleft>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'smart-indent'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<smart-indent>>'
 from key set 'My pref'.
 returning default value: ['<Key-Tab>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'interrupt-execution'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<interrupt-execution>>'
 from key set 'My pref'.
 returning default value: ['<Control-c>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'open-module'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<open-module>>'
 from key set 'My pref'.
 returning default value: ['<Alt-m>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'untabify-region'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<untabify-region>>'
 from key set 'My pref'.
 returning default value: ['<Alt-Key-6>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'save-window-as-file'
 from section 'My pref'.
 returning default value: ''

 Warning: configHandler.py - IdleConf.GetCoreKeys -
 problem retrieving key binding for event '<<save-window-as-file>>'
 from key set 'My pref'.
 returning default value: ['<Alt-s>']

 Warning: configHandler.py - IdleConf.GetOption -
 problem retrieving configuration option 'find-again'
 from section 'My pref'.
 returning default value: ''
(This is some part of the error)
After this the idle does open but it just stays busy. No matter what i type it doesnot respond. I'm prety much confused by this Because I don't know how to handle this. I tried reinstalling the idle but it didn't help. So please If someone could sort out this for me?

Last edited by Nabeel; 12-25-2012 at 05:27 AM.
 
Old 12-26-2012, 04:51 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
Have you tried removing ~/.idlerc where the config is stored?
 
Old 12-27-2012, 01:46 AM   #3
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Should I just delete the entire folder or some specific file???
 
Old 12-27-2012, 02:44 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
The easiest way would be to delete the entire folder. You don't actually have to "delete" it, just rename it first. Next time you run Idle a new .idlerc folder will be created with default values and you can play with individual files to see which one was a culprit.
 
1 members found this post helpful.
Old 12-28-2012, 01:42 AM   #5
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by sycamorex View Post
The easiest way would be to delete the entire folder. You don't actually have to "delete" it, just rename it first. Next time you run Idle a new .idlerc folder will be created with default values and you can play with individual files to see which one was a culprit.
Thanks! It solved the problem! The 'config-mail.cfg' was the one causing problems

Last edited by Nabeel; 12-28-2012 at 01:43 AM.
 
Old 12-28-2012, 02:30 AM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
Glad you found the file. You can mark the thread as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python IDLE apocolpse Programming 2 11-09-2004 08:37 PM
Python Idle apocolpse Programming 2 10-18-2004 04:16 AM
how to start IDLE (Python) ilectrcbob Programming 10 06-18-2004 09:24 AM
python IDLE problem rblau Programming 0 03-03-2004 11:24 PM
python 2.3 and idle jimscafe Linux - Software 1 10-25-2003 06:01 PM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration