Fwd:Meld problem



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
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.

After setting the following variable:

setenv GSETTINGS_SCHEMA_DIR /tmp/gtk/tools/gtk/share/glib-2.0/schemas/

Hitting this error:

** (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

On Fri, Aug 26, 2016 at 2:55 PM, niraj pandey <nirajkumarpandey gmail com> wrote:

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

On Fri, Aug 26, 2016 at 2:52 PM, niraj pandey <nirajkumarpandey gmail com> wrote:

Thanks Vasily ,

I had reconfigured the gi and pygobject and that error went away but now hit another error :(

With meld 3.14:

/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
Traceback (most recent call last):
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

On Wed, Aug 24, 2016 at 6:22 PM, Vasily Galkin <galkin-vv yandex ru> wrote:

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

python -c "import gi;print(gi.__file__)"

/tmp/gtk/tools/lib/python2.7/site-packages/gi-1.2-py2.7.egg/gi/__init__.pyc

Error:

/tmp/gtk/meld-3.16.2/bin/meld

Traceback (most recent call last):

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'


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