Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #352096

Bug#1057921: offlineimap: NameError: name 'fcntl' is not defined

From Sebastian Ramacher <sramacher@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1057921: offlineimap: NameError: name 'fcntl' is not defined
Date 2023-12-10 19:10 +0100
Message-ID <HJwpz-cFfG-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: offlineimap
Version: 7.3.3+dfsg1-1+0.0~git20231201.77e70ed+dfsg-1
Severity: grave
X-Debbugs-Cc: sramacher@debian.org

offlineimap no longer works after the last upgrade due to a missing
import.

$ offlineimap -a mailhost
OfflineIMAP 8.0.0
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v3.05, Python v3.11.7, OpenSSL 3.1.4 24 Oct 2023
*** Processing account mailhost
Establishing connection to tunnel:ssh -i /home/sebastian/.ssh/offlineimap -C -q mailhost -S none '/usr/bin/imapd ./Maildir' (mailhost_imap)
ERROR: While attempting to sync account 'mailhost'
  name 'fcntl' is not defined
*** Finished account 'mailhost' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'mailhost'
  NameError: name 'fcntl' is not defined


Traceback:
  File "/usr/share/offlineimap3/offlineimap/accounts.py", line 298, in syncrunner
    self.__sync()
  File "/usr/share/offlineimap3/offlineimap/accounts.py", line 375, in __sync
    remoterepos.getfolders()
  File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 698, in getfolders
    imapobj = self.imapserver.acquireconnection()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 552, in acquireconnection
    imapobj = imaplibutil.IMAP4_Tunnel(
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/offlineimap3/offlineimap/imaplibutil.py", line 133, in __init__
    IMAP4.__init__(self, tunnelcmd, **kwargs)
  File "/usr/lib/python3/dist-packages/imaplib2.py", line 336, in __init__
    self.open(host, port)
  File "/usr/share/offlineimap3/offlineimap/imaplibutil.py", line 145, in open
    self.set_nonblocking(self.read_fd)
  File "/usr/share/offlineimap3/offlineimap/imaplibutil.py", line 151, in set_nonblocking
    fl = fcntl.fcntl(fd, fcntl.F_GETFL)
         ^^^^^

Cheers

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (650, 'unstable-debug'), (650, 'unstable'), (601, 'testing'), (600, 'experimental-debug'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages offlineimap depends on:
ii  offlineimap3  0.0~git20231201.77e70ed+dfsg-1

offlineimap recommends no packages.

offlineimap suggests no packages.

-- no debconf information

-- 
Sebastian Ramacher

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1057921: offlineimap: NameError: name 'fcntl' is not defined Sebastian Ramacher <sramacher@debian.org> - 2023-12-10 19:10 +0100
  Bug#1057921: marked as done (offlineimap: NameError: name 'fcntl'  is not defined) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2023-12-19 13:10 +0100

csiph-web