many gtk deprecation & "discouraged" warnings

Bug #1427374 reported by jimav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gramps (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

At startup, gramps emits a very large volume of gtk-related warnings, so many that one would be unlikely to notice any actual error messages mixed in there. Can these be fixed?

$ gramps
/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py:840: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.uimanager.ensure_update()
/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py:459: Warning: The property GtkToolButton:stock-id is deprecated and shouldn't be used anymore. It will be removed in a future version.
  openbtn = Gtk.MenuToolButton.new_from_stock('gramps-db')
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkMisc:ypad is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkMisc:xpad is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/widgets/validatedcomboentry.py:76: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored.
  dummy_event = Gdk.Event(Gdk.EventType.NOTHING)
/usr/lib/python3/dist-packages/gramps/gui/widgets/styledtexteditor.py:207: Warning: The property GtkSettings:gtk-show-unicode-menu is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.show_unicode = settings.get_property('gtk-show-unicode-menu')
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:right-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
[test@test-VirtualBox ~]$ r
gramps
]/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py:840: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.uimanager.ensure_update()
/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py:459: Warning: The property GtkToolButton:stock-id is deprecated and shouldn't be used anymore. It will be removed in a future version.
  openbtn = Gtk.MenuToolButton.new_from_stock('gramps-db')
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/widgets/validatedcomboentry.py:76: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored.
  dummy_event = Gdk.Event(Gdk.EventType.NOTHING)
/usr/lib/python3/dist-packages/gramps/gui/widgets/styledtexteditor.py:207: Warning: The property GtkSettings:gtk-show-unicode-menu is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.show_unicode = settings.get_property('gtk-show-unicode-menu')
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:right-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))
/usr/lib/python3/dist-packages/gramps/gui/glade.py:125: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_from_file(uni_to_gui(path))

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: gramps 4.1.1~dfsg-3
ProcVersionSignature: Ubuntu 3.18.0-12.13-generic 3.18.4
Uname: Linux 3.18.0-12-generic x86_64
ApportVersion: 2.15.1-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 2 12:37:47 2015
InstallationDate: Installed on 2015-02-06 (24 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150205)
PackageArchitecture: all
SourcePackage: gramps
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
jimav (james-avera) wrote :

I filed an upstream bug asking if someone can comment on whether these are caused by a packaging or compatibility issue specific to Ubunbu: https://gramps-project.org/bugs/view.php?id=8390

Revision history for this message
Ross Gammon (rosco2) wrote :

I certainly didn't see this number of errors when I tested Gramps in Debian unstable (only a couple) - but I am checking now in vivid. Can you tell me roughly which actions you were performing to generate the errors?

For the record, can you also paste the output of $gramps -v so we have a record of which version of gtk gramps is seeing?

It is unlikely at this stage of the vivid cycle that these can be fixed. But I have heard that Gramps upstream have had issues with the gtk version currently in Debian & Ubuntu, and have reported some bugs upstream to gnome that have not yet made it into Debian. The errors are warning that some functions are deprecated, but the functionality is still there. But eventually something should be done.

Changed in gramps (Ubuntu):
status: New → Incomplete
Revision history for this message
Ross Gammon (rosco2) wrote :

Whoops - our messages crossed in the post!

Thanks for reporting, and forwarding upstream. No need to paste gramps -v here, I can see that you did that in the upstream bug.

I would like to know the types of things you were doing in gramps as you got these errors though.

Revision history for this message
jimav (james-avera) wrote :

> I would like to know the types of things you were doing in gramps as you got these errors though.

Nothing at all. The messages appear immediately when the "gramps" command is run without arguments.
(actually, some of them are printed, then the "OsmGpsMap module not loaded" pop-up appears, and after the pop-up is dismissed most of the rest appear; The last two from glade.py:125 appear after closing the last Gramps window to exit)

Revision history for this message
Ross Gammon (rosco2) wrote :

I failed to get my vivid installation working before bedtime, so I checked in Debian unstable again.

For me, there is only one deprecation warning if I just run gramps, open an existing empty database, and then immediately quit. The only difference between our gramps -v is the gtk verison (3.14.5 for me and 3.14.7 for you).

Anyway, thanks for the extra info. Marking the bug confirmed.

Changed in gramps (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
jimav (james-avera) wrote :

Thanks Ross. That makes me suspect that the newer GTK version (3.14.7) is issuing more deprecation warnings.

P.S. I don't know if you are using Virtual Machines for testing, but if not I recommend it -- much less hassle than setting up real partitions and rebooting to try different OS releases. Personally I use virtualbox, and installed the daily build from
http://cdimage.ubuntu.com/daily-live/current/vivid-desktop-amd64.iso

Revision history for this message
jimav (james-avera) wrote :

Upstream says "Support for Gtk-3.14 is fixed in Gramps-4.1.2"

Should vivid use the new version 4.1.2? It sounds like they fixe a lot of other bugs too.

(Alternatively, just the launcher can be fixed to set env variable G_ENABLE_DIAGNOSTIC=0 to supporess most of the warnings)

Changed in gramps (Ubuntu):
importance: Undecided → Low
Revision history for this message
Ross Gammon (rosco2) wrote :

jimav said : Should vivid use the new version 4.1.2? It sounds like they fixe a lot of other bugs too.

Generally, packages come to Ubuntu via Debian, and Debian is in deep freeze at the moment (due to the hopefully imminent release of Debian Jessie). Therefore, only targated patches for specific release critical bugs are getting through.

Once Jessie is released, I hope to package 4.1.2 and upload it to backports. I will also try and backport it in Ubuntu.

Revision history for this message
Ross Gammon (rosco2) wrote :

Gramps 4.1.2 is now in Wily (to be 15.10). I would be grateful if you could try that package out and see if the situation is any better. Otherwise, I will try and confirm it with Gramps 4.1.3 which I am in the middle of packaging.

Changed in gramps (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Ross Gammon (rosco2) wrote :

I still see a lot of deprecation warnings in 4.1.3 (Wily). But I am about to package Gramps 4.2.0, so we will see how that new version looks.

Revision history for this message
matti salminen (salmiset) wrote :

I received a .ged file from a relative. On an up-to-date Wily, double clicked on the .ged file. Wiley asked permission to search internet for a program capable of opening it and after my OK found and installed gramps 4.2.0. AFter the installation double clicked on ged file again, this time resulting in the following message..

GTK translations for the current language (en_US) are missing.
Gramps will proceed nevertheless.
The GUI will likely be broken as a result, especially for RTL languages!

See the Gramps README documentation for installation prerequisites,
typically located in /usr/share/doc/gramps.

The Gramps README simply states that

Gramps now uses Python 3.

Here is what it sees..

$ gramps -v
Gramps Settings:
----------------
 python : 3.5.0
 gramps : 4.2.0
 gtk++ : 3.16.6
 pygobject : 3.16.2
 pango : 1.36.8
 bsddb : 6.1.0
 bsddb.db : 5.3.28
 cairo : 1.14.2
 pycairo : 1.10.0
 osmgpsmap : 1.0
 GExiv2 : 0.10
 ICU : 55.1
 PyICU : 1.9.2
 o.s. : linux
 kernel : 4.2.0-10-generic

Environment settings:
---------------------
 LANG : en_US.UTF-8
 LANGUAGE : en
 GRAMPSI18N: not set
 GRAMPSHOME: not set
 GRAMPSDIR : not set
 PYTHONPATH:
    /usr/lib/python3/dist-packages/gramps
    /usr/bin
    /usr/lib/python35.zip
    /usr/lib/python3.5
    /usr/lib/python3.5/plat-x86_64-linux-gnu
    /usr/lib/python3.5/lib-dynload
    /usr/local/lib/python3.5/dist-packages
    /usr/lib/python3/dist-packages
    /usr/lib/python3.5/dist-packages

Non-python dependencies:
------------------------
 Graphviz : 2.38
 Ghostscr. : 9.16

System PATH env variable:
-------------------------
     /usr/local/sbin
     /usr/local/bin
     /usr/sbin
     /usr/bin
     /sbin
     /bin
     /usr/games
     /usr/local/games

Revision history for this message
Ross Gammon (rosco2) wrote :

Hi Matti,

Thanks for reporting that. But it sounds like a different bug to the one you are commenting on. Could you please submit a new bug with the same information?

I would do it for you, but then you would not be automatically subscribed to the bug.

Regards,

Ross

Revision history for this message
Ross Gammon (rosco2) wrote :

Hi Matti,

I have created a new bug for your issue:
https://bugs.launchpad.net/ubuntu/+source/gramps/+bug/1499986

You should subscribe to the bug if you want to chase up the results.

Revision history for this message
Ross Gammon (rosco2) wrote :

Hi James,

I just checked this on gramps 4.2.0~dfsg-1 (which is in Wily and will be part of the 15.10 release), and I get no deprecation warnings.

Thanks for reporting this, and feel free to pass on any new warnings that pop up as the underlying libraries change.

Cheers,

Ross

Changed in gramps (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
jimav (james-avera) wrote :

Thanks very much! I confirm that "gramps" issues no warnings now on Ubuntu 15.10 beta.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.