ImportError: cannot import name Eog, introspection typelib not found












1















I am trying to get the eye of the gnome plugin demo working from here. I have installed the dependencies, but on the line from gi.repository import GObject, Eog, Eog cannot be found.
If I go to the gi.repository directory with : ls /usr/lib/python3/dist-packages/gi/overrides/, I can see:



Dee.py                 GObject.py  Gio.py   Pango.py     __pycache__
GIMarshallingTests.py Gdk.py Gtk.py Unity.py keysyms.py
GLib.py Gedit.py IBus.py __init__.py


But no Eog.py. What package will install this file?



Thanks.










share|improve this question























  • What is your Ubuntu version?

    – N0rbert
    yesterday











  • @N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

    – jackw11111
    yesterday


















1















I am trying to get the eye of the gnome plugin demo working from here. I have installed the dependencies, but on the line from gi.repository import GObject, Eog, Eog cannot be found.
If I go to the gi.repository directory with : ls /usr/lib/python3/dist-packages/gi/overrides/, I can see:



Dee.py                 GObject.py  Gio.py   Pango.py     __pycache__
GIMarshallingTests.py Gdk.py Gtk.py Unity.py keysyms.py
GLib.py Gedit.py IBus.py __init__.py


But no Eog.py. What package will install this file?



Thanks.










share|improve this question























  • What is your Ubuntu version?

    – N0rbert
    yesterday











  • @N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

    – jackw11111
    yesterday
















1












1








1








I am trying to get the eye of the gnome plugin demo working from here. I have installed the dependencies, but on the line from gi.repository import GObject, Eog, Eog cannot be found.
If I go to the gi.repository directory with : ls /usr/lib/python3/dist-packages/gi/overrides/, I can see:



Dee.py                 GObject.py  Gio.py   Pango.py     __pycache__
GIMarshallingTests.py Gdk.py Gtk.py Unity.py keysyms.py
GLib.py Gedit.py IBus.py __init__.py


But no Eog.py. What package will install this file?



Thanks.










share|improve this question














I am trying to get the eye of the gnome plugin demo working from here. I have installed the dependencies, but on the line from gi.repository import GObject, Eog, Eog cannot be found.
If I go to the gi.repository directory with : ls /usr/lib/python3/dist-packages/gi/overrides/, I can see:



Dee.py                 GObject.py  Gio.py   Pango.py     __pycache__
GIMarshallingTests.py Gdk.py Gtk.py Unity.py keysyms.py
GLib.py Gedit.py IBus.py __init__.py


But no Eog.py. What package will install this file?



Thanks.







apt gnome python gtk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









jackw11111jackw11111

44319




44319













  • What is your Ubuntu version?

    – N0rbert
    yesterday











  • @N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

    – jackw11111
    yesterday





















  • What is your Ubuntu version?

    – N0rbert
    yesterday











  • @N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

    – jackw11111
    yesterday



















What is your Ubuntu version?

– N0rbert
yesterday





What is your Ubuntu version?

– N0rbert
yesterday













@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

– jackw11111
yesterday







@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.

– jackw11111
yesterday












1 Answer
1






active

oldest

votes


















1














I'm not sure, but it seems that path of Eog-3.0.typelib on 18.04 LTS was wrong.



So I created symbolic link to move it one level higher:



sudo ln -s /usr/lib/x86_64-linux-gnu/eog/girepository-1.0/Eog-3.0.typelib /usr/lib/x86_64-linux-gnu/girepository-1.0/Eog-3.0.typelib


And then I can run python3 -c "from gi.repository import Eog".





Also I have found "fallback" method.



We can install eog-plugin-python-console and use it as development console:



sudo apt install eog-plugin-python-console


Then enable it in Eye of GNOME Preferences → Plugins and launch from menu by clicking on Python Console:



Python Console inside Eog



I think that you can get the source code of actual Eog plugins with apt-get source eog-plugins and then try to read and/or change it.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1114888%2fimporterror-cannot-import-name-eog-introspection-typelib-not-found%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









    1














    I'm not sure, but it seems that path of Eog-3.0.typelib on 18.04 LTS was wrong.



    So I created symbolic link to move it one level higher:



    sudo ln -s /usr/lib/x86_64-linux-gnu/eog/girepository-1.0/Eog-3.0.typelib /usr/lib/x86_64-linux-gnu/girepository-1.0/Eog-3.0.typelib


    And then I can run python3 -c "from gi.repository import Eog".





    Also I have found "fallback" method.



    We can install eog-plugin-python-console and use it as development console:



    sudo apt install eog-plugin-python-console


    Then enable it in Eye of GNOME Preferences → Plugins and launch from menu by clicking on Python Console:



    Python Console inside Eog



    I think that you can get the source code of actual Eog plugins with apt-get source eog-plugins and then try to read and/or change it.






    share|improve this answer






























      1














      I'm not sure, but it seems that path of Eog-3.0.typelib on 18.04 LTS was wrong.



      So I created symbolic link to move it one level higher:



      sudo ln -s /usr/lib/x86_64-linux-gnu/eog/girepository-1.0/Eog-3.0.typelib /usr/lib/x86_64-linux-gnu/girepository-1.0/Eog-3.0.typelib


      And then I can run python3 -c "from gi.repository import Eog".





      Also I have found "fallback" method.



      We can install eog-plugin-python-console and use it as development console:



      sudo apt install eog-plugin-python-console


      Then enable it in Eye of GNOME Preferences → Plugins and launch from menu by clicking on Python Console:



      Python Console inside Eog



      I think that you can get the source code of actual Eog plugins with apt-get source eog-plugins and then try to read and/or change it.






      share|improve this answer




























        1












        1








        1







        I'm not sure, but it seems that path of Eog-3.0.typelib on 18.04 LTS was wrong.



        So I created symbolic link to move it one level higher:



        sudo ln -s /usr/lib/x86_64-linux-gnu/eog/girepository-1.0/Eog-3.0.typelib /usr/lib/x86_64-linux-gnu/girepository-1.0/Eog-3.0.typelib


        And then I can run python3 -c "from gi.repository import Eog".





        Also I have found "fallback" method.



        We can install eog-plugin-python-console and use it as development console:



        sudo apt install eog-plugin-python-console


        Then enable it in Eye of GNOME Preferences → Plugins and launch from menu by clicking on Python Console:



        Python Console inside Eog



        I think that you can get the source code of actual Eog plugins with apt-get source eog-plugins and then try to read and/or change it.






        share|improve this answer















        I'm not sure, but it seems that path of Eog-3.0.typelib on 18.04 LTS was wrong.



        So I created symbolic link to move it one level higher:



        sudo ln -s /usr/lib/x86_64-linux-gnu/eog/girepository-1.0/Eog-3.0.typelib /usr/lib/x86_64-linux-gnu/girepository-1.0/Eog-3.0.typelib


        And then I can run python3 -c "from gi.repository import Eog".





        Also I have found "fallback" method.



        We can install eog-plugin-python-console and use it as development console:



        sudo apt install eog-plugin-python-console


        Then enable it in Eye of GNOME Preferences → Plugins and launch from menu by clicking on Python Console:



        Python Console inside Eog



        I think that you can get the source code of actual Eog plugins with apt-get source eog-plugins and then try to read and/or change it.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        N0rbertN0rbert

        22.6k648107




        22.6k648107






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114888%2fimporterror-cannot-import-name-eog-introspection-typelib-not-found%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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局