weather-wallpaper is a small program that collects the weather forecast and creates a wallpaper with it. Reproducible: Always Steps to Reproduce:
Created attachment 129505 [details] gnome-extra/weather-wallpaper-0.1.0.ebuild
Created attachment 129927 [details] gnome-extra/weather-wallpaper-0.2.0 (new ebuild) New ebuild for weather-wallpaper-0.2.0
please add ~amd64 with the next update. thanks.
Created attachment 130051 [details] gnome-extra/weather-wallpaper-0.2.0-r1 (new ebuild, a few corrected bugs) *Some errors solved ( manpages didn't work ) *added ~amd64, hope it should work Any kind of feedback is welcome :)
(In reply to comment #4) > *added ~amd64, hope it should work it's working fine on my box.
The new ebuild does not work correctly on my box. While the installation runs fine the script does not update the background image, I suspect that a dependency is not resolved correctly. This is the output I get when running weather-wallpaper: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/bin/weather-wallpaper", line 254, in run statusIcon.set_from_stock(gtk.STOCK_REFRESH) NameError: global name 'statusIcon' is not defined The script continues to run but the background does not change and the status icon always shows the "update" icon.
(In reply to comment #6) > The new ebuild does not work correctly on my box. to me too!
(In reply to comment #6) > The new ebuild does not work correctly on my box. While the installation runs > fine the script does not update the background image, I suspect that a > dependency is not resolved correctly. > > This is the output I get when running weather-wallpaper: > > Exception in thread Thread-1: > Traceback (most recent call last): > File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap > self.run() > File "/usr/bin/weather-wallpaper", line 254, in run > statusIcon.set_from_stock(gtk.STOCK_REFRESH) > NameError: global name 'statusIcon' is not defined > > The script continues to run but the background does not change and the status > icon always shows the "update" icon. > Sorry, my gentoo box is down. I'll fix it as soon as posible. Thanks for your feedback
(In reply to comment #6) > The new ebuild does not work correctly on my box. While the installation runs > fine the script does not update the background image, I suspect that a > dependency is not resolved correctly. > > This is the output I get when running weather-wallpaper: > > Exception in thread Thread-1: > Traceback (most recent call last): > File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap > self.run() > File "/usr/bin/weather-wallpaper", line 254, in run > statusIcon.set_from_stock(gtk.STOCK_REFRESH) > NameError: global name 'statusIcon' is not defined > > The script continues to run but the background does not change and the status > icon always shows the "update" icon. Could you post which of dev-python/pygtk is installed in your system?
Right now I'm running pygtk-2.10.4 with the only opengl use flag enabled.
(In reply to comment #10) > Right now I'm running pygtk-2.10.4 with the only opengl use flag enabled. > Not seems to be related to pygtk. Could you post your "emerge --info" ? Thanks
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-suspend2-r1 i686) ================================================================= System uname: 2.6.22-suspend2-r1 i686 Intel(R) Pentium(R) M processor 1.70GHz Timestamp of tree: Sun, 23 Sep 2007 07:50:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.5-r3, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://85.25.128.62 http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://www.gigaload.org/gentoo.org" LINGUAS="en de" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/obby-0x539 /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acpi aiglx alsa amr apache2 applet automount avahi bash-completion beagle berkdb bitmap-fonts bluetooth bogofilter bonjour bonobo branding bzip2 bzlib cairo cdda cddb cdparanoia cdr cdrom chipcard chipcard2 clamav cli cpudetection crypt css csv cups curl curlwrappers daap dbus dga dhcp dillo divx4linux dlloader dri dvd dvdnav dvdr dvdread dvi eds enca encode epiphany escreen esd evo evo2 evolution exif expat fbcon fbsplash firefox flash font-server foomaticdb ftp galago gd gdbm gif gimpprint gmail gmailtimestamps gnome gpgme graphviz gs gsf gstreamer gtk gtk2 gtkhtml h323 hal hbci howl-compat html http ical icq icu idn imap imlib imlib2 ipod irmc ithreads jabber java javascript jboss jpeg jpeg2k keyring lame ldap lesstif libnotify libwww lm_sensors lzo mad mbox md5sum mdnsresponder-compat memlimit mhash mime mjpeg mmx mmxext mng mono mozbranding mozilla mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc msn musicbrainz mysql ncurses network nls nocd nptl nptlonly nsplugin obex odbc offensive ogg oggvorbis ole opengl pam pcmcia pcre pdf pdfkit pdflib perl png ppds python quicktime rar rdesktop readline real rss rtc rtsp ruby samba sasl skins slp smime sms soap sockets spell spreadsheet sqlite sse sse2 ssl startup-notification stream svg sysfs syslog sysvipc tagwriting theora threads thumbnail tidy tiff tokenizer truetype truetype-fonts type1 type1-fonts unicode urandom usb utf8 v4l v4l2 vim-with-x virus-scan vorbis wddx widescreen wifi win32codecs wma wmf wxwindows x264 x86 xine xinerama xml xml2 xmlreader xmlwriter xorg xosd xprint xscreensaver xv zeroconf zlib" ALSA_CARDS="emu10k1 emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw copy file hooks ladspa mulaw dsnoop extplug share dshare rate meter multi linear route lfloat" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
There is a not yet released patch for the GTK error in upstream: https://bugs.launchpad.net/weather-wallpaper/+bug/137165 I have implemented this patch plus a fix for copying the images and built a new ebuild. The ebuild also has more detailed dependencies. This ebuild works for me, anyone care to check it out?
Created attachment 131801 [details] gnome-extra/weather-wallpaper-0.2.0-r2.ebuild
Created attachment 131803 [details, diff] gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch Fix for bug from upstream: https://bugs.launchpad.net/weather-wallpaper/+bug/137165
(In reply to comment #13) > There is a not yet released patch for the GTK error in upstream: > https://bugs.launchpad.net/weather-wallpaper/+bug/137165 > > I have implemented this patch plus a fix for copying the images and built a new > ebuild. The ebuild also has more detailed dependencies. > This ebuild works for me, anyone care to check it out? > Works for me too, but I get this output: ** (inkscape:20992): WARNING **: Specified document /usr/share/weather-wallpaper/images/None.svg cannot be opened (is it valid SVG file?) (inkscape:20992): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed
not working to me yet. this is the output when run from command line. The tray icon appears for a minute in update-mode, then after some disk and cpu time it disappears. $ weather-wallpaper ** (inkscape:29835): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed ** (inkscape:29835): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed ** (inkscape:29835): WARNING **: Specified document /usr/share/weather-wallpaper/images/None.svg cannot be opened (is it valid SVG file?) (inkscape:29835): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed
Created attachment 131830 [details] gnome-extra/weather-wallpaper-0.2.0-r3.ebuild Sorry, the copying of the images was messed up again - but different from the first version... As to the errors from inkscape: I also got these yesterday and thought it was some error with my inkscape setup. Recompiling inkscape fixed this for me.
-r3 is working fine to me! thanks!
I just had a quick look at the ebuild and noticed the following QA issues: * Please make sure patching is done in src_unpack, not src_install * A number of variables need quoting because they may contains spaces (e.g. FILESDIR, ROOT, D) * RDEPEND should not be empty. Is e.g. pygtk not needed during runtime? Trying to run the application gives me: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/bin/weather-wallpaper", line 401, in run input_img = os.path.join(path, "images", image + ".svg") TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Unfortunately my gentoo system broke with an ext3 incosistency some days ago and for a quick fix I replaced it with ubuntu. The backdraw is that I won't have a gentoo desktop system to test the ebuild and my servers do not have X installed. I hope somebody else is willing to make the changes though.
i think SRC_URI is not working for this ebuild weather-wallpaper-0.2.0-r3.ebuild
(In reply to comment #22) > i think SRC_URI is not working for this ebuild > weather-wallpaper-0.2.0-r3.ebuild > I chnged SRC_URI to http://mundogeek.net/repo/pool/ubuntu/all/weather-wallpaper_0.2.0-1.tar.gz and then downloaded weather-wallpaper-0.2.0-r2.patch in files directory. NOW !! when I do emerge weather-wallpaper following build log cat /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/build.log >>> Unpacking source... >>> Unpacking weather-wallpaper_0.2.0-1.tar.gz to /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/work/weather-wallpaper-0.2.0 ... No compile necesary >>> Source compiled. >>> Test phase [not enabled]: gnome-extra/weather-wallpaper-0.2.0-r3 >>> Install weather-wallpaper-0.2.0-r3 into /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/image/ category gnome-extra * Applying weather-wallpaper-0.2.0-r2.patch ... * Failed Patch: weather-wallpaper-0.2.0-r2.patch ! * ( /usr/local/portage/gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/weather-wallpaper-0.2.0-r2.patch-19462.out * * ERROR: gnome-extra/weather-wallpaper-0.2.0-r3 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_install * ebuild.sh, line 1138: Called qa_call 'src_install' * ebuild.sh, line 44: Called src_install * weather-wallpaper-0.2.0-r3.ebuild, line 38: Called epatch '/usr/local/portage/gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch' * eutils.eclass, line 304: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!" * The die message: * Failed Patch: weather-wallpaper-0.2.0-r2.patch! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/build.log'. * This ebuild is from an overlay: '/usr/local/portage/'
The patch is no longer needed since it has been applied in the new weather-wallpaper-0.2.0-1.tar.gz file. However, trying to run this version gets me: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/bin/weather-wallpaper", line 401, in run input_img = os.path.join(path, "images", image + ".svg") TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
align ebuild requests to same values
RESOLVED as OBSOLETE since there is no update and package is not in tree Coordinated with leio