Your message dated Sun, 3 Jul 2016 11:22:15 +0200 with message-id <[email protected]> and subject line closing bugs reported against ancient python versions has caused the Debian Bug report #469983, regarding python2.5: redirecting stderr affects stdout to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 469983: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469983 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python2.5 Version: 2.5-5 There is an obvious difference between redirecting stderr of the following example on unstable (python2.5 2.5.2-1) and current stable (python2.5 2.5-5), and I expect the correct behaviour to be just like on unstable - shown below. Short subprocess.call example: ---------------------------------------------------------------------- #!/usr/bin/python2.5 import subprocess, os def main(): try: # stdout only. ret = subprocess.call(['/usr/bin/scp', '-B', 'remoteuser@remotehost:/remote/largefile', '.'], stderr=subprocess.STDOUT) except OSError, e: print 'err: %s' % e if __name__ == '__main__': main() ---------------------------------------------------------------------- Let the script be called myscript.py. No redirection on unstable and stable is the same: ./myscript.py largefile 0 0.0KB/s --:-- ETA ... and it works like expected, stdout of the subprocess -> python is printed on the terminal. The difference: Redirecting stderr on unstable: ./myscript.py 2>stderrlog largefile 0 0.0KB/s --:-- ETA Redirecting stderr on stable: ./myscript.py 2>stderrlog ... nothing! Where is python's stdout? Second try: ./myscript.py >/dev/stdout 2>stderrlog .. nothing! Where is python's stdout? Permissions are correct, stderrlog was writable in all cases. I have tried this on multiple stable installations with the above mentioned stable python2.5 package version, with the same result. Further version details: Stable in the above test: ---------------------------------------------------------------------- $ dpkg --list python2.5 libc6 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==========================-==========================-==================================================================== ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries ii python2.5 2.5-5 An interactive high-level object-oriented language (version 2.5) $ dpkg --status python2.5 libc6 Package: python2.5 Status: install ok installed Priority: optional Section: python Installed-Size: 12764 Maintainer: Matthias Klose <[email protected]> Architecture: amd64 Version: 2.5-5 Replaces: python2.5-minimal (<< 2.5), python2.5-dev (<< 2.4.3-4), idle-python2.5 (<< 2.4.3+2.5b2-2), python-tk (<< 2.4.3-2) Provides: python2.5-cjkcodecs, python2.5-ctypes, python2.5-elementtree, python2.5-celementtree Depends: python2.5-minimal (= 2.5-5), mime-support, libbz2-1.0, libc6 (>= 2.3.5-1), libdb4.4, libncursesw5 (>= 5.4-5), libreadline5 (>= 5.2), libsqlite3-0 (>= 3.3.8), libssl0.9.8 (>= 0.9.8c-1) Suggests: python2.5-doc, python-profiler Conflicts: python-central (<< 0.5.9), idle-python2.5 (<< 2.4.3+2.5b2-2), python-tk (<< 2.4.3-2) Description: An interactive high-level object-oriented language (version 2.5) Version 2.5 of the high-level, interactive object oriented language, includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Python-Version: 2.5 Package: libc6 Status: install ok installed Priority: required Section: libs Installed-Size: 9564 Maintainer: GNU Libc Maintainers <[email protected]> Architecture: amd64 Source: glibc Version: 2.3.6.ds1-13etch5 Replaces: ldso (<= 1.9.11-9), timezone, timezones, gconv-modules, libtricks, netkit-rpc, netbase (<< 4.0) Provides: glibc-2.3.6.ds1-1, glibc-2.3.6-2 Depends: tzdata Suggests: locales, glibc-doc Conflicts: strace (<< 4.0-0), libnss-db (<= 2.2-6.1.1), timezone, timezones, gconv-modules, libtricks, libc6-doc, netkit-rpc, wine (<< 0.0.20031118-1), cyrus-imapd (<< 1.5.19-15), e2fsprogs (<< 1.35-7), initrd-tools (<< 0.1.84.1), libterm-readline-gnu-perl (<< 1.15-2) Conffiles: /etc/init.d/glibc.sh ca952513debfaac9fd05046913af8284 /etc/ld.so.conf.d/x86_64-linux-gnu.conf 593ad12389ab2b6f952e7ede67b8fbbf Description: GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. ---------------------------------------------------------------------- Unstable in the above test: ---------------------------------------------------------------------- $ dpkg --list python2.5 libc6 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=======================-=======================-============================================================== ii libc6 2.7-9 GNU C Library: Shared libraries ii python2.5 2.5.2-1 An interactive high-level object-oriented language (version 2. $ dpkg --status python2.5 libc6 Package: python2.5 Status: install ok installed Priority: optional Section: python Installed-Size: 10676 Maintainer: Matthias Klose <[email protected]> Architecture: amd64 Version: 2.5.2-1 Replaces: idle-python2.5 (<< 2.4.3+2.5b2-2), python-tk (<< 2.4.3-2), python2.5-dev (<< 2.5.1), python2.5-minimal (<< 2.5) Provides: python2.5-celementtree, python2.5-cjkcodecs, python2.5-ctypes, python2.5-elementtree, python2.5-wsgiref Depends: libbz2-1.0, libc6 (>= 2.7-1), libdb4.5 (>= 4.5.20-3), libncursesw5 (>= 5.6+20071006-3), libreadline5 (>= 5.2), libsqlite3-0 (>= 3.5.6), libssl0.9.8 (>= 0.9.8f-5), mime-support, python2.5-minimal (= 2.5.2-1) Suggests: python-profiler, python2.5-doc Conflicts: idle-python2.5 (<< 2.4.3+2.5b2-2), python-central (<< 0.5.9), python-tk (<< 2.4.3-2) Description: An interactive high-level object-oriented language (version 2.5) Version 2.5 of the high-level, interactive object oriented language, includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Python-Version: 2.5 Package: libc6 Status: install ok installed Priority: required Section: libs Installed-Size: 11448 Maintainer: GNU Libc Maintainers <[email protected]> Architecture: amd64 Source: glibc Version: 2.7-9 Provides: glibc-2.7-1 Depends: libgcc1 Suggests: locales, glibc-doc Conflicts: libterm-readline-gnu-perl (<< 1.15-2), tzdata (<< 2007k-1) Conffiles: /etc/init.d/glibc.sh ce55541f2b38719f6eba57abe9f23603 /etc/ld.so.conf.d/x86_64-linux-gnu.conf 593ad12389ab2b6f952e7ede67b8fbbf /etc/ld.so.conf.d/libc.conf d4d833fd095fb7b90e1bb4a547f16de6 /etc/gai.conf b0b535eb2d4a67d0eb698d9160691103 /etc/bindresvport.blacklist db84c47f31f8d5a334a4053d8368e902 Description: GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. ---------------------------------------------------------------------- Best regards, John Feuerstein <[email protected]>
--- End Message ---
--- Begin Message ---This bug has been reported against an ancient version of python (2.5/3.1), that was last released with Debian 6.0 (squeeze). But even squeeze-lts has now reached end-of-life and is no longer supported. The bug is assumed to be fixed (or no longer relevant) in newer python releases and therefore I'm closing this report now. If the problem is still reproducible in the currently supported versions (python2.7, python3.5/python3.6), feel free to provide more information, reopen and reassign this bug report. Andreas
--- End Message ---

