Не удается успешно установить пакет VCS с помощью pipenv

У меня есть пакет на github, который я пытаюсь установить с помощью pipenv.

Я пытаюсь установить пакет следующим образом:

pipenv install -e git+https://github.com/arepo/[email protected]#egg=atotallyworking-python-package.git

Чтобы было ясно, этот пакет не имеет никаких проблем при установке через virtualenv и pip с использованием файла requirements.txt.

Пакет добавлен в Pipfile без проблем с первого раза.

Затем, когда я вернусь и попытаюсь установить зависимости в файле Pipfile, скажем, например, с новым клоном проекта, который включает пакет github в Pipfile, например:

atotallyworking-python-package = {editable = true,git = "https://github.com/arepot/atotallyworking-python-package.git",ref = "v1.0.0"}  

Взрывается со следующей ошибкой:

Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>

main()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main

parsed.requirements_dir, parsed.packages)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main

requirements_dir=requirements_dir,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve

req_dir=requirements_dir

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps

req_dir=req_dir,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps

resolved_tree = resolver.resolve()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve

results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve

has_changed, best_matches = self._resolve_one_round()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round

for dep in self._iter_dependencies(best_match):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 280, in _iter_dependencies

for dependency in self.repository.get_dependencies(ireq):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies

legacy_results = self.get_legacy_dependencies(ireq)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies

results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs

results = resolver._resolve_one(reqset, ireq)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 260, in _resolve_one

abstract_dist = self._get_abstract_dist_for(req_to_install)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 197, in _get_abstract_dist_for

req, self.require_hashes, self.use_user_site, self.finder,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 321, in prepare_editable_requirement

abstract_dist.prep_for_dist(finder, self.build_isolation)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 127, in prep_for_dist

self.req.run_egg_info()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 474, in run_egg_info

command_desc='python setup.py egg_info')

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/utils/misc.py", line 705, 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 /var/folders/60/cbz9nv2s4tx9c380cl4mmw140000gq/T/tmpsc9waggasource/atotallyworking-python-package/

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>

main()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main

parsed.requirements_dir, parsed.packages)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main

requirements_dir=requirements_dir,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve

req_dir=requirements_dir

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps

req_dir=req_dir,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps

resolved_tree = resolver.resolve()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve

results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve

has_changed, best_matches = self._resolve_one_round()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round

for dep in self._iter_dependencies(best_match):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 280, in _iter_dependencies

for dependency in self.repository.get_dependencies(ireq):

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies

legacy_results = self.get_legacy_dependencies(ireq)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies

results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs

results = resolver._resolve_one(reqset, ireq)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 260, in _resolve_one

abstract_dist = self._get_abstract_dist_for(req_to_install)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 197, in _get_abstract_dist_for

req, self.require_hashes, self.use_user_site, self.finder,

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 321, in prepare_editable_requirement

abstract_dist.prep_for_dist(finder, self.build_isolation)

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 127, in prep_for_dist

self.req.run_egg_info()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 474, in run_egg_info

command_desc='python setup.py egg_info')

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/utils/misc.py", line 705, 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 /var/folders/60/cbz9nv2s4tx9c380cl4mmw140000gq/T/tmpsc9waggasource/atotallyworking-python-package/

Есть идеи, что я здесь делаю неправильно или на что указывает эта трассировка стека?


person AdjunctProfessorFalcon    schedule 09.07.2019    source источник


Ответы (1)


После того, как я выполнил следующие команды, эта проблема, казалось, была решена:

pipenv --skip-lock
pipenv lock

Затем, когда я вернулся со свежей копией репо и переустановил все, все было нормально, никаких проблем с зависимостью VCS при установке через pipenv install.

person AdjunctProfessorFalcon    schedule 10.07.2019