Can't import tkinter in python2 on manjaro linux

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question

























    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?







    share|improve this question























      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?







      share|improve this question













      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?









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 26 at 18:02









      jasonwryan

      46.4k14125174




      46.4k14125174









      asked Jun 26 at 17:53









      swa_mi

      175




      175




















          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').






          share|improve this answer





















          • 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 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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






























          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').






          share|improve this answer





















          • 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 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














          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').






          share|improve this answer





















          • 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 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












          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').






          share|improve this answer













          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').







          share|improve this answer













          share|improve this answer



          share|improve this answer











          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 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
















          • 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 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















          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












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          ifED5gwJ3lHz9FHq,R6YfGyS,E,K7MR kad fKXk6fHkBjMkmq deGNu,Zawh0fn0pws Dv4uetXjNUS7y9ucV DlqdHU2,dwXeJC7gOWgG
          2g8Y6rPUmfURbi,1,cjAHhW8b

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS