Bug#791469: apt-get upgrade generates Python errors
Hi, On Sun, 05 Jul 2015, Julian Andres Klode wrote: Control: tag -1 squeeze Raphaël: Seems your aptdaemon upload to squeeze-lts broke things, as the Python version is too old (needs a from __future__ import with_statement at the top to fix, for example). Oops, sorry for this. This problem only happens when you have Python 2.5 installed, and in my tests, I had only Python 2.6 installed (the default version). Do you think I should rather tag the package as only usable with Python 2.6 or use import from __future__ ? Anyway, I'll take care of this shortly. Cheers, -- Raphaël Hertzog ◈ Debian Developer Support Debian LTS: http://www.freexian.com/services/debian-lts.html Learn to master Debian: http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#791469: apt-get upgrade generates Python errors
Control: reassign -1 python-aptdaemon 0.31+bzr413-1.1+deb6u1 On Sun, 2015-07-05 at 09:06 -0400, Bruce Momjian,,, wrote: Running apt-get upgrade or apt-get purge generates this Python error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python-aptdaemon (0.31+bzr413-1.1+deb6u1) ... /usr/lib/python2.5/site-packages/aptdaemon/worker.py:811: Warning: 'with' will become a reserved keyword in Python 2.6 Compiling /usr/lib/python2.5/site-packages/aptdaemon/worker.py ... File /usr/lib/python2.5/site-packages/aptdaemon/worker.py, line 811 with set_euid_egid(trans.uid, trans.gid): ^ SyntaxError: invalid syntax pycentral: pycentral pkginstall: error byte-compiling files (12) pycentral pkginstall: error byte-compiling files (12) That error is being generated by the python-aptdaemon package's postinstall script, not apt; reassigning. Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#791469: apt-get upgrade generates Python errors
Package: apt Version: 0.8.10.3+squeeze7 Severity: grave Justification: renders package unusable Running apt-get upgrade or apt-get purge generates this Python error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python-aptdaemon (0.31+bzr413-1.1+deb6u1) ... /usr/lib/python2.5/site-packages/aptdaemon/worker.py:811: Warning: 'with' will become a reserved keyword in Python 2.6 Compiling /usr/lib/python2.5/site-packages/aptdaemon/worker.py ... File /usr/lib/python2.5/site-packages/aptdaemon/worker.py, line 811 with set_euid_egid(trans.uid, trans.gid): ^ SyntaxError: invalid syntax pycentral: pycentral pkginstall: error byte-compiling files (12) pycentral pkginstall: error byte-compiling files (12) dpkg: error processing python-aptdaemon (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports dpkg: dependency problems prevent configuration of aptdaemon: aptdaemon depends on python-aptdaemon (= 0.31+bzr413-1.1+deb6u1); however: Package python-aptdaemon is not configured yet. dpkg: error processing aptdaemon (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-aptdaemon-gtk: python-aptdaemon-gtk depends on python-aptdaemon (= 0.31+bzr413-1.1+deb6u1); however: Package python-aptdaemon is not configured yet. dpkg: error processing python-aptdaemon-gtk (--configure): dependency problems - leaving unconfigured configured to not write apport reports configured to not write apport reports Errors were encountered while processing: python-aptdaemon aptdaemon python-aptdaemon-gtk E: Sub-process /usr/bin/dpkg returned an error code (1) The upgrade or purge fails. -- Package-specific info: -- apt-config dump -- APT ; APT::Architecture amd64; APT::Build-Essential ; APT::Build-Essential:: build-essential; APT::Install-Recommends true; APT::Install-Suggests 0; APT::Acquire ; APT::Acquire::Translation environment; APT::Authentication ; APT::Authentication::TrustCDROM true; APT::NeverAutoRemove ; APT::NeverAutoRemove:: ^firmware-linux.*; APT::NeverAutoRemove:: ^linux-firmware$; APT::NeverAutoRemove:: ^linux-image.*; APT::NeverAutoRemove:: ^kfreebsd-image.*; APT::NeverAutoRemove:: ^linux-restricted-modules.*; APT::NeverAutoRemove:: ^linux-ubuntu-modules-.*; APT::Never-MarkAuto-Sections ; APT::Never-MarkAuto-Sections:: metapackages; APT::Never-MarkAuto-Sections:: restricted/metapackages; APT::Never-MarkAuto-Sections:: universe/metapackages; APT::Never-MarkAuto-Sections:: multiverse/metapackages; APT::Never-MarkAuto-Sections:: oldlibs; APT::Never-MarkAuto-Sections:: restricted/oldlibs; APT::Never-MarkAuto-Sections:: universe/oldlibs; APT::Never-MarkAuto-Sections:: multiverse/oldlibs; APT::Periodic ; APT::Periodic::Update-Package-Lists 1; APT::Periodic::Download-Upgradeable-Packages 0; APT::Periodic::AutocleanInterval 0; APT::Update ; APT::Update::Post-Invoke ; APT::Update::Post-Invoke:: touch /var/lib/apt/periodic/update-success-stamp 2/dev/null || true; APT::Update::Post-Invoke-Success ; APT::Update::Post-Invoke-Success:: [ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true; APT::Archives ; APT::Archives::MaxAge 30; APT::Archives::MinAge 2; APT::Archives::MaxSize 500; Dir /; Dir::State var/lib/apt/; Dir::State::lists lists/; Dir::State::cdroms cdroms.list; Dir::State::mirrors mirrors/; Dir::State::extended_states extended_states; Dir::State::status /var/lib/dpkg/status; Dir::Cache var/cache/apt/; Dir::Cache::archives archives/; Dir::Cache::srcpkgcache srcpkgcache.bin; Dir::Cache::pkgcache pkgcache.bin; Dir::Etc etc/apt/; Dir::Etc::sourcelist sources.list; Dir::Etc::sourceparts sources.list.d; Dir::Etc::vendorlist vendors.list; Dir::Etc::vendorparts vendors.list.d; Dir::Etc::main apt.conf; Dir::Etc::netrc auth.conf; Dir::Etc::parts apt.conf.d; Dir::Etc::preferences preferences; Dir::Etc::preferencesparts preferences.d; Dir::Etc::trusted trusted.gpg; Dir::Etc::trustedparts trusted.gpg.d; Dir::Bin ; Dir::Bin::methods /usr/lib/apt/methods; Dir::Bin::dpkg /usr/bin/dpkg; Dir::Media ; Dir::Media::MountPath /media/cdrom; Dir::Log var/log/apt;
Bug#791469: apt-get upgrade generates Python errors
Control: tag -1 squeeze Raphaël: Seems your aptdaemon upload to squeeze-lts broke things, as the Python version is too old (needs a from __future__ import with_statement at the top to fix, for example). On Sun, Jul 05, 2015 at 02:22:44PM +0100, Adam D. Barratt wrote: Control: reassign -1 python-aptdaemon 0.31+bzr413-1.1+deb6u1 On Sun, 2015-07-05 at 09:06 -0400, Bruce Momjian,,, wrote: Running apt-get upgrade or apt-get purge generates this Python error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python-aptdaemon (0.31+bzr413-1.1+deb6u1) ... /usr/lib/python2.5/site-packages/aptdaemon/worker.py:811: Warning: 'with' will become a reserved keyword in Python 2.6 Compiling /usr/lib/python2.5/site-packages/aptdaemon/worker.py ... File /usr/lib/python2.5/site-packages/aptdaemon/worker.py, line 811 with set_euid_egid(trans.uid, trans.gid): ^ SyntaxError: invalid syntax pycentral: pycentral pkginstall: error byte-compiling files (12) pycentral pkginstall: error byte-compiling files (12) That error is being generated by the python-aptdaemon package's postinstall script, not apt; reassigning. Regards, Adam -- To UNSUBSCRIBE, email to deity-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1436102564.7865.2.ca...@adam-barratt.org.uk -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. Be friendly, do not top-post, and follow RFC 1855 Netiquette. - If you don't I might ignore you. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org