How to install PyGUI for Python3?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I want to install PyGUI for Python3 on Fedora 23.



From PyGUI:




Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7).




And by going to PyGTK it says:




Note: New users are encouraged to use GTK+3 through the PyGObject bindings instead of using PyGTK with GTK+2. Windows users may still want to keep using PyGTK until more convenient installers are published.




So I managed to install pygobject (3.18.2) and PyGUI (2.5.3) for the Python3 environment. To make this clear, when I run python3 -m pip list I got (+ other stuff...):



  • pygobject (3.18.2)

  • PyGUI (2.5.3)

And I thought I was done with that but when I download and try the blobedit.py example I got the following error (complete error log here):



PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.


Sigh. I went to Python3 and try to import gtk and failed to found the module.



So, what would be the necessary steps for installing PyGUI for Python3 in Fedora 23? I'll appreciate any help! Thank you!










share|improve this question

























    up vote
    1
    down vote

    favorite
    1












    I want to install PyGUI for Python3 on Fedora 23.



    From PyGUI:




    Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7).




    And by going to PyGTK it says:




    Note: New users are encouraged to use GTK+3 through the PyGObject bindings instead of using PyGTK with GTK+2. Windows users may still want to keep using PyGTK until more convenient installers are published.




    So I managed to install pygobject (3.18.2) and PyGUI (2.5.3) for the Python3 environment. To make this clear, when I run python3 -m pip list I got (+ other stuff...):



    • pygobject (3.18.2)

    • PyGUI (2.5.3)

    And I thought I was done with that but when I download and try the blobedit.py example I got the following error (complete error log here):



    PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.


    Sigh. I went to Python3 and try to import gtk and failed to found the module.



    So, what would be the necessary steps for installing PyGUI for Python3 in Fedora 23? I'll appreciate any help! Thank you!










    share|improve this question























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I want to install PyGUI for Python3 on Fedora 23.



      From PyGUI:




      Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7).




      And by going to PyGTK it says:




      Note: New users are encouraged to use GTK+3 through the PyGObject bindings instead of using PyGTK with GTK+2. Windows users may still want to keep using PyGTK until more convenient installers are published.




      So I managed to install pygobject (3.18.2) and PyGUI (2.5.3) for the Python3 environment. To make this clear, when I run python3 -m pip list I got (+ other stuff...):



      • pygobject (3.18.2)

      • PyGUI (2.5.3)

      And I thought I was done with that but when I download and try the blobedit.py example I got the following error (complete error log here):



      PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.


      Sigh. I went to Python3 and try to import gtk and failed to found the module.



      So, what would be the necessary steps for installing PyGUI for Python3 in Fedora 23? I'll appreciate any help! Thank you!










      share|improve this question













      I want to install PyGUI for Python3 on Fedora 23.



      From PyGUI:




      Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7).




      And by going to PyGTK it says:




      Note: New users are encouraged to use GTK+3 through the PyGObject bindings instead of using PyGTK with GTK+2. Windows users may still want to keep using PyGTK until more convenient installers are published.




      So I managed to install pygobject (3.18.2) and PyGUI (2.5.3) for the Python3 environment. To make this clear, when I run python3 -m pip list I got (+ other stuff...):



      • pygobject (3.18.2)

      • PyGUI (2.5.3)

      And I thought I was done with that but when I download and try the blobedit.py example I got the following error (complete error log here):



      PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.


      Sigh. I went to Python3 and try to import gtk and failed to found the module.



      So, what would be the necessary steps for installing PyGUI for Python3 in Fedora 23? I'll appreciate any help! Thank you!







      fedora python python3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 '16 at 3:50









      gglasses

      200212




      200212




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          What does the error say? Do what it says.
          gi.require_version('Gtk', '3.0')
          Put that line in and the error will disappear.






          share|improve this answer




















            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%2f272043%2fhow-to-install-pygui-for-python3%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













            What does the error say? Do what it says.
            gi.require_version('Gtk', '3.0')
            Put that line in and the error will disappear.






            share|improve this answer
























              up vote
              0
              down vote













              What does the error say? Do what it says.
              gi.require_version('Gtk', '3.0')
              Put that line in and the error will disappear.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                What does the error say? Do what it says.
                gi.require_version('Gtk', '3.0')
                Put that line in and the error will disappear.






                share|improve this answer












                What does the error say? Do what it says.
                gi.require_version('Gtk', '3.0')
                Put that line in and the error will disappear.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 21 at 19:54









                Kevin Gray

                12




                12



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f272043%2fhow-to-install-pygui-for-python3%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?