Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291650 - app-backup/rdiff-backup-1.2.8 outputs DeprecationWarning with python 2.6
Summary: app-backup/rdiff-backup-1.2.8 outputs DeprecationWarning with python 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 23:43 UTC by Jim Faulkner
Modified: 2010-07-20 16:30 UTC (History)
4 users (show)

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


Attachments
Patch for the os.popen2 DeprecationWarning (1.2.8-popen2.patch,775 bytes, patch)
2010-01-15 10:35 UTC, Mike Williams
Details | Diff
Modified ebuild to apply patch (rdiff-backup-1.2.8.ebuild.patch,384 bytes, patch)
2010-01-15 10:36 UTC, Mike Williams
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Faulkner 2009-11-02 23:43:34 UTC
rdiff-backup version 1.2.8 outputs the following warning when backing up to a remote host over SSH:
/usr/lib64/python2.6/site-packages/rdiff_backup/SetConnections.py:148:
DeprecationWarning: os.popen2 is deprecated.  Use the subprocess module.
  stdin, stdout = os.popen2(remote_cmd)

This is an annoyance because I get an e-mail with the error every time my automated backups run.  I would like to only get an e-mail when there was a problem with my backup.

There are patches available to fix this issue both here:
http://old.nabble.com/-bug--26064--os.popen2-seems-depricated-in-Python-2.6-td22837749.html

and here:
https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/436035

It would be nice to see such a patch integrated with gentoo's version of rdiff-backup.


Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31.5 x86_64)                                                                             
=================================================================                         
System uname: Linux-2.6.31.5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-1.12.11.1                                                                            
Timestamp of tree: Sat, 31 Oct 2009 03:30:01 +0000                                        
app-shells/bash:     4.0_p28                                                              
dev-lang/python:     2.6.2-r1                                                             
sys-apps/baselayout: 1.12.11.1                                                            
sys-apps/sandbox:    1.6-r2                                                               
sys-devel/autoconf:  2.13, 2.63-r1                                                        
sys-devel/automake:  1.9.6-r2, 1.10.2                                                     
sys-devel/binutils:  2.18-r3                                                              
sys-devel/gcc-config: 1.4.1                                                               
sys-devel/libtool:   2.2.6a                                                               
virtual/os-headers:  2.6.27-r2                                                            
ACCEPT_KEYWORDS="amd64"                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                              
CFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -s"                           
CHOST="x86_64-pc-linux-gnu"                                                               
CONFIG_PROTECT="/etc"                                                                     
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                  
CXXFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -s"                         
DISTDIR="/usr/portage/distfiles"                                                          
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                      
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                               
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"                              
LINGUAS="en en_US"                                                                        
PKGDIR="/usr/portage/packages"                                                            
PORTAGE_CONFIGROOT="/"                                                                    
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                
PORTAGE_TMPDIR="/var/tmp"                                                                 
PORTDIR="/usr/portage"                                                                    
PORTDIR_OVERLAY="/usr/local/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt dbus dri dts dvb dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gtk hal iconv ieee1394 isdnlog jpeg libnotify lirc lzma lzo mad mailwrapper mikmod mmap mmx mmxext modules mp3 mp4 mpeg mudflap multilib mysql mythtv ncurses nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 readline reflection rtc session spl sse sse2 sse3 ssl startup-notification svg sysfs threads thunar tiff truetype unicode usb vdpau vim-syntax vorbis x264 xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Karsten Renhak 2009-11-10 07:53:55 UTC
can confirm this behavior on a x86 system

here's the rdiff-backup output when I backing up on an remote machine via SSH:

/usr/lib/python2.6/site-packages/rdiff_backup/SetConnections.py:148: DeprecationWarning: os.popen2 is deprecated.  Use the subprocess module.
  stdin, stdout = os.popen2(remote_cmd)

 emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 09 Nov 2009 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-ilmenau.de/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi activefilter additions adns alsa bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cdparanoia cdr chm cli connectionstatus consolekit cracklib crypt css cups custom-optimization dahdi dbus directfb divx dri dts dvd dvdnav dvdr dvdread ebook emboss emf enca encode evo exif extra fam fastcgi fbcon ffmpeg firefox flac foomaticdb fortran fping fpx ftp gammu gd gdbm geoip gif git glitz gmedia gpm graphics graphviz gs gstreamer gzip h323 hal handbook history humanities iconv idn imagemagick inotify ipv6 jabber java java5 java6 jbig jce jingle jpeg jpeg2k kde kdehiddenvisibility kerberos kipi kpathsea lame lastfm latex lcms libnotify lm_sensors logrotate mad matroska mbox md5sum midi mikmod mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli ncurses nls nodrm nptl nptlonly nsplugin ntfs obex ogg omega opengl openmp oscar pam pcre pdf perl plotutils png postscript ppds pppd publishers python qt3support qt4 quicktime quotas rar rdesktop rdp readline realmedia reflection samba science scrobbler sdl session sip slang slp smbclient speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sysfs syslog taglib tcpd templates tex4ht theora threadsafe thunar tiff tk truetype type1 unicode usb vim-syntax vorbis wav webkit win32codecs wma wmf wmp x264 x86 xattr xcomposite xetex xface xine xinerama xml xorg xosd xscreensaver xterm xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Alexander Hoogerhuis 2009-12-12 09:50:38 UTC
I'll second this, I have a few hundred rdiff-backup jobs and this is clogging up the mailbox takingcare of the crontabs.
Comment 3 Mike Williams 2010-01-15 10:35:48 UTC
Created attachment 216585 [details, diff]
Patch for the os.popen2 DeprecationWarning

This is the patch I've been using to keep rdiff-backup-1.2.8 quiet.
Comment 4 Mike Williams 2010-01-15 10:36:28 UTC
Created attachment 216587 [details, diff]
Modified ebuild to apply patch

And this is the modification I made to the ebuild to apply it.
Comment 5 Alexander Hoogerhuis 2010-01-17 15:01:02 UTC
Just wanted to add a "me too", the patches work just fine for me. :)
Comment 6 Alexander Hoogerhuis 2010-06-12 14:07:41 UTC
It's been half a year, is there no way to get this patch rolled into a -r1 realease?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-07-20 16:30:28 UTC
InCVS.