Re: [gtk-osx-users] ImportError: No module named gi.
- From: Pascal <p p14 orange fr>
- To: John Ralls <jralls ceridwen fremont ca us>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] ImportError: No module named gi.
- Date: Sat, 30 Mar 2019 18:55:43 +0100
Le 30 mars 2019 à 03:41, John Ralls <jralls ceridwen fremont ca us> a écrit :
On Mar 29, 2019, at 2:20 PM, Pascal <p p14 orange fr> wrote:
Hello,
I have install GTK+ 3 and Python with:
$ jhbuild build python
Then PyObject with:
$ jhbuild build pygobject
But I've the error: "ImportError: No module named gi"
Where is it wrong?
pygobject needs gobject-introspection. Build meta-gtk-osx-core-gtk3 instead of just gtk+-3.0.
Also you need python3 rather than python nowadays.
Hello John,
Sorry, my wording was incorrect.
$ jhbuild build pygobject
is built without any error.
But I've got "ImportError ... gi" when running my app.
Well, I built python3 and pygobject3 but I've got another error:
$ jhbuild build python3
$ jhbuild build pygobject3
*** Building pygobject3 *** [4/4]
python setup.py build
Traceback (most recent call last):
File "setup.py", line 29, in <module>
import pkg_resources
ImportError: No module named pkg_resources
Thanks for your help, Pascal.
http://blady.pagesperso-orange.fr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]