Bug 1325400 - Unable to configure idle (python IDE)
Summary: Unable to configure idle (python IDE)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-08 17:28 UTC by smurfendrek123
Modified: 2016-11-25 16:24 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-25 16:24:46 UTC
Type: ---


Attachments (Terms of Use)

Description smurfendrek123 2016-04-08 17:28:06 UTC
User-Agent:       Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Build Identifier: 

After opening idle in the terminal, with the command "idle": go to options-> click configure idle.
Nothing happens with idle when configure idle is clicked and an error message in the terminal is displayed.

See additional information for the version number and error message in the terminal.

Reproducible: Always

Steps to Reproduce:
1.open idle with the command idle in the terminal
2.go to the options tab
3.click configure idle
Actual Results:  
Nothing happens in idle itself, look in the additional information for the error message in the terminal.

Expected Results:  
I expect idle to open another window where i can choose whether idle should open a shell or an edit window on startup, change the font and font size among many other things.

I use gnome3

I obtained idle by installing python-tools with the command sudo dnf install python-tools. This automatically installed python-tools-2.7.11-3.fc23.x86_64. The previous version of idle, version 2.7.10 worked fine.


Error message after clicking configure Idle


Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1536, in __call__
    return self.func(*args)
  File "/usr/lib64/python2.7/idlelib/EditorWindow.py", line 543, in config_dialog
    configDialog.ConfigDialog(self.top,'Settings')
  File "/usr/lib64/python2.7/idlelib/configDialog.py", line 72, in __init__
    self.LoadConfigs()
  File "/usr/lib64/python2.7/idlelib/configDialog.py", line 1103, in LoadConfigs
    self.LoadFontCfg()
  File "/usr/lib64/python2.7/idlelib/configDialog.py", line 1005, in LoadFontCfg
    self.SetFontSample()
  File "/usr/lib64/python2.7/idlelib/configDialog.py", line 883, in SetFontSample
    self.labelFontSample.config(font=newFont)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1326, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1317, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: expected integer but got ""

Comment 1 smurfendrek123 2016-04-08 17:32:23 UTC
This is my first bug report, contact me if you need more information. I talked to someone that had the same problem on fedora 23.

Comment 2 Petr Viktorin 2016-04-11 09:59:03 UTC
I was able to reproduce this, and dove in a bit. I summarized my findings on this upstream bug report: http://bugs.python.org/issue26673


For a workaround you can do:

    (echo '[EditorWindow]'; echo 'font= courier') > ~/.idlerc/config-main.cfg

Comment 3 smurfendrek123 2016-04-11 10:38:21 UTC
Thank you petr, but i ran sudo dnf update and everything seems to be fixed now. Thank you for your help :p

Comment 4 smurfendrek123 2016-04-11 10:47:46 UTC
The problem still exists, i was wrong.

The problem seems to be that if font size is set to 10, the newer version of idle doesn't work, I set my font size to 12 in the older version of idle, and then upgraded to the newer one, and then everything worked perfectly. So the bug is not fixed.

Comment 5 smurfendrek123 2016-06-27 22:29:32 UTC
This bug is marked fixed in the upstream bug report, can idle in fedora 23 be upgraded to the newer version, or is fedora 23 to be worth the effort?

Comment 6 Petr Viktorin 2016-06-28 10:22:59 UTC
Just lack of time – there are higher-priority updates, and lots of people on summer holidays.

Since this bug has a workaround, it's unfortunately not very high on my list.

Comment 7 smurfendrek123 2016-06-28 10:54:16 UTC
All right, i don't use the editor anymore anyways. It's really nice of you to work on Fedora, I appreciate it.

Comment 8 Fedora End Of Life 2016-11-25 07:18:05 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Charalampos Stratakis 2016-11-25 16:24:46 UTC
This is fixed in Python 2.7.12 which is currently in Fedora 24+


Note You need to log in before you can comment on or make changes to this bug.