Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568164 - x11-misc/redshift-1.10 - /usr/lib64/python3.4/site-packages/redshift_gtk/statusicon.py:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
Summary: x11-misc/redshift-1.10 - /usr/lib64/python3.4/site-packages/redshift_gtk/stat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-13 13:53 UTC by thunderrd
Modified: 2016-01-03 04:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thunderrd 2015-12-13 13:53:55 UTC
thunderrd@Q6600:~$ /usr/bin/redshift-gtk -l 17.416667:102.75 -t 5500:4000 &
[1] 9541
thunderrd@Q6600:~$ /usr/lib64/python3.4/site-packages/redshift_gtk/statusicon.py:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GLib, GObject


This is something new after running redshift for a long time now. 

emerge -1v $(find /usr/lib*/python3* -name '*cpython-3[3-5].so') rebuilt pygobject, but messages remain after rebuilding.

There does not seem to be any loss of functionality, other than the chatty tty.
Comment 1 thunderrd 2015-12-13 13:54:42 UTC
root@Q6600: /home/thunderrd# emerge --info
Portage 2.2.23 (python 3.5.0-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.22-r1, 4.3.2-ck x86_64)
=================================================================
System uname: Linux-4.3.2-ck-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9650_@_3.00GHz-with-gentoo-2.2
KiB Mem:     4047304 total,   2130104 free
KiB Swap:    1060860 total,   1060860 free
Timestamp of repository gentoo: Sun, 13 Dec 2015 12:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo, 3.5.0-r4::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /mnt/ext4_STORAGE/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --verbose --progress --exclude-from=/etc/portage/rsync_excludes

BZ-overlay
    location: /mnt/ext4_STORAGE/usr/local/portage
    masters: gentoo
    priority: 0

hnaparst
    location: /var/lib/layman/hnaparst
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

vaca
    location: /var/lib/layman/vaca
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/mnt/ext4_STORAGE/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo http://gentoo.aditsu.net:8000/ http://mirrors.stuhome.net/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/mnt/ext4_STORAGE/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--verbose --progress --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus device-mapper directfb dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gnutls gpm gtk iconv ipv6 jack jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline samba sdl seccomp session spell sse sse2 ssh ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode usb uuid vdpau vorbis wxwidgets x264 xattr xcb xcomposite xfce xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ca0106" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 2 Mike Gilbert gentoo-dev 2015-12-13 14:08:42 UTC
> This is something new after running redshift for a long time now.

Are you sure about that? pygobject has been emitting that warning for at least 4 years now.

In any case, please report this to the redshift developer upstream.
Comment 3 thunderrd 2015-12-13 14:29:58 UTC
Yeah, I am 99% sure it was not there before; I would have noticed it in the tty.  Anyhow, I've reported it upstream at the dev's github page. Someone else already reported the same issue there before me [in Arch Linux].

I'm quite sure it began after the recent python movements.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-13 16:22:06 UTC
(In reply to thunderrd from comment #3)
> Yeah, I am 99% sure it was not there before; I would have noticed it in the
> tty.  Anyhow, I've reported it upstream at the dev's github page. Someone
> else already reported the same issue there before me [in Arch Linux].

Um, so instead of you posting the URL to the issue on github just once, we're supposed to look through those four pages on an individual basis, hoping to glean it off the description someone using Arch Linux happened to come up with?
Comment 5 thunderrd 2015-12-13 16:35:26 UTC
Sheesh.  This is a tough room.

I did not post a link to the issue on github because it added absolutely nothing to what I filed here, but since it *might* make you feel better, Jeroen, here is a link:

https://github.com/jonls/redshift/issues/282

Now, would you like to spank me, or can I get back to work?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-13 17:34:29 UTC
(In reply to thunderrd from comment #5)
> Sheesh.  This is a tough room.
> 
> I did not post a link to the issue on github because it added absolutely
> nothing to what I filed here, but since it *might* make you feel better,
> Jeroen, here is a link:
> 
> https://github.com/jonls/redshift/issues/282

That bug is about an Arch Linux problem with the xdg module, not about the (harmless) warning this bug report is about.
Comment 7 Alex Brandt (RETIRED) gentoo-dev 2015-12-14 03:37:32 UTC
I ran into this as well and simply needed to rebuild pygobject to relink against the new libraries provided by python.  Not sure why this isn't caught by another tool (probably because it's a python internal).  Let me know if that doesn't resolve the issue.
Comment 8 thunderrd 2015-12-14 04:03:41 UTC
Thank you, Alex, I did do that first [see OP]; redshift works fine.  I opened this report simply because I *thought* I was being helpful by reporting the message and managed to annoy the devs unintentionally.

For anyone interested, Mike [floppym] gave me this in #gentoo-python:

emerge -1v $(find /usr/lib*/python3* -name '*cpython-3[3-5].so')

This did indeed rebuild pygobject, and made redshift usable again.  The message remains, but I've since reported that upstream, as I was told to.  If it is not a problem to be handled by gentoo people, [and if there's no one interested], you can close this warning message report.

There is at least one other package on my system suddenly spitting out the same message, but I'm not going to report it on the gentoo bugtracker, I'll go straight to the upstream guy.  With the second package, again, there's also no loss of functionality after rebuilding pygobject, so the message itself isn't urgent.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-14 06:05:39 UTC
I'm pretty sure no one around here was or is annoyed.
Comment 10 thunderrd 2015-12-14 09:08:30 UTC
(In reply to Jeroen Roovers from comment #9)
> I'm pretty sure no one around here was or is annoyed.

Glad to hear that.  Maybe I was being too sensitive.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-16 08:26:21 UTC
Not sensitive enough, I would say. :)
Comment 12 Sebastian Pipping gentoo-dev 2016-01-03 04:18:25 UTC
Commit https://github.com/jonls/redshift/commit/442fb9bd5df72e6eb89c34352882ac80f9c9660b with a fix has made it into release 1.11 of a few hours ago.  Now in Gentoo, enjoy :)


# git show --stat | sed 's,@gentoo.org,@g.o,'
commit fb6b2788618c34808d25853f4625afb63a7d0bcc
Author: Sebastian Pipping <sping@g.o>
Date:   Sun Jan 3 05:15:04 2016 +0100

    x11-misc/redshift: 1.11 (bug #568164)

 x11-misc/redshift/Manifest             |  1 +
 x11-misc/redshift/redshift-1.11.ebuild | 86 ++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)