Your message dated Thu, 25 Jun 2009 22:47:03 +0000
with message-id <[email protected]>
and subject line Bug#534608: fixed in rednotebook 0.7.4-1
has caused the Debian Bug report #534608,
regarding rednotebook: exception on first run
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
534608: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534608
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rednotebook
Version: 0.7.3-1
Severity: important
Tags: patch

If the ~/.rednotebook directory does not already exist, RedNotebook raises an
exception when trying to initialise logging:

Traceback (most recent call last):
  File "/usr/bin/rednotebook", line 7, in <module>
    import rednotebook.redNotebook
  File "/usr/share/rednotebook/rednotebook/redNotebook.py", line 55, in <module>
    filemode='w',
  File "/usr/lib/python2.5/logging/__init__.py", line 1240, in basicConfig
    hdlr = FileHandler(filename, mode)
  File "/usr/lib/python2.5/logging/__init__.py", line 770, in __init__
    stream = open(filename, mode)
IOError: [Errno 2] No such file or directory: 
'/home/jona/.rednotebook/rednotebook.log'

The attached patch checks at startup whether the directory exists, and creates
it if necessary just before loading the core redNotebook module.




-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rednotebook depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-glade2                 2.14.1-3   GTK+ bindings: Glade support
ii  python-gobject                2.16.1-1   Python bindings for the GObject li
ii  python-gtk2                   2.14.1-3   Python bindings for the GTK+ widge
ii  python-support                1.0.3      automated rebuilding support for P
ii  python-yaml                   3.08-1     YAML parser and emitter for Python

rednotebook recommends no packages.

rednotebook suggests no packages.

-- no debconf information
--- rednotebook-0.7.3/rednotebook/rednotebook.old	2009-06-25 19:04:07.000000000 +0100
+++ rednotebook-0.7.3/rednotebook/rednotebook	2009-06-25 19:04:19.000000000 +0100
@@ -4,5 +4,12 @@
 import sys
 sys.path.insert(0, '/usr/lib/python2.5/site-packages')
 
+# if this is the first run, check the .rednotebook data directory is in place
+# so that logging can take place
+import os
+logDir = os.path.join(os.path.expanduser('~'), '.rednotebook')
+if not os.path.exists(logDir):
+        os.makedirs(logDir)
+
 import rednotebook.redNotebook
 rednotebook.redNotebook.main()

--- End Message ---
--- Begin Message ---
Source: rednotebook
Source-Version: 0.7.4-1

We believe that the bug you reported is fixed in the latest version of
rednotebook, which is due to be installed in the Debian FTP archive:

rednotebook_0.7.4-1.diff.gz
  to pool/main/r/rednotebook/rednotebook_0.7.4-1.diff.gz
rednotebook_0.7.4-1.dsc
  to pool/main/r/rednotebook/rednotebook_0.7.4-1.dsc
rednotebook_0.7.4-1_all.deb
  to pool/main/r/rednotebook/rednotebook_0.7.4-1_all.deb
rednotebook_0.7.4.orig.tar.gz
  to pool/main/r/rednotebook/rednotebook_0.7.4.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonathan Wiltshire <[email protected]> (supplier of updated rednotebook 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 25 Jun 2009 23:19:43 +0100
Source: rednotebook
Binary: rednotebook
Architecture: source all
Version: 0.7.4-1
Distribution: unstable
Urgency: low
Maintainer: Jonathan Wiltshire <[email protected]>
Changed-By: Jonathan Wiltshire <[email protected]>
Description: 
 rednotebook - daily journal with calendar, templates and keyword searching
Closes: 534608
Changes: 
 rednotebook (0.7.4-1) unstable; urgency=low
 .
   * [309859] New upstream version:
     - create ~/.rednotebook before logging is initialized
       (Closes: #534608, LP: #392235)
Checksums-Sha1: 
 db3a599a1b59846239a60bbdc1e05a3b32adbd65 1214 rednotebook_0.7.4-1.dsc
 62e58c48f4bc18158709ea1de39f1d625e543a69 242520 rednotebook_0.7.4.orig.tar.gz
 e524355eaac8b9727466b97cc865d22ce97e3f8c 3694 rednotebook_0.7.4-1.diff.gz
 b270191517e6dc0ee74212f6ab997d02b77e4c6c 240518 rednotebook_0.7.4-1_all.deb
Checksums-Sha256: 
 16a5369b2378f08b641926bb4b98e0c122136951818c5297b08d45f9f499b849 1214 
rednotebook_0.7.4-1.dsc
 d5abb2c158547619f07396f1ea0f9ee53fbad138e9e5591de3116dfbc90daea5 242520 
rednotebook_0.7.4.orig.tar.gz
 c1ec1ccb1fbd6508e0d76bd0bcd09b99ef5d91305e2dc0aed20376a7be782769 3694 
rednotebook_0.7.4-1.diff.gz
 d788825f9fb425379ad2db6ff648a7bbd85a038d421fc3dd16d0a6dab469a622 240518 
rednotebook_0.7.4-1_all.deb
Files: 
 9c75e2498892b0c75d06bf1ed95b2d9f 1214 text optional rednotebook_0.7.4-1.dsc
 6bebe58e4fc34889e711a9876d5cdf3b 242520 text optional 
rednotebook_0.7.4.orig.tar.gz
 329d0ffe761d6ace1e33f7edb9cf579e 3694 text optional rednotebook_0.7.4-1.diff.gz
 ec817212a653978437696448ce48a692 240518 text optional 
rednotebook_0.7.4-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpD+rUACgkQB01zfu119ZlXjACgtegDJUFWVH3ENlVpeM2tKy3/
PKQAn0Q0YTjyjS9/hJ7CGA2rIWFfmGct
=Lh1a
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to