You are not logged in.

#1 2013-11-06 17:16:23

DanielD
Member
Registered: 2013-02-28
Posts: 10

[SOLVED] Python2 - Tkinter not found

Hi,
I'm launching python2 in a terminal, then :

>>> from Tkinter import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

I've installed python2 from pacman without issues.

Last edited by DanielD (2013-11-07 08:53:48)

Offline

#2 2013-11-06 17:18:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Python2 - Tkinter not found

Offline

#3 2013-11-06 17:19:59

COPE
Member
Registered: 2013-11-03
Posts: 31

Re: [SOLVED] Python2 - Tkinter not found

Did you install TkInter (tk) before trying this?

Last edited by COPE (2013-11-06 17:20:23)

Offline

#4 2013-11-07 06:33:07

DanielD
Member
Registered: 2013-02-28
Posts: 10

Re: [SOLVED] Python2 - Tkinter not found

I didn't know Tk was optionnal ! Thank you guys !

Offline

#5 2013-11-07 09:45:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Python2 - Tkinter not found

When you install packages with pacman, it tells you about the optional dependencies for the packages you've just installed.

Offline

Board footer

Powered by FluxBB