You are not logged in.

#1 2016-07-27 11:35

Jerome
Member
Registered: 2016-02-26
Posts: 148

Python IDE not working

This isn't really a Q4OS problem but maybe the team can give me some advice. I've installed the python ide "idle" (python 3) but it won't won't run from the start menu and when I run it from the command line I get this error message:

Traceback (most recent call last):
  File "/usr/bin/idle3", line 5, in <module>
    main()
  File "/usr/lib/python3.4/idlelib/PyShell.py", line 1540, in main
    root = Tk(className="Idle")
  File "/usr/lib/python3.4/tkinter/__init__.py", line 1854, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: unknown color name "BACKGROUND"

Obviously a bug. Any suggestions?

Offline

#2 2016-07-27 11:45

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Python IDE not working

Looks like a Debian bug affecting TK gui applications. Clearing out the X resources fixes the problem:

$ xrdb -load /dev/null
$ xrdb -query

Offline

#3 2016-07-27 12:10

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: Python IDE not working

If you are coding in python you could try Pycharm community edition, I use it all the time for writing python code and it is very good, although it is a lot heavier on resources than using idle but I consider it justified because of the extra functionality. Just my opinion of course. smile

Offline

#4 2016-07-27 12:25

Jerome
Member
Registered: 2016-02-26
Posts: 148

Re: Python IDE not working

Thanks team, you guys are awesome!

@ Dai_trying, thanks for the tip, I'll take a look at it.

Offline

Board footer

Powered by FluxBB