How to install PyGUI for Python3?











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














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    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














    bumped to the homepage by Community 2 days ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      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





      bumped to the homepage by Community 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            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
              1
              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
                1
                down vote










                up vote
                1
                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

                113




                113






























                     

                    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















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    サソリ

                    広島県道265号伴広島線

                    Accessing regular linux commands in Huawei's Dopra Linux