Re: [gtk-osx-users] ImportError: No module named gi.



Op 30/03/19 om 18:55 schreef Pascal:
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.
Did you enter the jhbuild shell before running your app? Something like this:

$ jhbuild shell
$ ./my_app.py

Or try with the interpreter first:  (still within jhbuild shell)
$ python
>>> from gi.repository import Gtk

Timo


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


_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]