question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "KeyError: 'name'" in pipenv install (from Release v2022.3.23)

See original GitHub issue

From Release v2022.3.23 which was updated today, we’ve started to receive the following error(“KeyError: ‘name’”). in pipenv install…

Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/cli/options.py", line 54, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pipenv/cli/command.py", line 193, in install
    do_install(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1978, in do_install
    do_init(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1244, in do_init
    do_install_dependencies(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 808, in do_install_dependencies
    batch_install(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 715, in batch_install
    c = pip_install(
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1406, in pip_install
    extra_indexes = list(filter(lambda d: d['name'] == requirement.index, project.sources))
  File "/usr/local/lib/python3.8/site-packages/pipenv/core.py", line 1406, in <lambda>
    extra_indexes = list(filter(lambda d: d['name'] == requirement.index, project.sources))
KeyError: 'name'
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

Our environement is docker and part of our Dockerfile is the following

FROM python:3.8-slim-buster AS backend-builder

...(Skip)..

RUN pip install --upgrade pip && \
    pip install pipenv && \
    pipenv install --system --deploy <-- Got the error

We guess that it is caused by the following update. Could you check and fix it? https://github.com/pypa/pipenv/pull/4983

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
masato-yasudacommented, Mar 24, 2022

@matteius We tried the next version (v2022.3.24) and confirmed that our CI process becomes working again. Thanks very much for your quick fix!

1reaction
masato-yasudacommented, Mar 23, 2022

@matteius Thanks for your fix! Let me check the branch tomorrow…

Read more comments on GitHub >

github_iconTop Results From Across the Web

`pipenv install` fails with " KeyError: 'url' " - Stack Overflow
I want to create a virtual environment using pipenv. Problem. In order to create a virtual environment, I used pipenv. However, even though...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
When you install a package with pipenv install , the Pipfile is automatically updated with the new dependency. Locking Issue: Pipfile Contains a...
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
Release and Version History — pipenv 2022.12.20.dev0 ...
If a Pipefile was hand crafeted, and the source is anonymous an error will be thrown. The solution is simple, add a name...
Read more >
Announcement: Pipenv Beta Release - Packaging
I am happy to announce the (pre)release of pipenv v2020.4.1b1, available on PyPI for testing. To install: pip install --pre --upgrade pipenv ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found