I get error: "ValueError: hour out of range QThread: Destroyed while thread is still running"

Bug #975256 reported by Rinka Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Backup Gmail
Fix Committed
Undecided
Unassigned

Bug Description

Following is the messages on the command line:
rinka@personal-rinka:~/bin/backup-gmail$./gui.py &
[1] 3184
rinka@personal-rinka:~/bin/backup-gmail$ Traceback (most recent call last):
  File "./gui.py", line 358, in run
    self.func(self.options, self.prog, True)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 526, in doBackup
    backup.backupTo([options.start_date, options.end_date], overwrite, include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 351, in backupTo
    self.doBackup(date_range, include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 338, in doBackup
    self.fetchAllMail(date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 310, in fetchAllMail
    self.fetchAllLabel(date_range, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 299, in fetchAllLabel
    self.fetchMailByLabel(l, date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 222, in fetchMailByLabel
    self.fetchMail(uid, seen, label, size)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 278, in fetchMail
    self.flushFetchMailRequest()
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 269, in flushFetchMailRequest
    self.processMail(rfc[1], *self.fetchBuffer[i])
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 237, in processMail
    fold = time.strftime("%Y-%m", date)
ValueError: hour out of range
Traceback (most recent call last):
  File "./gui.py", line 358, in run
    self.func(self.options, self.prog, True)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 524, in doBackup
    backup.incrementalBackupTo([options.start_date, options.end_date], include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 362, in incrementalBackupTo
    self.doBackup(date_range, include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 338, in doBackup
    self.fetchAllMail(date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 310, in fetchAllMail
    self.fetchAllLabel(date_range, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 299, in fetchAllLabel
    self.fetchMailByLabel(l, date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 222, in fetchMailByLabel
    self.fetchMail(uid, seen, label, size)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 278, in fetchMail
    self.flushFetchMailRequest()
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 269, in flushFetchMailRequest
    self.processMail(rfc[1], *self.fetchBuffer[i])
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 237, in processMail
    fold = time.strftime("%Y-%m", date)
ValueError: hour out of range
QThread: Destroyed while thread is still running

[1]+ Done ./gui.py

Revision history for this message
C Fraire (cfraire) wrote :

Hello. This was fixed by wenjoseph in his revision 6, but never packaged as a download.

You can also look at the following branch for more recent enhancements such as non-ASCII folder name handling, support for non-English locales, and use of pypi keyring for secure password handling:

  https://code.launchpad.net/~cfraire/backup-gmail/devel
  - click the most recent revision number
  - click "download tarball"

Revision history for this message
C Fraire (cfraire) wrote :
Changed in backup-gmail:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.