`pipenv install`: TypeError: 'NoneType' object is not callable
See original GitHub issueIssue description
We had 2 pipeline runs using the same settings within a timeframe of 30 minutes. The first run went fine while the second failed suddenly. Turns out that in the meantime the new version 2021.11.5 was released.
After pinning pipenv to 2021.5.29 it works again.
Expected result
All packages got installed.
Actual result
$ python3 --version
Python 3.8.10
$ pip3 install pipenv && pipenv install --system --deploy
Collecting pipenv
Downloading pipenv-2021.11.5-py2.py3-none-any.whl (3.9 MB)
Collecting virtualenv
Downloading virtualenv-20.10.0-py2.py3-none-any.whl (5.6 MB)
Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python3/dist-packages (from pipenv) (45.2.0)
Collecting virtualenv-clone>=0.2.5
Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Requirement already satisfied: pip>=18.0 in /usr/lib/python3/dist-packages (from pipenv) (20.0.2)
Collecting certifi
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting filelock<4,>=3.2
Downloading filelock-3.3.2-py3-none-any.whl (9.7 kB)
Collecting backports.entry-points-selectable>=1.0.4
Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.3-py2.py3-none-any.whl (496 kB)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting six<2,>=1.9.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: filelock, backports.entry-points-selectable, distlib, platformdirs, six, virtualenv, virtualenv-clone, certifi, pipenv
Successfully installed backports.entry-points-selectable-1.1.0 certifi-2021.10.8 distlib-0.3.3 filelock-3.3.2 pipenv-2021.11.5 platformdirs-2.4.0 six-1.16.0 virtualenv-20.10.0 virtualenv-clone-0.5.7
/usr/share/python-wheels/requests-2.22.0-py2.py3-none-any.whl/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
Installing dependencies from Pipfile.lock (5264b9)...
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pipenv/cli/command.py", line 220, in install
do_install(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1991, in do_install
do_init(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1255, in do_init
do_install_dependencies(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 818, in do_install_dependencies
batch_install(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 725, in batch_install
c = pip_install(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1427, in pip_install
r = write_requirement_to_file(
File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1359, in write_requirement_to_file
line = requirement.line_instance.get_line(
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2553, in line_instance
self.line_instance = self.get_line_instance()
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2547, in get_line_instance
return Line(line)
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 171, in __init__
self.parse()
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1289, in parse
self.parse_extras()
File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 577, in parse_extras
self.line, extras = pip_shims.shims._strip_extras(self.line)
TypeError: 'NoneType' object is not callable
Steps to replicate
$ pipenv --support
Pipenv version: '2021.11.5'
Pipenv location: '/usr/local/lib/python3.8/dist-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:
3.8.10
:/usr/bin/python3
3.8.10
:/usr/bin/python3.8
3.8.10
:/bin/python3
3.8.10
:/bin/python3.8
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.8.10',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '4.18.0-305.19.1.el8_4.x86_64',
'platform_system': 'Linux',
'platform_version': '#1 SMP Tue Sep 7 07:07:31 EDT 2021',
'python_full_version': '3.8.10',
'python_version': '3.8',
'sys_platform': 'linux'}
System environment variables:
KUBERNETES_SERVICE_PORT_HTTPS
CI_PROJECT_NAMESPACE
GITLAB_USER_ID
SAST_EXCLUDED_ANALYZERS
CI_RUNNER_VERSION
KEY_VAULT_ID
FF_SKIP_NOOP_BUILD_STAGES
KUBERNETES_SERVICE_PORT
CI_SERVER_NAME
CI_RUNNER_DESCRIPTION
GITLAB_USER_EMAIL
PWC_CA_BUNDLE
CI_SERVER_REVISION
FF_USE_WINDOWS_LEGACY_PROCESS_STRATEGY
CI_RUNNER_EXECUTABLE_ARCH
CI_REGISTRY_USER
CI_REGISTRY_PASSWORD
CI_API_V4_URL
CI_RUNNER_SHORT_TOKEN
CI_JOB_NAME
LOG_LEVEL
HOSTNAME
GITLAB_USER_LOGIN
FF_SKIP_DOCKER_MACHINE_PROVISION_ON_CREATION_FAILURE
CI_PROJECT_NAME
CI_PIPELINE_SOURCE
CI_BUILD_REF_NAME
DS_DEFAULT_ANALYZERS
CI_JOB_STATUS
CI_PIPELINE_ID
CI_BUILD_REF_SLUG
CI_COMMIT_REF_SLUG
CI_SERVER
SECRETS_ANALYZER_VERSION
SAST_SEMGREP_METRICS
FF_GITLAB_REGISTRY_HELPER_IMAGE
CI_COMMIT_SHORT_SHA
FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION
CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
SECRET_DETECTION_EXCLUDED_PATHS
PWD
CI_RUNNER_TAGS
CI_PROJECT_PATH
FF_USE_NEW_BASH_EVAL_STRATEGY
DS_EXCLUDED_PATHS
CI_SERVER_TLS_CA_FILE
CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX
ADDITIONAL_CA_CERT_BUNDLE
DS_MAJOR_VERSION
CI_COMMIT_REF_PROTECTED
FF_USE_POWERSHELL_PATH_RESOLVER
VAULT_CACERT
CI_SERVER_VERSION_MINOR
CI_COMMIT_SHA
HOME
FF_NETWORK_PER_BUILD
KEY_NAME
CI_DEPENDENCY_PROXY_PASSWORD
KUBERNETES_PORT_443_TCP
CI_PROJECT_VISIBILITY
CI_CONCURRENT_PROJECT_ID
CI_COMMIT_MESSAGE
SECURE_ANALYZERS_PREFIX
CI_BUILD_NAME
FF_USE_DIRECT_DOWNLOAD
CI_SERVER_VERSION
CI_REGISTRY
CI_SERVER_PORT
CUSTOMER_USER_EMAIL
CI_PIPELINE_IID
CI_REPOSITORY_URL
CI_SERVER_URL
FF_ENABLE_BASH_EXIT_CODE_CHECK
GITLAB_FEATURES
CI_COMMIT_DESCRIPTION
CI_JOB_STAGE
CI_PIPELINE_URL
CI_DEFAULT_BRANCH
CI_BUILD_REF
SCAN_KUBERNETES_MANIFESTS
CI_SERVER_VERSION_PATCH
CI_COMMIT_TITLE
VAULT_ADDR
CI_PROJECT_ROOT_NAMESPACE
ENVIRONMENT
LICENSE_MANAGEMENT_SETUP_CMD
GITLAB_USER_NAME
CI_PROJECT_DIR
SHLVL
CI_RUNNER_ID
CI_PIPELINE_CREATED_AT
CI_COMMIT_TIMESTAMP
CI_DISPOSABLE_ENVIRONMENT
CI_JOB_JWT
KUBERNETES_PORT_443_TCP_PROTO
CI_BUILD_ID
DS_EXCLUDED_ANALYZERS
CI_SERVER_PROTOCOL
CI_COMMIT_AUTHOR
KUBERNETES_PORT_443_TCP_ADDR
CI_COMMIT_REF_NAME
CI_SERVER_HOST
CI_JOB_URL
CI_JOB_TOKEN
SAST_EXCLUDED_PATHS
CI_JOB_STARTED_AT
CI_CONCURRENT_ID
CI_BUILD_TOKEN
CI_COMMIT_BRANCH
CI_PROJECT_CLASSIFICATION_LABEL
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY
CI_RUNNER_REVISION
LICENSE_MANAGEMENT_VERSION
CI_BUILD_BEFORE_SHA
CI_DEPENDENCY_PROXY_USER
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR
CI_PROJECT_PATH_SLUG
CI_NODE_TOTAL
KUBERNETES_SERVICE_HOST
KUBERNETES_PORT
KUBERNETES_PORT_443_TCP_PORT
CI_BUILDS_DIR
CI_JOB_ID
CI_PROJECT_REPOSITORY_LANGUAGES
PATH
CI_PROJECT_ID
CI
GITLAB_CI
CI_JOB_IMAGE
CI_COMMIT_BEFORE_SHA
CI_PROJECT_TITLE
CI_SERVER_VERSION_MAJOR
VAULT_NAMESPACE
CI_CONFIG_PATH
FF_USE_FASTZIP
CI_BUILD_STAGE
CI_DEPENDENCY_PROXY_SERVER
KEY_LENGTH
ACTION
CI_PROJECT_URL
OLDPWD
_
LC_CTYPE
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables: Debug–specific environment variables:
PATH
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD
:/builds/VqLQkzTA/4/pwc-de/team-the-forge/cloud-melter/cloud-melter-key-management
Contents of Pipfile
(‘/builds/VqLQkzTA/4/pwc-de/team-the-forge/cloud-melter/cloud-melter-key-management/Pipfile’):
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
requests = "*"
python-slugify = "*"
hvac = "*"
logging-formatter-anticrlf = "*"
[dev-packages]
[requires]
python_version = "3.8"
Contents of Pipfile.lock
(‘/builds/VqLQkzTA/4/pwc-de/team-the-forge/cloud-melter/cloud-melter-key-management/Pipfile.lock’):
{
"_meta": {
"hash": {
"sha256": "259c38054ef2e2340e283cee83b35e947651d969a2f2f3ceff5814a3365264b9"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.8"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {
"certifi": {
"hashes": [
"sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872",
"sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"
],
"version": "==2021.10.8"
},
"charset-normalizer": {
"hashes": [
"sha256:e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0",
"sha256:f7af805c321bfa1ce6714c51f254e0d5bb5e5834039bc17db7ebe3a4cec9492b"
],
"markers": "python_version >= '3'",
"version": "==2.0.7"
},
"hvac": {
"hashes": [
"sha256:3e8a34804b1e20954a2b4991cc13ed9c09b32e50dadd9d3438224481150f6568",
"sha256:f905c59d32d88d3f67571fe5a8a78de4659e04798ad809de439f667247d13626"
],
"index": "pypi",
"version": "==0.11.2"
},
"idna": {
"hashes": [
"sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
"sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
],
"markers": "python_version >= '3'",
"version": "==3.3"
},
"logging-formatter-anticrlf": {
"hashes": [
"sha256:1d5b9b208938d637263d4d40f7841aa84164fd3fa128b633df55602c04fba60b"
],
"index": "pypi",
"version": "==1.2"
},
"python-slugify": {
"hashes": [
"sha256:6d8c5df75cd4a7c3a2d21e257633de53f52ab0265cd2d1dc62a730e8194a7380",
"sha256:f13383a0b9fcbe649a1892b9c8eb4f8eab1d6d84b84bb7a624317afa98159cab"
],
"index": "pypi",
"version": "==5.0.2"
},
"requests": {
"hashes": [
"sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24",
"sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
],
"index": "pypi",
"version": "==2.26.0"
},
"six": {
"hashes": [
"sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
"sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.16.0"
},
"text-unidecode": {
"hashes": [
"sha256:1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8",
"sha256:bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93"
],
"version": "==1.3"
},
"urllib3": {
"hashes": [
"sha256:4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece",
"sha256:c4fdf4019605b6e5423637e01bc9fe4daef873709a7973e195ceba0a62bbc844"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
"version": "==1.26.7"
}
},
"develop": {}
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:17
- Comments:13
this seems to happen again in the latest version
2022.4.20
which was released earlier todayHaving the same issue. With version 2021.5.29 it works