On latest version (2018.11.26) pipenv check command fail with result:
Checking PEP 508 requirements…
Passed!
Checking installed package safety…
An error occurred:
Unable to load vulnerability database
$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/mohammad/.local/lib/python3.7/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:
3.7.2: /usr/bin/python3.7m3.7.2: /usr/bin/python32.7.16: /usr/bin/python2PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.7.2',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '5.1.7-1-default',
'platform_system': 'Linux',
'platform_version': '#1 SMP Tue Jun 4 07:56:54 UTC 2019 (55f2451)',
'python_full_version': '3.7.2',
'python_version': '3.7',
'sys_platform': 'linux'}
System environment variables:
AUDIODRIVERCOLORFGBGCOLORTERMCONFIG_SITECPUCSHEDITCVS_RSHDBUS_SESSION_BUS_ADDRESSDESKTOP_SESSIONDISPLAYFROM_HEADERGS_LIBGTK2_MODULESGTK2_RC_FILESGTK3_MODULESGTK_IM_MODULEGTK_MODULESGTK_RC_FILESG_BROKEN_FILENAMESG_FILENAME_ENCODINGHISTSIZEHOMEHOSTHOSTNAMEHOSTTYPEJAVA_BINDIRJAVA_HOMEJAVA_ROOTJDK_HOMEJRE_HOMEKDE_FULL_SESSIONKDE_SESSION_UIDKDE_SESSION_VERSIONKONSOLE_DBUS_SERVICEKONSOLE_DBUS_SESSIONKONSOLE_PROFILE_NAMEKONSOLE_VERSIONLANGLANGUAGELESSLESSCLOSELESSKEYLESSOPENLESS_ADVANCED_PREPROCESSORLOGNAMEMACHTYPEMAILMANPATHMINICOMMOREOLDPWDOSTYPEPAGERPATHPROFILEHOMEPROFILEREADPWDPYTHONSTARTUPQEMU_AUDIO_DRVQT_AUTO_SCREEN_SCALE_FACTORQT_IM_MODULEQT_IM_SWITCHERQT_SYSTEM_DIRSDK_HOMESDL_AUDIODRIVERSESSION_MANAGERSHELLSHELL_SESSION_IDSHLVLSSH_AGENT_PIDSSH_ASKPASSSSH_AUTH_SOCKTERMUBUNTU_MENUPROXYUSERWINDOWIDWINDOWMANAGERXAUTHLOCALHOSTNAMEXAUTHORITYXCURSOR_THEMEXDG_CONFIG_DIRSXDG_CURRENT_DESKTOPXDG_DATA_DIRSXDG_RUNTIME_DIRXDG_SEATXDG_SEAT_PATHXDG_SESSION_CLASSXDG_SESSION_DESKTOPXDG_SESSION_IDXDG_SESSION_PATHXDG_SESSION_TYPEXDG_VTNRXKEYSYMDBXMODIFIERSXNLSPATHXSESSION_IS_UP_LS_COLORSLS_OPTIONSGPG_TTYZSHLC_CTYPELSCOLORSGVM_ROOTGVM_VERSIONGVM_PATH_BACKUPGOPATHGOBINPIP_DISABLE_PIP_VERSION_CHECKPYTHONDONTWRITEBYTECODEPIP_SHIMS_BASE_MODULEPIP_PYTHON_PATHPYTHONFINDER_IGNORE_UNSUPPORTEDPipenv–specific environment variables:
Debug–specific environment variables:
PATH: /home/mohammad/.local/bin:/home/mohammad/.gvm/bin:/home/mohammad/bin:/usr/local/bin:/usr/bin:/bin:/home/mohammad/go/binSHELL: /usr/bin/zshLANG: en_US.UTF-8PWD: /home/mohammad/Documents/apmContents of Pipfile ('/home/mohammad/Documents/apm/Pipfile'):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
[requires]
python_version = "3.7"
Just to confirm, do you have internet access?
Just to confirm, do you have internet access?
Yes, It was part of our CI pipeline and broke from 3 days ago. We test it local (with connected internet), It fail.
yeah this was an outage with pyup.io which powers pipenv check, should be back up and running now. Sorry for the issue, closing for now!
@techalchemy I've been running into the same failure in my CI today. I ran the check locally on my machine (which has internet) and it also failed. Looks like pyup.io is down today?
Ditto here. I get this error but can access https://pyup.io/ just fine…
Having the same issue...
pipenv check -v
Checking PEP 508 requirements…
Passed!
Checking installed package safety…
An error occurred:
Unable to load vulnerability database
Is that due to pyup.io down again?
We're also seeing this issue both on our CI and locally. Locally it outputs Unable to load vulnerability database but on CI it doesn't. There are different versions so I suppose that's what's causing the different outputs. The local version is 2018.11.26 while the version on CI is 2018.7.1.
@kierun @isabelrios @Majsvaffla The pyup.io website is still experiencing some issues, eg:
$ curl -i --head https://pyup.io/pricing/
HTTP/1.1 500 Internal Server Error
Server: nginx/1.13.7
Date: Fri, 19 Jul 2019 09:41:35 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 3419
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Vary: Cookie
X-Sentry-ID: b56a9cf0bfc94ed9bb44a6a265c7d32d
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
The issue could also be with the way pipenv currently patches safety. Did you try to set your own PIPENV_PYUP_API_KEY?
Since the part of pipenv check which fails relates to safety, an alternative is to run directly:
pipenv run safety check --full-report
Which does not perform a call to pyup.io. This works for me.
More information on the docs:
In order to enable this functionality while maintaining its permissive copyright license, pipenv embeds an API client key for the backend Safety API operated by pyup.io rather than including a full copy of the CC-BY-NC-SA licensed Safety-DB database. This embedded client key is shared across all pipenv check users, and hence will be subject to API access throttling based on overall usage rather than individual client usage.
You can also use your own safety API key by setting the environment variable PIPENV_PYUP_API_KEY.
https://github.com/pypa/pipenv/blob/e6cabe649a50edc0cc883f5e9659f8931108835f/docs/advanced.rst
@tatiana Yes, that makes sense. Thank you very much for the information.
Getting a 500 Internal Server Error while trying to create a https://pyup.io/ account so will test at a later date.
@kierun meanwhile, pipenv run safety check --full-report is a good alternative. I just reported the issue to the pyup.io team, in case they are not aware. They have a great service, I hope it comes back soon 🍀
@tatiana I am just messing around with pipenv for now so it's all good. For all production, I already have a tox segment using safely.
Thank you for your help.
Most helpful comment
@kierun @isabelrios @Majsvaffla The pyup.io website is still experiencing some issues, eg:
The issue could also be with the way
pipenvcurrently patchessafety. Did you try to set your ownPIPENV_PYUP_API_KEY?Since the part of
pipenv checkwhich fails relates tosafety, an alternative is to run directly:Which does not perform a call to pyup.io. This works for me.
More information on the docs:
https://github.com/pypa/pipenv/blob/e6cabe649a50edc0cc883f5e9659f8931108835f/docs/advanced.rst