﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1355	bug in error path of cross_check_pkg_resources_versus_import	warner	warner	"Jimmy Tang [http://tahoe-lafs.org/pipermail/tahoe-dev/2011-February/006074.html wrote] to the mailing list with a crash on his Archlinux box.

{{{
  File ""/home/jtang/tmp/tahoe-lafs/src/allmydata-tahoe-1.8.2/src/allmydata/__init__.py"",
line 301, in cross_check_pkg_resources_versus_import
    % (imp_ver, name, imp_loc, pr_ver, pr_loc, e.__class__.name, e))
AttributeError: type object 'exceptions.TypeError' has no attribute 'name'
    Aborting...
}}}

I don't know if this is a real error path, or if it's just accumulating a bunch of warnings to print to stderr (i.e. if we just took out the offending line, would the program work anyways, or is the missing/old/unable-to-compute-version dependency actually important?).

This sort of problem reinforces my feeling that our {{{__init__.py}}} is way too complex, and that all the version-checking logic may be doing more harm than good.

This may provoke a 1.8.3, if it happens frequently enough. If the bad {{{e.__class__.name}}} is only triggered under weird combinations of installed dependencies, then we might be able to put it off until 1.9.0 .

"	defect	closed	critical	1.9.0	code	1.8.2	fixed	regression		
