Discussion:
Meld problem
niraj pandey
2016-08-19 05:33:11 UTC
Permalink
Hi ,

I am trying to use meld latest version on RHEL 6 machine. But I am getting
the following error while using it.

./meld-3.16.2/bin/meld
Traceback (most recent call last):
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line 73,
in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

Can someone please help me how to fix this issues. I am using Gtk+-3.16.7
for this.

Thanks in advance.

Regards
Niraj
--
Success occurs when opportunity and preparation meet
Vasily Galkin
2016-08-19 11:52:50 UTC
Permalink
Hi!

Meld uses gtk and gtksourceview from python via gobject interface.
For this to work several things a required. Unfortunately I can't name exact packages for RHEL, so here is an approximated list
1) python-gobject support. You already have this, since you have "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py" file
2) Gtk+3 & gtksource libraries >= 3.14. To verify their presence ensure that you can run gedit and check its version is >= 3.14
3) gobject introspection repository ("gir" or "typelib") for Gtk+3 & gtksource. It seems that you lack this.
It it is stored in files like "Gtk-3.0.typelib" and "GtkSource-3.0.typelib" in folder like girepository-1.0/ somewhere in the /usr
If you doesn't have these files anywhere in the /usr it looks like installing some package containing them would help.
Hi ,
I am trying to use meld latest version on RHEL 6 machine. But I am getting the following error while using it.
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line 73, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Can someone please help me how to fix this issues. I am using Gtk+-3.16.7 for this.
Thanks in advance.
Regards
Niraj
--
Success occurs when opportunity and preparation meet
niraj pandey
2016-08-22 07:48:09 UTC
Permalink
Hi ,

Any update on this ?

Thanks
Niraj
Post by niraj pandey
Hi ,
I am trying to use meld latest version on RHEL 6 machine. But I am getting
the following error while using it.
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line
73, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Can someone please help me how to fix this issues. I am using Gtk+-3.16.7
for this.
Thanks in advance.
Regards
Niraj
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
Vasily Galkin
2016-08-22 10:41:02 UTC
Permalink
Hi !
(Replying off-list now, due to supposing some communication problems)
Didn't you receive this reply several days ago https://mail.gnome.org/archives/meld-list/2016-August/msg00028.html - ?
If no - there can be some communication problem.
If yes - have you any progress in diagnosing if you have problem2 (bad install of gtk+) or problem3 (absence of typelibs), see the email in link above.
Post by niraj pandey
Hi ,
Any update on this ?
Thanks
Niraj
Hi ,
I am trying to use meld latest version on RHEL 6 machine. But I am getting the following error while using it.
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line 73, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Can someone please help me how to fix this issues. I am using Gtk+-3.16.7 for this.
Thanks in advance.
Regards
Niraj
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
niraj pandey
2016-08-23 09:30:24 UTC
Permalink
Hi ,

I looked at the link shared by "Vasily Galkin"
https://mail.gnome.org/archives/meld-list/2016-August/msg00028.html

After reconfigured all the required dependencies I am still not able to run
meld (3.16.2)
Here is the list of all the available libs:


pwd
/tmp/gtk/tools/gtk/lib/girepository-1.0
[***@vlsj-ctrh65 girepository-1.0]$ ls
Atk-1.0.typelib fontconfig-2.0.typelib Gio-2.0.typelib
GObject-2.0.typelib PangoCairo-1.0.typelib xft-2.0.typelib
Atspi-2.0.typelib freetype2-2.0.typelib GIRepository-2.0.typelib
Gtk-3.0.typelib PangoFT2-1.0.typelib xlib-2.0.typelib
cairo-1.0.typelib Gdk-3.0.typelib GL-1.0.typelib
GtkSource-3.0.typelib PangoXft-1.0.typelib xrandr-1.3.typelib
DBus-1.0.typelib GdkPixbuf-2.0.typelib GLib-2.0.typelib
libxml2-2.0.typelib win32-1.0.typelib
DBusGLib-1.0.typelib GdkX11-3.0.typelib GModule-2.0.typelib
Pango-1.0.typelib xfixes-4.0.typelib

My LD_LIBRARY_PATH:

echo $LD_LIBRARY_PATH
/tmp/gtk/tools/gtk/lib

Error:

./meld-3.16.2/bin/meld
Traceback (most recent call last):
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'

Thanks
Niraj
Post by niraj pandey
Hi ,
Any update on this ?
Thanks
Niraj
Post by niraj pandey
Hi ,
I am trying to use meld latest version on RHEL 6 machine. But I am
getting the following error while using it.
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line
73, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Can someone please help me how to fix this issues. I am using Gtk+-3.16.7
for this.
Thanks in advance.
Regards
Niraj
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
Vasily Galkin
2016-08-23 11:01:02 UTC
Permalink
Hi.
It looks like now you have an exception earlier then before - the gobject-introspection subsystem doesn't work at all.
And it fails in a bit strange way: module exists but lacks it important method.
According to https://bbs.archlinux.org/viewtopic.php?id=203480 it may be related to bad install of gobject introspection, and "import gi" imports "gi.py" from some wrong location.

Did you install python and gtk in same prefix? It's a bit strange that in previous email you mention /python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py and now you are talking about /tmp/gtk/tools/gtk/lib

Some months ago there was a discussion that leads to successful installation of meld in non-standard prefix, and the key aspects of success was using the same prefix for all components
http://stackoverflow.com/questions/35784566/meld-glib-gio-error-no-gsettings-schemas-are-installed-on-the-system
You may try to install all components in the same prefix and set environment variables mentioned there.

Also in the case of exceptions related to GtkSourceView theme - setting XDG_DATA_DIRS environment variable
https://mail.gnome.org/archives/meld-list/2016-June/msg00018.html
(you don't need this until meld window at least start appearing, it is the last stage).

P.S.
If you didn't received any messages that are directed both to you and to meld-***@gnome.org (like the on I linked in previous mail) there is a definitely email communication problem somewhere,
because meld-***@gnome.org did received the messages like the one I linked below. Please, check you spam folder to ensure that gmail doesn't somwhow learn that meld-***@gnome.org is a "bad" address.

So by now I'm sending this message separately to you and to meld-list to overcome this problem.
Hi Vasily ,
I looked at the link shared by you.
https://mail.gnome.org/archives/meld-list/2016-August/msg00028.html
After reconfigured all the required dependencies I am still not able to run meld (3.16.2). Seems getting some different error.
pwd
/tmp/gtk/tools/gtk/lib/girepository-1.0
Atk-1.0.typelib fontconfig-2.0.typelib Gio-2.0.typelib GObject-2.0.typelib PangoCairo-1.0.typelib xft-2.0.typelib
Atspi-2.0.typelib freetype2-2.0.typelib GIRepository-2.0.typelib Gtk-3.0.typelib PangoFT2-1.0.typelib xlib-2.0.typelib
cairo-1.0.typelib Gdk-3.0.typelib GL-1.0.typelib GtkSource-3.0.typelib PangoXft-1.0.typelib xrandr-1.3.typelib
DBus-1.0.typelib GdkPixbuf-2.0.typelib GLib-2.0.typelib libxml2-2.0.typelib win32-1.0.typelib
DBusGLib-1.0.typelib GdkX11-3.0.typelib GModule-2.0.typelib Pango-1.0.typelib xfixes-4.0.typelib
echo $LD_LIBRARY_PATH
/tmp/gtk/tools/gtk/lib
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
Thanks
Niraj
-------- Пересылаемое сообщение --------
Post by Vasily Galkin
Hi !
(Replying off-list now, due to supposing some communication problems)
Didn't you receive this reply several days ago https://mail.gnome.org/archives/meld-list/2016-August/msg00028.html - ?
If no - there can be some communication problem.
If yes - have you any progress in diagnosing if you have problem2 (bad install of gtk+) or problem3 (absence of typelibs), see the email in link above.
Post by niraj pandey
Hi ,
Any update on this ?
Thanks
Niraj
Hi ,
I am trying to use meld latest version on RHEL 6 machine. But I am getting the following error while using it.
./meld-3.16.2/bin/meld
File "./meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "./meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
File "/python/v2.7.10/lib/python2.7/site-packages/gi/__init__.py", line 73, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
Can someone please help me how to fix this issues. I am using Gtk+-3.16.7 for this.
Thanks in advance.
Regards
Niraj
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
--
Success occurs when opportunity and preparation meet
Vasily Galkin
2016-08-26 14:54:05 UTC
Permalink
Forwarding my message to meld-list, since it continues the discussion about another non-standard-prefix meld install.
This message contains investigation&resolution for the exception
Post by niraj pandey
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
It was name conflict of pygobject with unrelated gi package (pypi.python.org/pypi/gi/1.2)
(typical sending to both list and Niraj Pandey fails for some reason, in such case only list receives my mail).
Hi.
About GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.interface' is not installed - it is typical problem in custom prefix installs.
Additionaly to setting GSETTINGS_SCHEMA_DIR you should install schema file named org.gnome.desktop.interface.gschema.xml from some package like "gsettings-desktop-schemas"
(like in https://mail.gnome.org/archives/meld-list/2016-June/msg00011.html)
About Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed - I didn't hear about this before.
What is your DISPLAY variable? Are you using some remote desktop solution like vnc or ssh -XY?
Is gedit installed in the same prefix working fine? Checking the gedit would help to distinguish python&meld-related issues from gtk&gtksourceview issues.
setenv GSETTINGS_SCHEMA_DIR /tmp/gtk/tools/gtk/share/glib-2.0/schemas/
** (meld:12486): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
(meld:12486): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.interface' is not installed
Thanks
Niraj
While I see the compiled files are already available.
ll /tmp/gtk/tools/gtk/share/glib-2.0/schemas/
total 32
-rw-r--r-- 1 niraj cadence1 2839 Aug 22 02:47 gschema.dtd
-rw-r--r-- 1 niraj cadence1 2438 Aug 26 01:27 gschemas.compiled
-rw-r--r-- 1 niraj cadence1 375 Aug 23 01:25 org.gtk.Demo.gschema.xml
-rw-r--r-- 1 niraj cadence1 845 Aug 23 01:25 org.gtk.exampleapp.gschema.xml
-rw-r--r-- 1 niraj cadence1 931 Aug 23 01:24 org.gtk.Settings.ColorChooser.gschema.xml
-rw-r--r-- 1 niraj cadence1 832 Aug 23 01:24 org.gtk.Settings.Debug.gschema.xml
-rw-r--r-- 1 niraj cadence1 4950 Aug 23 01:24 org.gtk.Settings.FileChooser.gschema.xml
Thanks
Niraj
Thanks Vasily ,
I had reconfigured the gi and pygobject and that error went away but now hit another error :(
/tmp/gtk/meld-3.14.0/bin/meld
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
(meld:7815): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/BPT trap
With meld 3.16.2
meld:12091): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
File "/tmp/gtk/meld-3.16.2/bin/meld", line 260, in <module>
setup_resources()
File "/tmp/gtk/meld-3.16.2/bin/meld", line 193, in setup_resources
Gtk.IconTheme.get_default().append_search_path(icon_dir)
AttributeError: 'NoneType' object has no attribute 'append_search_path'
Any clue for this ?
Once again thanks for taking care of this .
Regards
Niraj
It looks like name confilict issue. The gi-1.2-py2.7.egg doesn't look like python-gobject installation, it more looks like installation of some gist related package https://pypi.python.org/pypi/gi/1.2
This is NOT python-gobject bindings required to run meld.
So ensure that python-gobject is installed (something like python2.7/*-packages/gi/repository/__init__.py must exist)
and remove gi-1.2-py2.7.egg module from this prefix to resolve name conflict (gi-*.egg must NOT exist)
Note that I'm not sure if pygobject version >=3.14 can be installed via pypi/pip. It may be build from source or maybe (I'm not sure) extracted from some prebuilt package like http://koji.fedoraproject.org/koji/rpminfo?fileStart=50&rpmID=5619794
Post by niraj pandey
python -c "import gi;print(gi.__file__)"
/tmp/gtk/tools/lib/python2.7/site-packages/gi-1.2-py2.7.egg/gi/__init__.pyc
/tmp/gtk/meld-3.16.2/bin/meld
File "/tmp/gtk/meld-3.16.2/bin/meld", line 259, in <module>
check_requirements()
File "/tmp/gtk/meld-3.16.2/bin/meld", line 161, in check_requirements
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
Continue reading on narkive:
Loading...