Can't import tkinter in python2 on manjaro linux
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get tkinter to work in python2?
python manjaro python3
add a comment |Â
up vote
0
down vote
favorite
I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get tkinter to work in python2?
python manjaro python3
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get tkinter to work in python2?
python manjaro python3
I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get tkinter to work in python2?
python manjaro python3
edited Jun 26 at 18:02
jasonwryan
46.4k14125174
46.4k14125174
asked Jun 26 at 17:53
swa_mi
175
175
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter
in the python2 interpreter (With the capitalized 'T').
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It saysModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.
â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter
in the python2 interpreter (With the capitalized 'T').
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It saysModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.
â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
add a comment |Â
up vote
0
down vote
accepted
When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter
in the python2 interpreter (With the capitalized 'T').
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It saysModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.
â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter
in the python2 interpreter (With the capitalized 'T').
When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter
in the python2 interpreter (With the capitalized 'T').
answered Jun 26 at 19:36
0B51D14N
264
264
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It saysModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.
â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
add a comment |Â
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It saysModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.
â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,
File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?â swa_mi
Jun 28 at 7:41
Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,
File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in <module> import Tkinter File "/opt/UCSF/Chimera64-1.12/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: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?â swa_mi
Jun 28 at 7:41
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Did you build UCSF-Chimera from the AUR package?
â 0B51D14N
Jun 28 at 17:14
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
â swa_mi
Jun 29 at 5:05
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It says
ModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.â swa_mi
Jun 29 at 5:06
Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It says
ModuleNotFoundError: No module named 'tkSimpleDialog'
. This leads me to believe it is a Tkinter problem.â swa_mi
Jun 29 at 5:06
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
Solved it using this: aur.archlinux.org/packages/ucsf-chimera/?comments=all
â swa_mi
Jun 29 at 6:26
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452070%2fcant-import-tkinter-in-python2-on-manjaro-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password