Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390049 - net-mail/offlineimap-6.3.2.2 fails with dev-lang/python-2.7.2-r3
Summary: net-mail/offlineimap-6.3.2.2 fails with dev-lang/python-2.7.2-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 01:16 UTC by Shaun Attfield
Modified: 2011-11-10 09:36 UTC (History)
2 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 Shaun Attfield 2011-11-10 01:16:36 UTC
After upgrading to dev-lang/python-2.7.2-r3 (from 2.7.1-r1 I think), net-mail/offlineimap-6.3.2.2 throws an error while syncing - but appears to still complete the sync as expected.

This happens no matter what the sync needs to do, even when nothing needs to be done.

The error message is:
WARNING: Error occured attempting to sync account shadow1: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 190, in syncrunner
    self.sync(siglistener)
  File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 269, in sync
    remoterepos.holdordropconnections()
  File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 71, in holdordropconnections
    self.dropconnections()
  File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 74, in dropconnections
    self.imapserver.close()
  File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 342, in close
    imapobj.logout()
  File "/usr/lib/python2.7/imaplib.py", line 537, in logout
    self.shutdown()
  File "/usr/lib/python2.7/imaplib.py", line 1187, in shutdown
    self.file.close()
  File "/usr/lib/python2.7/imaplib.py", line 214, in __getattr__
    raise AttributeError("Unknown IMAP4 command: '%s'" % attr)
AttributeError: Unknown IMAP4 command: 'file'

***** Finished processing account shadow1

This did not happen with previous versions of Python.

Googling the AttributeError line shows the issue to be widespread, with Ubuntu, Debian, and OS X, in the top results.

Upgrading to net-mail/offlineimap-6.3.4 (~) fixes the issue and works reliable, will file a stabilization request for that as well.


Reproducible: Always

Steps to Reproduce:
1. Update dev-lang/python to 2.7.2-r3
2. Run offlineimap to sync mailbox(s)
3. Observer error.
Actual Results:  
offlineimap appears to sync the mailbox correctly, but gives an error/warning message and traceback about "Unknown IMAP4 command: 'file'"

Expected Results:  
offlineimap should not give a scary error message and traceback.

This problem has been observed on amd64, x86, and hardened x86, Pentium4, Core2, and Atom.

emerge --info from one of the machines.
Portage 2.1.10.11 (hardened/linux/x86, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-hardened-r4 i686)
=================================================================
System uname: Linux-3.0.4-hardened-r4-i686-Intel-R-_Celeron-R-_CPU_1.70GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 09 Nov 2011 00:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo local_overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_ZA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_ZA en_GB en_US en_DK"
MAKEOPTS="-j2"
PKGDIR="/var/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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X509 acl acpi ads alsa apache2 aspell aspnet2 async bash-completion berkdb bittorrent boost bzip2 caps cgi chdir clamdtop cli corefonts cracklib crypt ctype cups curl cvs cxx daemon dga discard-path dkim dri escreen exif extensions extras fam fontconfig force-cgi-redirect fts3 gcrypt gd gdbm geoip gmp gnutls gpg gpm gtalk hardened hddtemp hpn http iconv imagemagick imap inotify iostats iproute2 ipv6 ithreads jabber java6 javascript jpeg kerberos ldap libssh2 loop-aes lua maildir masquerade mbox metalink mime mmap mmx moonlight msn mudflap mysql mysqli mysqlnd ncurses netboot nfs nntp nptl nptlonly ocamlopt offensive openldap openmp openssl otr pam pax_kernel pcmcia pcre pdf php pic png pop pop3d posix pppd prediction quotas readline rss samba sasl session skey smi smime smtp snmp soap sockets span speedy speex spell spf sqlite sqlite3 srtp sse sse2 ssl svga sysfs sysvipc tcpd threads tidy tk truetype twitter ulog unicode urandom usb userlocales vim-syntax vorbis web webdav webinterface x86 xattr xml xmlreader xmlrpc xmlwriter xorg xsl zip zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgid log_forensic" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog apache bind conntrack contextswitch cpu curl curl_json curl_xml dbi disk dns entropy exec fscache hddtemp iptables logfile mysql netlink network nfs ntpd openvpn ping processes protocols sensors snmp tail tcpconns thermal unixsock uptime users uuid vmem" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_ZA en_GB en_US en_DK" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="niash net test" USERLAND="GNU" VIDEO_CARDS="intel vesa" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Kahle (RETIRED) gentoo-dev 2011-11-10 09:33:58 UTC
This is fixed in 6.3.4 which is being stabilized in bug 390051.  Please comment on the stable bug if you have trouble with 6.3.4.  Thanks.
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2011-11-10 09:36:20 UTC
(In reply to comment #1)
> This is fixed in 6.3.4 which is being stabilized in bug 390051.  Please comment
> on the stable bug if you have trouble with 6.3.4.  Thanks.

Sorry, bug 389703 I mean.