distlib.locators.locate() raising an AttributeError for django-recaptcha-field 1.0b2

Issue #59 closed
Brett Cannon
created an issue
  File "caniusepython3/dependencies.py", line 80, in blocking_dependencies
    dist = distlib.locators.locate(project)
  File "/Users/bcannon/Repositories/caniusepython3/py27_venv/lib/python2.7/site-packages/distlib/locators.py", line 364, in locate
    result.download_urls = versions.get('urls', {}).get(version, set())
AttributeError: 'dict' object has no attribute 'download_urls'

It looks like that the slist in locate() becomes only ['urls'], which leads to that being the key used to look into {u'1.0b1': <Distribution django-recaptcha-field (1.0b1) [http://pypi.python.org/packages/source/d/django-recaptcha-field/django-recaptcha-field-1.0b1.tar.gz]>, u'1.0b2': <Distribution django-recaptcha-field (1.0b2) [http://pypi.python.org/packages/source/d/django-recaptcha-field/django-recaptcha-field-1.0b2.tar.gz]>, 'digests': {}, 'urls': {u'1.0b1': set([u'http://pypi.python.org/packages/source/d/django-recaptcha-field/django-recaptcha-field-1.0b1.tar.gz']), u'1.0b2': set([u'http://pypi.python.org/packages/source/d/django-recaptcha-field/django-recaptcha-field-1.0b2.tar.gz'])}}. That leads to a dict being returned instead of a Distribution instance.

Comments (1)

  1. Log in to comment