Did some more debugging bzr-0.6/bzrlib/trace.py
def open_tracefile(tracefilename='~/.bzr.log'): print "before codecs.open", trace_fname tf = codecs.open(trace_fname, 'at', 'utf8', buffering=1) print "after codecs.open" before codecs.open /home/tanner/.bzr.log No handlers could be found for logger "bzr" Traceback (most recent call last): File "./bzr", line 63, in ? bzrlib.trace.enable_default_logging() File "/tmp/bzr-0.6/bzrlib/trace.py", line 211, in enable_default_logging _file_handler.setLevel(level) AttributeError: 'NoneType' object has no attribute 'setLevel' The tf = codecs.open(trace_fname, 'at', 'utf8', buffering=1) is throwing an exception! In pbuilder-sarge, ~/.bzr.log, expands to /home/tanner/.bzr.log, but that doesn't exist. Demo with interactive python # python2.4 Python 2.4.1 (#2, May 5 2005, 11:32:06) [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import codecs >>> tf = codecs.open('/home/tanner/bzr.log', 'at', 'utf8', buffering=1) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/codecs.py", line 607, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: '/home/tanner/bzr.log' Not sure why this exception isn't being caught nor why this work under pbuilder running sid. To test I did the following. trace_fname = os.path.join(os.path.expanduser(tracefilename)) to trace_fname = os.path.join(os.path.expanduser('/var/tmp/bzr.log')) Bingo! Ran 488 tests in 21.470s Off to look at why this does -not- fail under pbuilder-sid. -- Bob Tanner <[EMAIL PROTECTED]> | Phone : (952)943-8700 http://www.real-time.com, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]