jsbueno / python-gegl

Pygobject wrappers for acessing GEGL (Generic Graphics Library)
12 stars 0 forks source link

Use on Ubuntu ? #2

Open stuaxo opened 10 years ago

stuaxo commented 10 years ago

Hi, I'd like to use this on Ubuntu, but can't import Gegl from the gi.repository .. any idea what version I need for this to work ?

Cheers S

stuaxo commented 9 years ago

It seems like the gobject introspection files are missing, I guess I could rebuild one of the packages to get this, any idea which. It looks like this may not work on debian either. - I can't find any mention of gegl.gir or similar.

jsbueno commented 9 years ago

Either GEGL is buitl without introspection, or the GI_TYPELIB_PATH has to be set properly. It should point to the folder where the file "Gegl-0.3.typelib" lies.

(check "docs/tips.txt -- probably I should move that to the README)

export GI_TYPELIB_PATH=/opt/lib/girepository-1.0/

Please tell if here if that does not work

stuaxo commented 9 years ago

Looks like it isn't built with it as there is no Gegl-0.3.typelib

(I tried setting GI_TYPELIB_PATH to this folder and it didn't work):

$ ls /usr/lib/girepository-1.0/
Accounts-1.0.typelib         GnomeBluetooth-1.0.typelib  MessagingMenu-1.0.typelib
AccountsService-1.0.typelib  GnomeDesktop-3.0.typelib    MPID-3.0.typelib
AppIndicator3-0.1.typelib    GnomeKeyring-1.0.typelib    Nautilus-3.0.typelib
Atk-1.0.typelib              Goa-1.0.typelib             NetworkManager-1.0.typelib
Atspi-2.0.typelib            GObject-2.0.typelib         NMClient-1.0.typelib
cairo-1.0.typelib            Gst-0.10.typelib            NMGtk-1.0.typelib
Cally-1.0.typelib            Gst-1.0.typelib             Notify-0.7.typelib
Caribou-1.0.typelib          GstAllocators-1.0.typelib   PackageKitGlib-1.0.typelib
Click-0.4.typelib            GstApp-0.10.typelib         PackageKitPlugin-1.0.typelib
Clutter-1.0.typelib          GstApp-1.0.typelib          PanelApplet-4.0.typelib
ClutterGdk-1.0.typelib       GstAudio-0.10.typelib       Pango-1.0.typelib
ClutterGst-2.0.typelib       GstAudio-1.0.typelib        PangoCairo-1.0.typelib
ClutterX11-1.0.typelib       GstBase-0.10.typelib        PangoFT2-1.0.typelib
Cogl-1.0.typelib             GstBase-1.0.typelib         PangoXft-1.0.typelib
Cogl-2.0.typelib             GstCheck-0.10.typelib       Peas-1.0.typelib
CoglPango-1.0.typelib        GstCheck-1.0.typelib        PeasGtk-1.0.typelib
CoglPango-2.0.typelib        GstController-0.10.typelib  Polkit-1.0.typelib
DBus-1.0.typelib             GstController-1.0.typelib   PolkitAgent-1.0.typelib
DBusGLib-1.0.typelib         GstFft-0.10.typelib         Poppler-0.18.typelib
Dbusmenu-0.4.typelib         GstFft-1.0.typelib          RB-3.0.typelib
Dee-1.0.typelib              GstInterfaces-0.10.typelib  Rest-0.7.typelib
EBook-1.2.typelib            GstNet-0.10.typelib         Secret-1.typelib
EBookContacts-1.2.typelib    GstNet-1.0.typelib          Signon-1.0.typelib
EDataServer-1.2.typelib      GstNetbuffer-0.10.typelib   Soup-2.4.typelib
EvinceDocument-3.0.typelib   GstPbutils-0.10.typelib     SoupGNOME-2.4.typelib
EvinceView-3.0.typelib       GstPbutils-1.0.typelib      SyncMenu-0.1.typelib
fontconfig-2.0.typelib       GstRiff-0.10.typelib        TelepathyGLib-0.12.typelib
freetype2-2.0.typelib        GstRiff-1.0.typelib         TelepathyLogger-0.2.typelib
Gck-1.typelib                GstRtp-0.10.typelib         Totem-1.0.typelib
GConf-2.0.typelib            GstRtp-1.0.typelib          TotemPlParser-1.0.typelib
Gcr-3.typelib                GstRtsp-0.10.typelib        Tracker-0.16.typelib
GcrUi-3.typelib              GstRtsp-1.0.typelib         Tracker-1.0.typelib
GData-0.0.typelib            GstSdp-0.10.typelib         TrackerControl-1.0.typelib
GDesktopEnums-3.0.typelib    GstSdp-1.0.typelib          TrackerExtract-0.16.typelib
Gdk-2.0.typelib              GstTag-0.10.typelib         TrackerMiner-0.16.typelib
Gdk-3.0.typelib              GstTag-1.0.typelib          TrackerMiner-1.0.typelib
GdkGLExt-3.0.typelib         GstVideo-0.10.typelib       UDisks-2.0.typelib
GdkPixbuf-2.0.typelib        GstVideo-1.0.typelib        Unity-7.0.typelib
GdkX11-2.0.typelib           Gtk-2.0.typelib             UnityExtras-7.0.typelib
GdkX11-3.0.typelib           Gtk-3.0.typelib             UPowerGlib-1.0.typelib
Gdl-3.typelib                GtkClutter-1.0.typelib      Vte-2.90.typelib
Gdm-1.0.typelib              GtkGLExt-3.0.typelib        WebKit-3.0.typelib
Gee-0.8.typelib              GtkSource-3.0.typelib       Wnck-3.0.typelib
GES-1.0.typelib              GTop-2.0.typelib            xfixes-4.0.typelib
Gio-2.0.typelib              Gucharmap-2.90.typelib      xft-2.0.typelib
GIRepository-2.0.typelib     GUdev-1.0.typelib           Xkl-1.0.typelib
Gkbd-3.0.typelib             IBus-1.0.typelib            xlib-2.0.typelib
GL-1.0.typelib               JavaScriptCore-3.0.typelib  xrandr-1.3.typelib
GLib-2.0.typelib             JSCore-3.0.typelib          Zeitgeist-2.0.typelib
GMenu-3.0.typelib            Json-1.0.typelib            Zpj-0.0.typelib
GModule-2.0.typelib          libxml2-2.0.typelib
jsbueno commented 9 years ago

So the issue is that Ubuntu is packaging GEGL without introspection. I am afraid it is bug that should be open against Ubuntu packages - In order to get it working, you should compile GEGL yourself - It is not hard on Ubuntu - just pass the "--enable-introspection" parameter to the ".configure" script when you get to call it. (something along: apt-get source gegl; apt-get build-dep gegl; apt-get install gobject-introspection-dev, switch into dir, ./configure --enable-introspection; make; make checkinstall, and install the generated .deb package)

jsbueno commented 9 years ago

Also pelase, state your Ubuntu version

stuaxo commented 9 years ago

It's Ubuntu 14.10.

I'll see if I can build it myself using those instructions.

It looks like debian might also not have have it as well: https://www.debian.org/distrib/packages#search_contents

manuq commented 9 years ago

Fedora is also not packaging gegl with instrospection enabled. I think the best option for developers is to bundle gegl within your application.

2015-01-28 10:14 GMT-03:00 Joao S. O. Bueno notifications@github.com:

So the issue is that Ubuntu is packaging GEGL without introspection. I am afraid it is bug that should be open against Ubuntu packages - In order to get it working, you should compile GEGL yourself - It is not hard on Ubuntu - just pass the "--enable-introspection" parameter to the ".configure" script when you get to call it. (something along: apt-get source gegl; apt-get build-dep gegl; apt-get install gobject-introspection-dev, switch into dir, ./configure --enable-introspection; make; make checkinstall, and install the generated .deb package)

— Reply to this email directly or view it on GitHub https://github.com/jsbueno/python-gegl/issues/2#issuecomment-71832609.

.. manuq ..

stuaxo commented 9 years ago

I'll have a go at building it tomorrow. Could it be that it is not enabled by default / very easy to have a build without it enabled? Probably needs fixing upstream, especially if bindings for other languages are to get any users.

stuaxo commented 9 years ago

OK, tomorrow never came... will get round to this at some point but let myself get snowed under :/

jsbueno commented 9 years ago

We actually do need to file a bug report agaisnt GEGL itself, so that introspection is enabled by default (it was agreeded on the mailing list there but i think no one took action on it)

@manuq - I am hurried with a lot of things around - could you write some few paragraphs on how to check-out and buitl GEGL with introspection in a recent Linux distro - so we can let it hovering somewhere around here?