Package: xword
Version: 2.0.0~rc2-1
Severity: normal

Dear Maintainer,

xword will not open NY Times crossword puzzles. The following is the error:
$ xword
Traceback (most recent call last):
  File "/usr/share/games/xword/organizer.py", line 102, in init
    self.model.create_model(pbar.set_fraction, self.is_done)
  File "/usr/share/games/xword/model.py", line 166, in create_model
    (squares, date, title, source) = analyze_puzzle(p, f)
  File "/usr/share/games/xword/model.py", line 66, in analyze_puzzle
    (date, title) = analyze_NYTimes_puzzle(p, f)
  File "/usr/share/games/xword/model.py", line 98, in analyze_NYTimes_puzzle
    date = datetime.datetime.strptime(dateStr, '%a, %b %d, %Y')
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'Tuesday, December 17, 2013' does not match format '%a, 
%b %d, %Y'

I was able to fix this by changing line 98 in model.py from: 
date = datetime.datetime.strptime(dateStr, '%a, %b %d, %Y')
to:
date = datetime.datetime.strptime(dateStr, '%A, %B %d, %Y')
Since NY Times now uses the full words, e.g. Wednesday and December (not 
abbreviations e.g. Wed and Dec) for the titles.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xword depends on:
ii  python       2.7.5-5
ii  python-gtk2  2.24.0-3+b1
ii  python-wnck  2.32.0+dfsg-3

xword recommends no packages.

xword suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to