dropbox / nautilus-dropbox

Dropbox Integration for Nautilus
Other
236 stars 55 forks source link

PyGTK/PyGI deprecation warnings #103

Closed gtirloni closed 10 months ago

gtirloni commented 2 years ago
$ dropbox update
/home/user/bin/dropbox:301: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
/home/user/bin/dropbox:451: PyGTKDeprecationWarning: Stock items are deprecated. Please use: Gtk.Button.new_with_mnemonic(label)
  self.ok = ok = Gtk.Button(stock=Gtk.STOCK_OK)
/home/user/bin/dropbox:456: PyGTKDeprecationWarning: Stock items are deprecated. Please use: Gtk.Button.new_with_mnemonic(label)
  cancel = Gtk.Button(stock=Gtk.STOCK_CANCEL)
/home/user/bin/dropbox:346: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  t.setDaemon(True)
/home/user/bin/dropbox:332: PyGIDeprecationWarning: GObject.idle_add is deprecated; use GLib.idle_add instead
  GObject.idle_add(self.loop_callback, *ret)
/home/user/bin/dropbox:342: PyGIDeprecationWarning: GObject.idle_add is deprecated; use GLib.idle_add instead
  GObject.idle_add(self.on_done)
$ dropbox version
Dropbox daemon version: 149.4.4568
Dropbox command-line interface version: 2020.03.04
$ python --version
Python 3.10.4

$ cat /etc/fedora-release
Fedora release 36 (Thirty Six)

$ rpm -qa | grep ^gtk | sort
gtk2-2.24.33-8.fc36.x86_64
gtk3-3.24.34-1.fc36.x86_64
ferdnyc commented 10 months ago

Fedora 36 is EOL, and current dropbox versions no longer produce the same deprecation warnings,* I think this can be closed.

* — (They produce a whole new set of deprecation warnings:)

$ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Fedora Linux 39 (Thirty Nine)"

$ python --version
Python 3.12.1

$ PYTHONWARNINGS=once dropbox update
/usr/lib/python3.12/site-packages/gi/overrides/__init__.py:108:
 DeprecationWarning: 'pkgutil.get_loader' is deprecated and
 slated for removal in Python 3.14; use
 importlib.util.find_spec() instead
  override_loader = get_loader(override_package_name)
/usr/lib64/python3.12/pkgutil.py:291: DeprecationWarning:
 'pkgutil.find_loader' is deprecated and slated for removal in
 Python 3.14; use importlib.util.find_spec() instead
  return find_loader(fullname)
/usr/lib/python3.12/site-packages/gi/overrides/__init__.py:108:
 DeprecationWarning: 'pkgutil.get_loader' is deprecated and
 slated for removal in Python 3.14; use
 importlib.util.find_spec() instead
  override_loader = get_loader(override_package_name)
/usr/lib64/python3.12/pkgutil.py:291: DeprecationWarning:
 'pkgutil.find_loader' is deprecated and slated for removal in
 Python 3.14; use importlib.util.find_spec() instead
  return find_loader(fullname)
/usr/lib/python3.12/site-packages/gi/overrides/Gtk.py:566:
 PyGTKDeprecationWarning: The keyword(s) "parent" have been
 deprecated in favor of "transient_for" respectively. See:
 https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self._init(*args, **new_kwargs)
/usr/lib/python3.12/site-packages/gi/overrides/Gtk.py:576:
 DeprecationWarning: Gtk.Dialog.get_action_area is deprecated
  action_area = property(lambda dialog: dialog.get_action_area())
/usr/lib64/python3.12/tarfile.py:2220: DeprecationWarning:
 Python 3.14 will, by default, filter extracted tar archives
 and reject files or modify their metadata. Use the filter
 argument to control this behavior.
  warnings.warn(