﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
2242	exception from parsing requirements	zooko		"as reported by ambimorph on IRC:

{{{
amber@abhyasa:~/tahoe-lafs$ bin/tahoe @python-coverage run --branch --include='src/allmydata/*' @tahoe debug trial allmydata.test.test_cli
Traceback (most recent call last):
  File ""/usr/bin/python-coverage"", line 5, in <module>
    from pkg_resources import load_entry_point
  File ""/home/amber/tahoe-lafs/support/lib/python2.7/site-packages/setuptools-0.6c16dev4.egg/pkg_resources.py"", line 2638, in <module>
    working_set.add(dist)
  File ""/home/amber/tahoe-lafs/support/lib/python2.7/site-packages/setuptools-0.6c16dev4.egg/pkg_resources.py"", line 532, in add
    for thisreq in parse_requirements(thisreqstr):
  File ""/home/amber/tahoe-lafs/support/lib/python2.7/site-packages/setuptools-0.6c16dev4.egg/pkg_resources.py"", line 2451, in parse_requirements
    raise ValueError(""Missing distribution spec"", line)
ValueError: ('Missing distribution spec', '=', {'thisreqstr': '='})
}}}

Investigation showed the the {{{__requires___}}} variable held a string ({{{""coverage==3.4""}}} instead of an iterable containing strings, therefor [https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/setuptools-0.6c16dev4.egg/pkg_resources.py?annotate=blame&rev=5ab27f58cc35bc2abc87822798460021b9785e36#L527 this code] in our splinter of setuptools tried to parse each character of that string."	defect	new	normal	soon	packaging	1.10.0		setuptools pkg_resources coverage		
