ImportError: cannot import name Eog, introspection typelib not found
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
add a comment |
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
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11
add a comment |
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
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
apt gnome python gtk
asked Feb 2 at 2:10
jackw11111jackw11111
453112
453112
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11
add a comment |
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11
add a comment |
1 Answer
1
active
oldest
votes
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:
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.
add a comment |
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
});
}
});
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
Required, but never shown
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
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:
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.
add a comment |
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:
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.
add a comment |
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:
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.
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:
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.
edited Feb 2 at 18:57
answered Feb 2 at 16:36
N0rbertN0rbert
23.5k649111
23.5k649111
add a comment |
add a comment |
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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
What is your Ubuntu version?
– N0rbert
Feb 2 at 9:12
@N0rbert Bionic. I was going to try live boot trusty or xenial, whichever the tutorial was wriiten for.
– jackw11111
Feb 2 at 12:11