pipenv: Your API Key is invalid

$ pipenv check
Checking PEP 508 requirements…
Passed!
Checking installed package safety…
An error occurred:
Your API Key '1ab8d58f-5122e025-83674263-bc1e79e0' is invalid. See https://goo.gl/O7Y1rS

2020-04-11T10:08:05-0700 exit 1

I can provide pipenv --support if necessary.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 98
  • Comments: 27 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@Jwomers is now taking care of pyup.io with the help of @harlekeyn and @rafaelpivato. ccd

After a brief conversation with the new pyup.io management, (and it seems others have observed this already) we won’t need the API key anymore to connect with pyup.io. So we will remove the API key. In the meantime I believe this can be resolved by simply setting the environment variable PIPENV_PYUP_API_KEY="".

WORKAROUND for those who cannot upgrade:

export PIPENV_PYUP_API_KEY=""
pipenv check

I don’t want to to tell the maintainers how to handle issues and fixes, but maybe keep issues open until a fix is actually released. This closed issue gives the impression that the problem has been fixed, even though it has only been merged into master, but not yet released.

A workaround is to install safety and use safety check instead of pipenv check.

pipenv check works correctly for me when using pipenv-2020.4.1b1, installed through:

pip3 install --upgrade --pre pipenv

on a macOS system.

@kristang pipenv check was actually working in last 2 weeks using the old pipenv version, but here we go again…

I can’t speak for @jdobes, but I have a build pipeline, using pipenv 2018.11.26, that runs (at least) nightly. I never applied the environment variable work-around, and have successful runs from April 24 to May 2. On May 2nd it started failing with this issue.

Just wanted to share more information …

A workaround is to install safety and use safety check instead of pipenv check.

pipenv lock --requirements | safety check --stdin