Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locking fails with TypeError: __init__() got an unexpected keyword argument 'download_dir' #2767

Closed
DrPyser opened this issue Aug 21, 2018 · 1 comment · Fixed by #2935
Closed

Comments

@DrPyser
Copy link

DrPyser commented Aug 21, 2018

Issue description

Locking(pipenv lock --verbose) fails with

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 301, in get_legacy_dependencies
    wheel_cache=self.wheel_cache,
TypeError: __init__() got an unexpected keyword argument 'download_dir'

I expect this is related to #2329, though I don't think it's the same situation(I don't have a setup.py).

Expected result

locking should succeed

Actual result
$ pipenv lock --verbose

Locking [dev-packages] dependencies...
Locking [packages] dependencies...
using sources: [{'url': 'https://pypi.python.org/simple', 'verify_ssl': True, 'name': 'pypi'}]
Using pip: -i https://pypi.python.org/simple

                          ROUND 1                           
Current constraints:
  alembic==0.9.7 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 34))
  amqp==2.2.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 2))
  anyjson==0.3.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 3))
  apipkg==1.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 35))
  appdirs==1.4.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 36))
  arrow==0.10.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 4))
  asgiref==2.2.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 37))
  asn1crypto==0.24.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 5))
  async_timeout==2.0.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 86))
  attrs==17.4.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 38))
  autobahn==18.3.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 39))
  Automat==0.6.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 87))
  Babel==2.4.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 83))
  backports_abc==0.5 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 84))
  bcrypt==3.1.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 6))
  billiard==3.5.0.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 7))
  bingads==11.12.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 8))
  bitarray==0.8.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 9))
  certifi==2017.11.5 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 10))
  cffi==1.11.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 11))
  channels==2.0.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 40))
  channels_redis==2.1.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 100))
  chardet==3.0.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 12))
  click==6.7 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 13))
  constantly==15.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 41))
  contextlib2==0.5.5 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 14))
  coverage==4.4.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 42))
  croniter==0.3.17 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 15))
  cryptography==2.1.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 16))
  Cycler==0.10.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 85))
  daphne==2.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 43))
  decorator==4.1.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 17))
  Django==2.0.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 88))
  django-appconf==1.0.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 44))
  django_compressor==2.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 89))
  django-cors-headers==2.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 45))
  docutils==0.14 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 18))
  dominate==2.3.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 19))
  enum34==1.1.6 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 20))
  execnet==1.4.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 46))
  facebookads==2.11.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 21))
  first==2.0.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 47))
  future==0.16.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 22))
  google-api-python-client==1.7.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 23))
  googleads==12.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 24))
  httplib2==0.10.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 25))
  hyperlink==18.0.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 48))
  hypothesis==3.37.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 49))
  idna==2.6 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 26))
  incremental==17.5.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 50))
  jsonschema==2.5.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 51))
  kombu==4.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 27))
  lockfile==0.12.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 28))
  luigi==2.6.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 29))
  Mako==1.0.7 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 90))
  MarkupSafe==1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 91))
  marshmallow==3.0.0b1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 52))
  marshmallow-sqlalchemy==0.13.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 53))
  matplotlib==2.0.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 30))
  monotonic==1.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 54))
  networkx==1.11 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 31))
  numpy==1.13.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 32))
  oauth2client==4.1.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 33))
  pandas==0.22.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 55))
  pip-tools==1.11.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 56))
  psycopg2==2.7.3.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 57))
  pyasn1==0.4.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 58))
  pyasn1-modules==0.2.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 59))
  pycparser==2.18 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 60))
  PyJWT==1.5.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 92))
  pyOpenSSL==17.5.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 93))
  PySocks==1.6.8 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 94))
  python-daemon==2.1.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 61))
  python-dateutil==2.6.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 62))
  python-editor==1.0.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 63))
  pytz==2018.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 64))
  PyYAML==3.12 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 95))
  raven==6.9.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 65))
  rcssmin==1.0.6 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 66))
  requests==2.18.4 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 67))
  rjsmin==1.0.12 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 68))
  rsa==3.4.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 69))
  service_identity==17.0.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 96))
  simplejson==3.11.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 70))
  six==1.11.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 71))
  SQLAlchemy==1.2.10 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 97))
  SQLAlchemy-Utils==0.32.14 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 98))
  suds-jurko==0.6 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 72))
  tenacity==4.8.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 73))
  tinyrpc==0.8 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 82))
  tornado==4.5.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 74))
  Twisted==17.9.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 99))
  txaio==2.10.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 75))
  uritemplate==3.0.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 76))
  urllib3==1.22 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 77))
  uWSGI==2.0.17.1 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 101))
  xlrd==1.1.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 78))
  xmltodict==0.11.0 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 79))
  yattag==1.9.2 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 80))
  zope.interface==4.4.3 (from -r /tmp/pipenv-jqa7nuj_-requirements/pipenv-pmkvb6x_-constraints.txt (line 81))

Finding the best candidates:
  found candidate alembic==0.9.7 (constraint was ==0.9.7)
  found candidate amqp==2.2.1 (constraint was ==2.2.1)
  found candidate anyjson==0.3.3 (constraint was ==0.3.3)
  found candidate apipkg==1.4 (constraint was ==1.4)
  found candidate appdirs==1.4.3 (constraint was ==1.4.3)
  found candidate arrow==0.10.0 (constraint was ==0.10.0)
  found candidate asgiref==2.2.0 (constraint was ==2.2.0)
  found candidate asn1crypto==0.24.0 (constraint was ==0.24.0)
  found candidate async_timeout==2.0.1 (constraint was ==2.0.1)
  found candidate attrs==17.4.0 (constraint was ==17.4.0)
  found candidate autobahn==18.3.1 (constraint was ==18.3.1)
  found candidate automat==0.6.0 (constraint was ==0.6.0)
  found candidate babel==2.4.0 (constraint was ==2.4.0)
  found candidate backports_abc==0.5 (constraint was ==0.5)
  found candidate bcrypt==3.1.3 (constraint was ==3.1.3)
  found candidate billiard==3.5.0.3 (constraint was ==3.5.0.3)
  found candidate bingads==11.12.3 (constraint was ==11.12.3)
  found candidate bitarray==0.8.1 (constraint was ==0.8.1)
  found candidate certifi==2017.11.5 (constraint was ==2017.11.5)
  found candidate cffi==1.11.4 (constraint was ==1.11.4)
  found candidate channels==2.0.2 (constraint was ==2.0.2)
  found candidate channels_redis==2.1.1 (constraint was ==2.1.1)
  found candidate chardet==3.0.4 (constraint was ==3.0.4)
  found candidate click==6.7 (constraint was ==6.7)
  found candidate constantly==15.1.0 (constraint was ==15.1.0)
  found candidate contextlib2==0.5.5 (constraint was ==0.5.5)
  found candidate coverage==4.4.2 (constraint was ==4.4.2)
  found candidate croniter==0.3.17 (constraint was ==0.3.17)
  found candidate cryptography==2.1.4 (constraint was ==2.1.4)
  found candidate cycler==0.10.0 (constraint was ==0.10.0)
  found candidate daphne==2.1.0 (constraint was ==2.1.0)
  found candidate decorator==4.1.2 (constraint was ==4.1.2)
  found candidate django==2.0.4 (constraint was ==2.0.4)
  found candidate django-appconf==1.0.2 (constraint was ==1.0.2)
  found candidate django_compressor==2.2 (constraint was ==2.2)
  found candidate django-cors-headers==2.1.0 (constraint was ==2.1.0)
  found candidate docutils==0.14 (constraint was ==0.14)
  found candidate dominate==2.3.1 (constraint was ==2.3.1)
  found candidate enum34==1.1.6 (constraint was ==1.1.6)
  found candidate execnet==1.4.1 (constraint was ==1.4.1)
  found candidate facebookads==2.11.3 (constraint was ==2.11.3)
  found candidate first==2.0.1 (constraint was ==2.0.1)
  found candidate future==0.16.0 (constraint was ==0.16.0)
  found candidate google-api-python-client==1.7.3 (constraint was ==1.7.3)
  found candidate googleads==12.1.0 (constraint was ==12.1.0)
  found candidate httplib2==0.10.3 (constraint was ==0.10.3)
  found candidate hyperlink==18.0.0 (constraint was ==18.0.0)
  found candidate hypothesis==3.37.0 (constraint was ==3.37.0)
  found candidate idna==2.6 (constraint was ==2.6)
  found candidate incremental==17.5.0 (constraint was ==17.5.0)
  found candidate jsonschema==2.5.1 (constraint was ==2.5.1)
  found candidate kombu==4.1.0 (constraint was ==4.1.0)
  found candidate lockfile==0.12.2 (constraint was ==0.12.2)
  found candidate luigi==2.6.2 (constraint was ==2.6.2)
  found candidate mako==1.0.7 (constraint was ==1.0.7)
  found candidate markupsafe==1.0 (constraint was ==1.0)
  found candidate marshmallow==3.0.0b1 (constraint was ==3.0.0b1)
  found candidate marshmallow-sqlalchemy==0.13.1 (constraint was ==0.13.1)
  found candidate matplotlib==2.0.2 (constraint was ==2.0.2)
  found candidate monotonic==1.4 (constraint was ==1.4)
  found candidate networkx==1.11 (constraint was ==1.11)
  found candidate numpy==1.13.1 (constraint was ==1.13.1)
  found candidate oauth2client==4.1.2 (constraint was ==4.1.2)
  found candidate pandas==0.22.0 (constraint was ==0.22.0)
  found candidate pip-tools==1.11.0 (constraint was ==1.11.0)
  found candidate psycopg2==2.7.3.2 (constraint was ==2.7.3.2)
  found candidate pyasn1==0.4.2 (constraint was ==0.4.2)
  found candidate pyasn1-modules==0.2.1 (constraint was ==0.2.1)
  found candidate pycparser==2.18 (constraint was ==2.18)
  found candidate pyjwt==1.5.2 (constraint was ==1.5.2)
  found candidate pyopenssl==17.5.0 (constraint was ==17.5.0)
  found candidate pysocks==1.6.8 (constraint was ==1.6.8)
  found candidate python-daemon==2.1.2 (constraint was ==2.1.2)
  found candidate python-dateutil==2.6.1 (constraint was ==2.6.1)
  found candidate python-editor==1.0.3 (constraint was ==1.0.3)
  found candidate pytz==2018.3 (constraint was ==2018.3)
  found candidate pyyaml==3.12 (constraint was ==3.12)
  found candidate raven==6.9.0 (constraint was ==6.9.0)
  found candidate rcssmin==1.0.6 (constraint was ==1.0.6)
  found candidate requests==2.18.4 (constraint was ==2.18.4)
  found candidate rjsmin==1.0.12 (constraint was ==1.0.12)
  found candidate rsa==3.4.2 (constraint was ==3.4.2)
  found candidate service_identity==17.0.0 (constraint was ==17.0.0)
  found candidate simplejson==3.11.1 (constraint was ==3.11.1)
  found candidate six==1.11.0 (constraint was ==1.11.0)
  found candidate sqlalchemy==1.2.10 (constraint was ==1.2.10)
  found candidate sqlalchemy-utils==0.32.14 (constraint was ==0.32.14)
  found candidate suds-jurko==0.6 (constraint was ==0.6)
  found candidate tenacity==4.8.0 (constraint was ==4.8.0)
  found candidate tinyrpc==0.8 (constraint was ==0.8)
  found candidate tornado==4.5.3 (constraint was ==4.5.3)
  found candidate twisted==17.9.0 (constraint was ==17.9.0)
  found candidate txaio==2.10.0 (constraint was ==2.10.0)
  found candidate uritemplate==3.0.0 (constraint was ==3.0.0)
  found candidate urllib3==1.22 (constraint was ==1.22)
  found candidate uwsgi==2.0.17.1 (constraint was ==2.0.17.1)
  found candidate xlrd==1.1.0 (constraint was ==1.1.0)
  found candidate xmltodict==0.11.0 (constraint was ==0.11.0)
  found candidate yattag==1.9.2 (constraint was ==1.9.2)
  found candidate zope.interface==4.4.3 (constraint was ==4.4.3)

Finding secondary dependencies:
  mako==1.0.7 not in cache, need to check index
  mako==1.0.7               requires mako==1.0.7, markupsafe>=0.9.2
  pysocks==1.6.8 not in cache, need to check index
  pysocks==1.6.8            requires pysocks==1.6.8
  django-appconf==1.0.2 not in cache, need to check index
  django-appconf==1.0.2     requires django-appconf==1.0.2
  tenacity==4.8.0 not in cache, need to check index
  tenacity==4.8.0           requires monotonic>=0.6, six>=1.9.0, tenacity==4.8.0
  pyasn1-modules==0.2.1 not in cache, need to check index
  pyasn1-modules==0.2.1     requires pyasn1-modules==0.2.1, pyasn1<0.5.0,>=0.4.1
  babel==2.4.0 not in cache, need to check index
  babel==2.4.0              requires babel==2.4.0, pytz>=0a
  daphne==2.1.0 not in cache, need to check index
  daphne==2.1.0             requires attrs>=17.4.0, autobahn>=0.18, automat>=0.3.0, constantly>=15.1, daphne==2.1.0, hyperlink>=17.1.1, idna>=2.5, incremental>=16.10.1, pyhamcrest>=1.9.0, setuptools, six>=1.10.0, twisted>=17.5, txaio>=18.7.1, zope.interface>=4.4.2
  six==1.11.0 not in cache, need to check index
  six==1.11.0               requires six==1.11.0
  cycler==0.10.0 not in cache, need to check index
  cycler==0.10.0            requires cycler==0.10.0, six
  pyyaml==3.12 not in cache, need to check index
  pyyaml==3.12              requires pyyaml==3.12
  uritemplate==3.0.0 not in cache, need to check index
  uritemplate==3.0.0        requires uritemplate==3.0.0
  markupsafe==1.0 not in cache, need to check index
  markupsafe==1.0           requires markupsafe==1.0
  python-daemon==2.1.2 not in cache, need to check index
  python-daemon==2.1.2      requires docutils, lockfile>=0.10, python-daemon==2.1.2, setuptools
  django_compressor==2.2 not in cache, need to check index
  django_compressor==2.2    requires django-appconf>=1.0, django_compressor==2.2, rcssmin==1.0.6, rjsmin==1.0.12
  tinyrpc==0.8 not in cache, need to check index
  tinyrpc==0.8              requires six, tinyrpc==0.8
  pycparser==2.18 not in cache, need to check index
  pycparser==2.18           requires pycparser==2.18
  sqlalchemy==1.2.10 not in cache, need to check index
  sqlalchemy==1.2.10        requires sqlalchemy==1.2.10
  backports_abc==0.5 not in cache, need to check index
  backports_abc==0.5        requires backports_abc==0.5
  raven==6.9.0 not in cache, need to check index
  raven==6.9.0              requires raven==6.9.0
  marshmallow==3.0.0b1 not in cache, need to check index
  marshmallow==3.0.0b1      requires marshmallow==3.0.0b1
  urllib3==1.22 not in cache, need to check index
  urllib3==1.22             requires urllib3==1.22
  python-dateutil==2.6.1 not in cache, need to check index
  python-dateutil==2.6.1    requires python-dateutil==2.6.1, six>=1.5
  anyjson==0.3.3 not in cache, need to check index
  anyjson==0.3.3            requires anyjson==0.3.3
  django-cors-headers==2.1.0 not in cache, need to check index
  django-cors-headers==2.1.0 requires django-cors-headers==2.1.0
  arrow==0.10.0 not in cache, need to check index
  arrow==0.10.0             requires arrow==0.10.0, python-dateutil, six>=1.5
  tornado==4.5.3 not in cache, need to check index
  tornado==4.5.3            requires tornado==4.5.3
  pyjwt==1.5.2 not in cache, need to check index
  pyjwt==1.5.2              requires pyjwt==1.5.2
  sqlalchemy-utils==0.32.14 not in cache, need to check index
  sqlalchemy-utils==0.32.14 requires six, sqlalchemy-utils==0.32.14, sqlalchemy>=1.0
  bcrypt==3.1.3 not in cache, need to check index
  bcrypt==3.1.3             requires bcrypt==3.1.3, cffi>=1.1, pycparser, six>=1.4.1
  decorator==4.1.2 not in cache, need to check index
  decorator==4.1.2          requires decorator==4.1.2
  rcssmin==1.0.6 not in cache, need to check index
  rcssmin==1.0.6            requires rcssmin==1.0.6
  xlrd==1.1.0 not in cache, need to check index
  xlrd==1.1.0               requires xlrd==1.1.0
  marshmallow-sqlalchemy==0.13.1 not in cache, need to check index
  marshmallow-sqlalchemy==0.13.1 requires marshmallow-sqlalchemy==0.13.1, marshmallow>=2.0.0, sqlalchemy>=0.9.7
  uwsgi==2.0.17.1 not in cache, need to check index
  uwsgi==2.0.17.1           requires uwsgi==2.0.17.1
  apipkg==1.4 not in cache, need to check index
  apipkg==1.4               requires apipkg==1.4
  python-editor==1.0.3 not in cache, need to check index
  python-editor==1.0.3      requires python-editor==1.0.3
  docutils==0.14 not in cache, need to check index
  docutils==0.14            requires docutils==0.14
  txaio==2.10.0 not in cache, need to check index
  txaio==2.10.0             requires six, txaio==2.10.0
  twisted==17.9.0 not in cache, need to check index
  twisted==17.9.0           requires attrs>=16.1.0, automat>=0.3.0, constantly>=15.1, hyperlink>=17.1.1, idna>=2.5, incremental>=16.10.1, setuptools, six, twisted==17.9.0, zope.interface>=3.6.0
  pyopenssl==17.5.0 not in cache, need to check index
  pyopenssl==17.5.0         requires asn1crypto>=0.21.0, cffi!=1.11.3,>=1.7, cryptography>=2.1.4, idna>=2.1, pycparser, pyopenssl==17.5.0, six>=1.5.2
  suds-jurko==0.6 not in cache, need to check index
  suds-jurko==0.6           requires suds-jurko==0.6
  billiard==3.5.0.3 not in cache, need to check index
  billiard==3.5.0.3         requires billiard==3.5.0.3
  django==2.0.4 not in cache, need to check index
  django==2.0.4             requires django==2.0.4, pytz
  requests==2.18.4 not in cache, need to check index
  requests==2.18.4          requires certifi>=2017.4.17, chardet<3.1.0,>=3.0.2, idna<2.7,>=2.5, requests==2.18.4, urllib3<1.23,>=1.21.1
  matplotlib==2.0.2 not in cache, need to check index

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 301, in get_legacy_dependencies
    wheel_cache=self.wheel_cache,
TypeError: __init__() got an unexpected keyword argument 'download_dir'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pipenv/resolver.py", line 87, in <module>
    main()
  File "/usr/lib/python3.7/site-packages/pipenv/resolver.py", line 76, in main
    system=system,
  File "/usr/lib/python3.7/site-packages/pipenv/resolver.py", line 63, in resolve
    allow_global=system,
  File "/usr/lib/python3.7/site-packages/pipenv/utils.py", line 402, in resolve_deps
    req_dir=req_dir
  File "/usr/lib/python3.7/site-packages/pipenv/utils.py", line 293, in actually_resolve_deps
    results = resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/resolver.py", line 104, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/resolver.py", line 209, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/resolver.py", line 303, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 243, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 335, in get_legacy_dependencies
    self.resolver.resolve(reqset)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 107, in resolve
    self._resolve_one(requirement_set, req)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 264, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 214, in _get_abstract_dist_for
    self.require_hashes
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 328, in prepare_linked_requirement
    abstract_dist.prep_for_dist(finder, self.build_isolation)
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 155, in prep_for_dist
    self.req.run_egg_info()
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 486, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python3.7/site-packages/pipenv/patched/notpip/_internal/utils/misc.py", line 698, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pipenv.patched.notpip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmpcb5zws72build/functools32/

Steps to replicate
  1. pipenv install or pipenv lock

$ pipenv --support

Pipenv version: '2018.7.1'

Pipenv location: '/usr/lib/python3.7/site-packages/pipenv'

Python location: '/usr/bin/python'

Other Python installations in PATH:

  • 2.7: /usr/bin/python2.7

  • 2.7: /usr/bin/python2.7

  • 3.7: /usr/bin/python3.7m

  • 3.7: /usr/bin/python3.7

  • 3.7.0: /usr/bin/python

  • 2.7.15: /usr/bin/python2

  • 3.7.0: /usr/bin/python3

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.18.3-arch1-1-ARCH',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Sat Aug 18 09:22:54 UTC 2018',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

  • DJANGO_SETTINGS_MODULE
  • LANG
  • DISPLAY
  • OLDPWD
  • INVOCATION_ID
  • EDITOR
  • COLORTERM
  • LOGGING_CONFIG
  • MOZ_PLUGIN_PATH
  • JAVA_HOME
  • TERMINAL
  • XDG_VTNR
  • XDG_SESSION_ID
  • USER
  • PWD
  • HOME
  • JOURNAL_STREAM
  • DESKTOP_STARTUP_ID
  • GTK_MODULES
  • MAIL
  • VISUAL
  • WINDOWPATH
  • SHELL
  • TERM
  • COLORFGBG
  • SHLVL
  • XDG_SEAT
  • PYTHONPATH
  • WINDOWID
  • LOGNAME
  • DBUS_SESSION_BUS_ADDRESS
  • XDG_RUNTIME_DIR
  • XAUTHORITY
  • PATH
  • PS1
  • _
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /opt/pycharm-community-2018.2.1/bin:/home/charles/bin:/home/charles/.local/bin:/opt/pycharm-community-2018.2.1/bin:/home/charles/bin:/home/charles/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
  • SHELL: /bin/bash
  • EDITOR: emacsclient -t -a "emacs -nw"
  • LANG: en_CA.UTF-8
  • PWD: /home/charles/PycharmProjects/Konversion_Platform-Back-End

Contents of Pipfile ('/home/charles/PycharmProjects/Konversion_Platform-Back-End/Pipfile'):

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
amqp = "==2.2.1"
anyjson = "==0.3.3"
arrow = "==0.10.0"
"asn1crypto" = "==0.24.0"
bcrypt = "==3.1.3"
billiard = "==3.5.0.3"
bingads = "==11.12.3"
bitarray = "==0.8.1"
certifi = "==2017.11.5"
cffi = "==1.11.4"
chardet = "==3.0.4"
click = "==6.7"
"contextlib2" = "==0.5.5"
croniter = "==0.3.17"
cryptography = "==2.1.4"
decorator = "==4.1.2"
docutils = "==0.14"
dominate = "==2.3.1"
"enum34" = "==1.1.6"
facebookads = "==2.11.3"
future = "==0.16.0"
google-api-python-client = "==1.7.3"
googleads = "==12.1.0"
"httplib2" = "==0.10.3"
idna = "==2.6"
kombu = "==4.1.0"
lockfile = "==0.12.2"
luigi = "==2.6.2"
matplotlib = "==2.0.2"
networkx = "==1.11"
numpy = "==1.13.1"
"oauth2client" = "==4.1.2"
alembic = "==0.9.7"
apipkg = "==1.4"
appdirs = "==1.4.3"
asgiref = "==2.2.0"
attrs = "==17.4.0"
autobahn = "==18.3.1"
channels = "==2.0.2"
constantly = "==15.1.0"
coverage = "==4.4.2"
daphne = "==2.1.0"
django-appconf = "==1.0.2"
django-cors-headers = "==2.1.0"
execnet = "==1.4.1"
first = "==2.0.1"
hyperlink = "==18.0.0"
hypothesis = "==3.37.0"
incremental = "==17.5.0"
jsonschema = "==2.5.1"
marshmallow = "==3.0.0b1"
marshmallow-sqlalchemy = "==0.13.1"
monotonic = "==1.4"
omniture = {git = "https://github.com/dancingcactus/python-omniture.git"}
pandas = "==0.22.0"
pip-tools = "==1.11.0"
"psycopg2" = "==2.7.3.2"
"pyasn1" = "==0.4.2"
"pyasn1-modules" = "==0.2.1"
pycparser = "==2.18"
python-daemon = "==2.1.2"
python-dateutil = "==2.6.1"
python-editor = "==1.0.3"
pytz = "==2018.3"
raven = "==6.9.0"
rcssmin = "==1.0.6"
requests = "==2.18.4"
rjsmin = "==1.0.12"
rsa = "==3.4.2"
simplejson = "==3.11.1"
six = "==1.11.0"
suds-jurko = "==0.6"
tenacity = "==4.8.0"
tornado = "==4.5.3"
txaio = "==2.10.0"
uritemplate = "==3.0.0"
"urllib3" = "==1.22"
xlrd = "==1.1.0"
xmltodict = "==0.11.0"
yattag = "==1.9.2"
"zope.interface" = "==4.4.3"
tinyrpc = "==0.8"
Babel = "==2.4.0"
backports_abc = "==0.5"
Cycler = "==0.10.0"
async_timeout = "==2.0.1"
Automat = "==0.6.0"
Django = "==2.0.4"
django_compressor = "==2.2"
Mako = "==1.0.7"
MarkupSafe = "==1.0"
PyJWT = "==1.5.2"
pyOpenSSL = "==17.5.0"
PySocks = "==1.6.8"
PyYAML = "==3.12"
service_identity = "==17.0.0"
SQLAlchemy = "==1.2.10"
SQLAlchemy-Utils = "==0.32.14"
Twisted = "==17.9.0"
channels_redis = "==2.1.1"
uWSGI = "==2.0.17.1"

[dev-packages]
@DrPyser DrPyser changed the title locking fails with TypeError locking fails with TypeError: __init__() got an unexpected keyword argument 'download_dir' Aug 21, 2018
@joshua-alday
Copy link

anyone found a work around? I'm running into this issue when working in aws codebuild.

techalchemy added a commit that referenced this issue Oct 7, 2018
- Fixes #2499
- Fixes #2529
- Fixes #2589
- Fixes #2666
- Fixes #2767
- Fixes #2785
- Fixes #2795
- Fixes #2801
- Fixes #2802
- Fixes #2824
- Fixes #2862
- Fixes #2867
- Fixes #2879
- Fixes #2880
- Fixes #2894
- Fixes #2902
- Fixes #2924

Signed-off-by: Dan Ryan <dan@danryan.co>
techalchemy added a commit that referenced this issue Oct 7, 2018
- Fixes #2499
- Fixes #2529
- Fixes #2589
- Fixes #2666
- Fixes #2767
- Fixes #2785
- Fixes #2795
- Fixes #2801
- Fixes #2802
- Fixes #2824
- Fixes #2862
- Fixes #2867
- Fixes #2879
- Fixes #2880
- Fixes #2894
- Fixes #2902
- Fixes #2924

Signed-off-by: Dan Ryan <dan@danryan.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants