pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Locking failed without an error message

Open Dzeri96 opened this issue 2 years ago • 12 comments

Issue description

Since some of my dependencies cannot be run on M1/Aarch64, I tried using a development container running on another architecture (amd64/python:3.8-bullseye), however pipenv fails in the locking step of the dependency installation with no error message. Installing from requirements.txt works via pip, and running pipenv install on an x86_64 Ubuntu 20.04 machine works without issue.

Expected result

The dependencies are installed

Actual result

The point at which the locking step fails seems almost random. For a while it used to fail at llvmlite when locking numba dependencies, tough now it fails at scipy.

...more info messages

INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('scikit-learn>=0.22.0'), LinkCandidate('https://files.pythonhosted.org/packages/f9/90/28f90637a5e7c97c0d16ba12778d37f8104c00cca3f0d44c319c8113b043/Riskfolio_Lib-0.4.0-py3-none-any.whl#sha256=01abe4808ab07257c7eba5fe4910b4a5e14a98d362c9f118e8d0df9e69d21f1f (from https://pypi.org/simple/riskfolio-lib/) (requires-python:>=3.7)'))
Reporter.adding_requirement(SpecifierRequirement('scipy>=1.0.1'), LinkCandidate('https://files.pythonhosted.org/packages/f9/90/28f90637a5e7c97c0d16ba12778d37f8104c00cca3f0d44c319c8113b043/Riskfolio_Lib-0.4.0-py3-none-any.whl#sha256=01abe4808ab07257c7eba5fe4910b4a5e14a98d362c9f118e8d0df9e69d21f1f (from https://pypi.org/simple/riskfolio-lib/) (requires-python:>=3.7)'))
INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('scipy>=1.0.1'), LinkCandidate('https://files.pythonhosted.org/packages/f9/90/28f90637a5e7c97c0d16ba12778d37f8104c00cca3f0d44c319c8113b043/Riskfolio_Lib-0.4.0-py3-none-any.whl#sha256=01abe4808ab07257c7eba5fe4910b4a5e14a98d362c9f118e8d0df9e69d21f1f (from https://pypi.org/simple/riskfolio-lib/) (requires-python:>=3.7)'))
✘ Locking Failed! 

Steps to replicate

Since one of the dependencies is a company-internal package, you should add the following dependencies to the Pipfile:

install_requires = [
        "numpy",
        "pandas",
        "riskfolio-lib==0.4.0",
        "vectorbt==0.15.5",
        "sanpy==0.8.12",
        "asyncio",
        "aiohttp",
        "iso8601"
]

Start a container from the above-mentioned python image (ideally on an arm64 processor), install the latest pipenv and run pipenv install


$ pipenv --support

Pipenv version: '2022.1.8'

Pipenv location: '/usr/local/lib/python3.8/site-packages/pipenv'

Python location: '/usr/local/bin/python'

Python installations found:

  • 3.9.2: /usr/bin/python3.9
  • 3.9.2: /usr/bin/python3
  • 3.8.12: /usr/local/bin/python
  • 3.8.12: /usr/local/bin/python3
  • 3.8.12: /usr/local/bin/python3.8

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.8.12',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.10.76-linuxkit',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021',
 'python_full_version': '3.8.12',
 'python_version': '3.8',
 'sys_platform': 'linux'}

System environment variables:

  • _
  • VSCODE_IPC_HOOK_CLI
  • TERM_PROGRAM
  • PATH
  • BROWSER
  • PYTHON_GET_PIP_URL
  • VSCODE_GIT_ASKPASS_MAIN
  • PYTHON_GET_PIP_SHA256
  • PYTHON_PIP_VERSION
  • SHLVL
  • VSCODE_GIT_IPC_HANDLE
  • REMOTE_CONTAINERS_SOCKETS
  • TERM
  • GIT_ASKPASS
  • GPG_KEY
  • REMOTE_CONTAINERS
  • LS_COLORS
  • LANG
  • HOME
  • VSCODE_GIT_ASKPASS_NODE
  • PYTHON_SETUPTOOLS_VERSION
  • PWD
  • REMOTE_CONTAINERS_IPC
  • SSH_AUTH_SOCK
  • PYTHON_VERSION
  • HOSTNAME
  • TERM_PROGRAM_VERSION
  • COLORTERM
  • SHELL
  • 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: /vscode/vscode-server/bin/x64/7f6ab5485bbc008386c4386d08766667e155244e/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • SHELL: /bin/bash
  • LANG: C.UTF-8
  • PWD: /workspaces/weight-generation-service

Some hashes were omitted for brevity.

Contents of Pipfile ('/workspaces/weight-generation-service/Pipfile'):

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
REDACTED

[packages]
INTERNAL-PACKAGE = "==3.1.4"
flask-restx = "*"
requests = "*"
ddtrace = "*"
waitress = "*"
python-dotenv = "*"
JSON-log-formatter = "*"

[dev-packages]

[requires]
python_version = "3.8"

Contents of Pipfile.lock ('/workspaces/weight-generation-service/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "d9f37dbf7164411a33c76186eb2a0cc3b7941910c0a99d7686439885e289302b"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.8"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            },
            {
                REDACTED
            }
        ]
    },
    "default": {
        "aiohttp": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.8.1"
        },
        "aiosignal": {
            "hashes": [
                "sha256:26e62109036cd181df6e6ad646f91f0dcfd05fe16d0cb924138ff2ab75d64e3a",
                "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.2.0"
        },
        "arch": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==5.1.0"
        },
        "argon2-cffi": {
            "hashes": [
                "sha256:8c976986f2c5c0e5000919e6de187906cfd81fb1c72bf9d88c01177e77da7f80",
                "sha256:d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==21.3.0"
        },
        "argon2-cffi-bindings": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.6'",
            "version": "==21.2.0"
        },
        "asttokens": {
            "hashes": [
                "sha256:0844691e88552595a6f4a4281a9f7f79b8dd45ca4ccea82e5e05b4bbdb76705c",
                "sha256:9a54c114f02c7a9480d56550932546a3f1fe71d8a02f1bc7ccd0ee3ee35cf4d5"
            ],
            "version": "==2.0.5"
        },
        "async-timeout": {
            "hashes": [
                "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15",
                "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==4.0.2"
        },
        "asyncio": {
            "hashes": [
                "sha256:83360ff8bc97980e4ff25c964c7bd3923d333d177aa4f7fb736b019f26c7cb41",
                "sha256:b62c9157d36187eca799c378e572c969f0da87cd5fc42ca372d92cdb06e7e1de",
                "sha256:c46a87b48213d7464f22d9a497b9eef8c1928b68320a2fa94240f969f6fec08c",
                "sha256:c4d18b22701821de07bd6aea8b53d21449ec0ec5680645e5317062ea21817d2d"
            ],
            "version": "==3.4.3"
        },
        "attrs": {
            "hashes": [
                "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4",
                "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==21.4.0"
        },
        "backcall": {
            "hashes": [
                "sha256:5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e",
                "sha256:fbbce6a29f263178a1f7915c1940bde0ec2b2a967566fe1c65c1dfb7422bd255"
            ],
            "version": "==0.2.0"
        },
        "black": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_full_version >= '3.6.2'",
            "version": "==22.1.0"
        },
        "bleach": {
            "hashes": [
                "sha256:0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da",
                "sha256:4d2651ab93271d1129ac9cbc679f524565cc8a1b791909c4a51eac4446a15994"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==4.1.0"
        },
        "certifi": {
            "hashes": [
                "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872",
                "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"
            ],
            "version": "==2021.10.8"
        },
        "cffi": {
            "hashes": [
                OMMITED
            ],
            "version": "==1.15.0"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597",
                "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==2.0.12"
        },
        "click": {
            "hashes": [
                "sha256:353f466495adaeb40b6b5f592f9f91cb22372351c84caeb068132442a4518ef3",
                "sha256:410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==8.0.3"
        },
        "cvxpy": {
            "hashes": [
                "sha256:022c8d9c82d2f00535e1d08761e88aa5c1729ee685dfb2ea60465693f54550c1",
                "sha256:20b9f214f092ff5dec8e8b56ddb365690d8e02f6bd005ee9b59367150e3efd05",
                "sha256:254683742bcd4427eaa17ca44675b540690e043782d467c4c68d1d4ef003c062",
                "sha256:2699db1cc889fd2e0ea459f022866fcc1182241f4520c5550ca5136ef06c5246",
                "sha256:2eb079877d23f03494141102d6cf9d3139edf5e1dc07bfa3f767f4c79e837ecb",
                "sha256:569f7298539a2bd8704209628af11ecf1bca0cff2d5e27c46b57ffea921a01cf",
                "sha256:5baefe1f2ed6937749b293586c6ce4f42ed30e7890223f7661ccb2bb7df70bef",
                "sha256:6d2dd80550b9ab5f36a3961c64b51d70f364bd375565400534af65b5cf590787",
                "sha256:80018d9a4478253cc27d6d87677c4ba35908bf52e71a94e4beba5639c39f283d",
                "sha256:9f82ca609e34577062940d5c32bc1f687fcf83d39ca92ec0d04fb1f290b43355",
                "sha256:d21d81ab76f6fae44090c19b9a802e42e8af440d9a505be892c1e6766621e4a6",
                "sha256:d3c35f47032ba15af0ae5b7d4b44ed8dd287e27101f1a264295dd4885f8aea70",
                "sha256:d84fb6de19c998a4db8e442d2d5d5c155b983ca4f1833fd79fb6ad47c092f349",
                "sha256:d853b73aca9223901b1de4dcd8c71d9732e7d38e915008956aa13fa2920d2652",
                "sha256:e634c5afa8d4c7db9691d2fb9f982fcf9be41bf3fb8c781e47816fa290acbdbb",
                "sha256:ec5371c339cd35cb47fc8e9f7e6dff22e20612fdfa6b17dc508fc513130337ba"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.1.18"
        },
        "cycler": {
            "hashes": [
                "sha256:3a27e95f763a428a739d2add979fa7494c912a32c17c4c38c4d5f082cad165a3",
                "sha256:9c87405839a19696e837b3b818fed3f5f69f16f1eec1a1ad77e043dcea9c772f"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.11.0"
        },
        "debugpy": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==1.5.1"
        },
        "decorator": {
            "hashes": [
                "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330",
                "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==5.1.1"
        },
        "defusedxml": {
            "hashes": [
                "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69",
                "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==0.7.1"
        },
        "ecos": {
            "hashes": [
                OMMITED
            ],
            "version": "==2.0.10"
        },
        "entrypoints": {
            "hashes": [
                "sha256:b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4",
                "sha256:f174b5ff827504fd3cd97cc3f8649f3693f51538c7e4bdf3ef002c8429d42f9f"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.4"
        },
        "executing": {
            "hashes": [
                "sha256:32fc6077b103bd19e6494a72682d66d5763cf20a106d5aa7c5ccbea4e47b0df7",
                "sha256:c23bf42e9a7b9b212f185b1b2c3c91feb895963378887bb10e64a2e612ec0023"
            ],
            "version": "==0.8.2"
        },
        "fonttools": {
            "hashes": [
                "sha256:1933415e0fbdf068815cb1baaa1f159e17830215f7e8624e5731122761627557",
                "sha256:2b18a172120e32128a80efee04cff487d5d140fe7d817deb648b2eee023a40e4"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==4.29.1"
        },
        "frozenlist": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==1.3.0"
        },
        "idna": {
            "hashes": [
                "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
                "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==3.3"
        },
        "importlib-resources": {
            "hashes": [
                "sha256:33a95faed5fc19b4bc16b29a6eeae248a3fe69dd55d4d229d2b480e23eeaad45",
                "sha256:d756e2f85dd4de2ba89be0b21dba2a3bbec2e871a42a3a16719258a11f87506b"
            ],
            "markers": "python_version < '3.9'",
            "version": "==5.4.0"
        },
        "ipykernel": {
            "hashes": [
                "sha256:4fae9df6e192837552b2406a6052d707046dd2e153860be73c68484bacba18ed",
                "sha256:f95070a2dfd3147f8ab19f18ee46733310813758593745e07ec18fb08b409f1d"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==6.9.1"
        },
        "ipython": {
            "hashes": [
                "sha256:ab564d4521ea8ceaac26c3a2c6e5ddbca15c8848fd5a5cc325f960da88d42974",
                "sha256:c503a0dd6ccac9c8c260b211f2dd4479c042b49636b097cc9a0d55fe62dff64c"
            ],
            "markers": "python_version >= '3.3'",
            "version": "==8.0.1"
        },
        "ipython-genutils": {
            "hashes": [
                "sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8",
                "sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"
            ],
            "version": "==0.2.0"
        },
        "ipywidgets": {
            "hashes": [
                "sha256:00974f7cb4d5f8d494c19810fedb9fa9b64bffd3cda7c2be23c133a1ad3c99c5",
                "sha256:d258f582f915c62ea91023299603be095de19afb5ee271698f88327b9fe9bf43"
            ],
            "version": "==7.6.5"
        },
        "iso8601": {
            "hashes": [
                "sha256:27f503220e6845d9db954fb212b95b0362d8b7e6c1b2326a87061c3de93594b1",
                "sha256:d7bc01b1c2a43b259570bb307f057abc578786ea734ba2b87b836c5efc5bd443"
            ],
            "markers": "python_full_version >= '3.6.2' and python_version < '4.0'",
            "version": "==1.0.2"
        },
        "jedi": {
            "hashes": [
                "sha256:637c9635fcf47945ceb91cd7f320234a7be540ded6f3e99a50cb6febdfd1ba8d",
                "sha256:74137626a64a99c8eb6ae5832d99b3bdd7d29a3850fe2aa80a4126b2a7d949ab"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.18.1"
        },
        "jinja2": {
            "hashes": [
                "sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8",
                "sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.0.3"
        },
        "joblib": {
            "hashes": [
                "sha256:4158fcecd13733f8be669be0683b96ebdbbd38d23559f54dca7205aea1bf1e35",
                "sha256:f21f109b3c7ff9d95f8387f752d0d9c34a02aa2f7060c2135f465da0e5160ff6"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.1.0"
        },
        "jsonschema": {
            "hashes": [
                "sha256:636694eb41b3535ed608fe04129f26542b59ed99808b4f688aa32dcf55317a83",
                "sha256:77281a1f71684953ee8b3d488371b162419767973789272434bbc3f29d9c8823"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==4.4.0"
        },
        "jupyter-client": {
            "hashes": [
                "sha256:4ea61033726c8e579edb55626d8ee2e6bf0a83158ddf3751b8dd46b2c5cd1e96",
                "sha256:d56f1c57bef42ff31e61b1185d3348a5b2bcde7c9a05523ae4dbe5ee0871797c"
            ],
            "markers": "python_full_version >= '3.6.1'",
            "version": "==7.1.2"
        },
        "jupyter-core": {
            "hashes": [
                "sha256:d69baeb9ffb128b8cd2657fcf2703f89c769d1673c851812119e3a2a0e93ad9a",
                "sha256:f875e4d27e202590311d468fa55f90c575f201490bd0c18acabe4e318db4a46d"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==4.9.2"
        },
        "jupyterlab-pygments": {
            "hashes": [
                "sha256:abfb880fd1561987efaefcb2d2ac75145d2a5d0139b1876d5be806e32f630008",
                "sha256:cfcda0873626150932f438eccf0f8bf22bfa92345b814890ab360d666b254146"
            ],
            "version": "==0.1.2"
        },
        "jupyterlab-widgets": {
            "hashes": [
                "sha256:7885092b2b96bf189c3a705cc3c412a4472ec5e8382d0b47219a66cccae73cfa",
                "sha256:f5d9efface8ec62941173ba1cffb2edd0ecddc801c11ae2931e30b50492eb8f7"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.0.2"
        },
        "kiwisolver": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==1.3.2"
        },
        "llvmlite": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version < '3.11' and python_version >= '3.7'",
            "version": "==0.38.0"
        },
        "markupsafe": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==2.1.0"
        },
        "matplotlib": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==3.5.1"
        },
        "matplotlib-inline": {
            "hashes": [
                "sha256:a04bfba22e0d1395479f866853ec1ee28eea1485c1d69a6faf00dc3e24ff34ee",
                "sha256:aed605ba3b72462d64d475a21a9296f400a19c4f74a31b59103d2a99ffd5aa5c"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==0.1.3"
        },
        "mistune": {
            "hashes": [
                "sha256:59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e",
                "sha256:88a1051873018da288eee8538d476dffe1262495144b33ecb586c4ab266bb8d4"
            ],
            "version": "==0.8.4"
        },
        "multidict": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==6.0.2"
        },
        "mypy-extensions": {
            "hashes": [
                "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d",
                "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"
            ],
            "version": "==0.4.3"
        },
        "nbclient": {
            "hashes": [
                "sha256:03e857bea3012377289daa1e1c1651f4fc0295bcd109ccd36a337efcdbebaed7",
                "sha256:751516992f34b58172bad54eef1e4bf7e4f4460d58e255ca1a4e5c9649476007"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==0.5.11"
        },
        "nbconvert": {
            "hashes": [
                "sha256:7b006ae9979af56200e7fa3db39d9d12c99e811e8843b05dbe518e5b754bcb2e",
                "sha256:eb2803db18f6facce6bf3b01b684fe47907994bd156d15eaccdf011e3d7f8164"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==6.4.2"
        },
        "nbformat": {
            "hashes": [
                "sha256:b516788ad70771c6250977c1374fcca6edebe6126fd2adb5a69aa5c2356fd1c8",
                "sha256:eb8447edd7127d043361bc17f2f5a807626bc8e878c7709a1c647abda28a9171"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==5.1.3"
        },
        "nest-asyncio": {
            "hashes": [
                "sha256:3fdd0d6061a2bb16f21fe8a9c6a7945be83521d81a0d15cff52e9edee50101d6",
                "sha256:f969f6013a16fadb4adcf09d11a68a4f617c6049d7af7ac2c676110169a63abd"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==1.5.4"
        },
        "notebook": {
            "hashes": [
                "sha256:1e985c9dc6f678bdfffb9dc657306b5469bfa62d73e03f74e8defbf76d284312",
                "sha256:3e702fcc54b8ae597533c3864793b7a1e971dec9e112f67235828d8a798fd654"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==6.4.8"
        },
        "numba": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version < '3.11' and python_version >= '3.7'",
            "version": "==0.55.1"
        },
        "numpy": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version < '3.11' and python_version >= '3.7'",
            "version": "==1.21.5"
        },
        "osqp": {
            "hashes": [
                OMMITED
            ],
            "version": "==0.6.2.post5"
        },
        "packaging": {
            "hashes": [
                "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb",
                "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==21.3"
        },
        "pandas": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_full_version >= '3.7.1'",
            "version": "==1.3.0"
        },
        "pandocfilters": {
            "hashes": [
                "sha256:0b679503337d233b4339a817bfc8c50064e2eff681314376a47cb582305a7a38",
                "sha256:33aae3f25fd1a026079f5d27bdd52496f0e0803b3469282162bafdcbdf6ef14f"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.5.0"
        },
        "parso": {
            "hashes": [
                "sha256:8c07be290bb59f03588915921e29e8a50002acaf2cdc5fa0e0114f91709fafa0",
                "sha256:c001d4636cd3aecdaf33cbb40aebb59b094be2a74c556778ef5576c175e19e75"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.8.3"
        },
        "pathspec": {
            "hashes": [
                "sha256:7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a",
                "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"
            ],
            "version": "==0.9.0"
        },
        "patsy": {
            "hashes": [
                "sha256:5053de7804676aba62783dbb0f23a2b3d74e35e5bfa238b88b7cbf148a38b69d",
                "sha256:cc80955ae8c13a7e7c4051eda7b277c8f909f50bc7d73e124bc38e2ee3d95041"
            ],
            "version": "==0.5.2"
        },
        "pexpect": {
            "hashes": [
                "sha256:0b48a55dcb3c05f3329815901ea4fc1537514d6ba867a152b581d69ae3710937",
                "sha256:fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"
            ],
            "markers": "sys_platform != 'win32'",
            "version": "==4.8.0"
        },
        "pickleshare": {
            "hashes": [
                "sha256:87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca",
                "sha256:9649af414d74d4df115d5d718f82acb59c9d418196b7b4290ed47a12ce62df56"
            ],
            "version": "==0.7.5"
        },
        "pillow": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==9.0.1"
        },
        "platformdirs": {
            "hashes": [
                "sha256:30671902352e97b1eafd74ade8e4a694782bd3471685e78c32d0fdfd3aa7e7bb",
                "sha256:8ec11dfba28ecc0715eb5fb0147a87b1bf325f349f3da9aab2cd6b50b96b692b"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==2.5.0"
        },
        "plotly": {
            "hashes": [
                "sha256:20277d211ea0e00e2a86d31e9f865a1ab45a7b17576f3bb865992ecbf15db093",
                "sha256:d86e44ebde38f4753dff982ab9b5e03cf872aab8fdf53a403e999ed378154331"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==5.6.0"
        },
        "INTERNAL-PACKAGE": {
            "hashes": [
                "sha256:9160949fc99ae331b842a673c7fc94ab31c8618109e26a78e5cf8bb6059c647b",
                "sha256:b7d2e60ce749c41415c3767e4bb56188a7575c293b0de2a7019b247ad592d584"
            ],
            "index": "pypi",
            "version": "==3.1.4"
        },
        "prometheus-client": {
            "hashes": [
                "sha256:357a447fd2359b0a1d2e9b311a0c5778c330cfbe186d880ad5a6b39884652316",
                "sha256:ada41b891b79fca5638bd5cfe149efa86512eaa55987893becd2c6d8d0a5dfc5"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.13.1"
        },
        "prompt-toolkit": {
            "hashes": [
                "sha256:30129d870dcb0b3b6a53efdc9d0a83ea96162ffd28ffe077e94215b233dc670c",
                "sha256:9f1cd16b1e86c2968f2519d7fb31dd9d669916f515612c269d14e9ed52b51650"
            ],
            "markers": "python_full_version >= '3.6.2'",
            "version": "==3.0.28"
        },
        "property-cached": {
            "hashes": [
                "sha256:135fc059ec969c1646424a0db15e7fbe1b5f8c36c0006d0b3c91ba568c11e7d8",
                "sha256:3e9c4ef1ed3653909147510481d7df62a3cfb483461a6986a6f1dcd09b2ebb73"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==1.6.4"
        },
        "ptyprocess": {
            "hashes": [
                "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35",
                "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"
            ],
            "version": "==0.7.0"
        },
        "pure-eval": {
            "hashes": [
                "sha256:01eaab343580944bc56080ebe0a674b39ec44a945e6d09ba7db3cb8cec289350",
                "sha256:2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3"
            ],
            "version": "==0.2.2"
        },
        "pycparser": {
            "hashes": [
                "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9",
                "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"
            ],
            "version": "==2.21"
        },
        "pygments": {
            "hashes": [
                "sha256:44238f1b60a76d78fc8ca0528ee429702aae011c265fe6a8dd8b63049ae41c65",
                "sha256:4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==2.11.2"
        },
        "pyparsing": {
            "hashes": [
                "sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea",
                "sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.0.7"
        },
        "pyrsistent": {
            "hashes": [
               OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==0.18.1"
        },
        "python-dateutil": {
            "hashes": [
                "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86",
                "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'",
            "version": "==2.8.2"
        },
        "pytz": {
            "hashes": [
                "sha256:3672058bc3453457b622aab7a1c3bfd5ab0bdae451512f6cf25f64ed37f5b87c",
                "sha256:acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326"
            ],
            "version": "==2021.3"
        },
        "pyzmq": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.6'",
            "version": "==22.3.0"
        },
        "qdldl": {
            "hashes": [
                OMMITED
            ],
            "version": "==0.1.5.post0"
        },
        "requests": {
            "hashes": [
                "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61",
                "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'",
            "version": "==2.27.1"
        },
        "riskfolio-lib": {
            "hashes": [
                "sha256:01abe4808ab07257c7eba5fe4910b4a5e14a98d362c9f118e8d0df9e69d21f1f",
                "sha256:254819c6c24127ee9d6a84dacaf02eac0c34b8a9a1e948f529d03620c4831aee"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==0.4.0"
        },
        "sanpy": {
            "hashes": [
                "sha256:34ce3a59c726177ed6a70e128c49b9e2dfd517e98b9569e0d4f67b956920e465",
                "sha256:5370855983a12b5c3e05188f5c84300cad673882e8ab63af1822c3e4d69af9fc"
            ],
            "version": "==0.8.12"
        },
        "scikit-learn": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==1.0.2"
        },
        "scipy": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version < '3.11' and python_version >= '3.8'",
            "version": "==1.8.0"
        },
        "scs": {
            "hashes": [
                OMMITED
            ],
            "version": "==3.1.0"
        },
        "send2trash": {
            "hashes": [
                "sha256:d2c24762fd3759860a0aff155e45871447ea58d2be6bdd39b5c8f966a0c99c2d",
                "sha256:f20eaadfdb517eaca5ce077640cb261c7d2698385a6a0f072a4a5447fd49fa08"
            ],
            "version": "==1.8.0"
        },
        "setuptools": {
            "hashes": [
                "sha256:2347b2b432c891a863acadca2da9ac101eae6169b1d3dfee2ec605ecd50dbfe5",
                "sha256:e4f30b9f84e5ab3decf945113119649fec09c1fc3507c6ebffec75646c56e62b"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==60.9.3"
        },
        "six": {
            "hashes": [
                "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
                "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'",
            "version": "==1.16.0"
        },
        "stack-data": {
            "hashes": [
                "sha256:45692d41bd633a9503a5195552df22b583caf16f0b27c4e58c98d88c8b648e12",
                "sha256:999762f9c3132308789affa03e9271bbbe947bf78311851f4d485d8402ed858e"
            ],
            "version": "==0.2.0"
        },
        "statsmodels": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.7'",
            "version": "==0.13.2"
        },
        "tenacity": {
            "hashes": [
                "sha256:43242a20e3e73291a28bcbcacfd6e000b02d3857a9a9fff56b297a27afdc932f",
                "sha256:f78f4ea81b0fabc06728c11dc2a8c01277bfc5181b321a4770471902e3eb844a"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==8.0.1"
        },
        "terminado": {
            "hashes": [
                "sha256:5b82b5c6e991f0705a76f961f43262a7fb1e55b093c16dca83f16384a7f39b7b",
                "sha256:f446b522b50a7aa68b5def0a02893978fb48cb82298b0ebdae13003c6ee6f198"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==0.13.1"
        },
        "testpath": {
            "hashes": [
                "sha256:1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417",
                "sha256:8044f9a0bab6567fc644a3593164e872543bb44225b0e24846e2c89237937589"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==0.5.0"
        },
        "threadpoolctl": {
            "hashes": [
                "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b",
                "sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.1.0"
        },
        "tomli": {
            "hashes": [
                "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc",
                "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==2.0.1"
        },
        "tornado": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.5'",
            "version": "==6.1"
        },
        "traitlets": {
            "hashes": [
                "sha256:059f456c5a7c1c82b98c2e8c799f39c9b8128f6d0d46941ee118daace9eb70c7",
                "sha256:2d313cc50a42cd6c277e7d7dc8d4d7fedd06a2c215f78766ae7b1a66277e0033"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==5.1.1"
        },
        "typing-extensions": {
            "hashes": [
                "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42",
                "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"
            ],
            "markers": "python_version < '3.10'",
            "version": "==4.1.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:000ca7f471a233c2251c6c7023ee85305721bfdf18621ebff4fd17a8653427ed",
                "sha256:0e7c33d9a63e7ddfcb86780aac87befc2fbddf46c58dbb487e0855f7ceec283c"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4.0'",
            "version": "==1.26.8"
        },
        "vectorbt": {
            "hashes": [
                "sha256:5c58cc85c0ecdb47637c912e8027032ddc84c1d243f01f47925f8e2414300916"
            ],
            "markers": "python_version >= '3.6' and python_version < '3.9'",
            "version": "==0.15.5"
        },
        "wcwidth": {
            "hashes": [
                "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784",
                "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
            ],
            "version": "==0.2.5"
        },
        "webencodings": {
            "hashes": [
                "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78",
                "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
            ],
            "version": "==0.5.1"
        },
        "widgetsnbextension": {
            "hashes": [
                "sha256:763a9fdc836d141fa080005a886d63f66f73d56dba1fb5961afc239c77708569",
                "sha256:e0731a60ba540cd19bbbefe771a9076dcd2dde90713a8f87f27f53f2d1db7727"
            ],
            "version": "==3.5.2"
        },
        "xlsxwriter": {
            "hashes": [
                "sha256:1aa65166697c42284e82f5bf9a33c2e913341eeef2b262019c3f5b5334768765",
                "sha256:53005f03e8eb58f061ebf41d5767c7495ee0772c2396fe26b7e0ca22fa9c2570"
            ],
            "markers": "python_version >= '3.4'",
            "version": "==3.0.2"
        },
        "yarl": {
            "hashes": [
                OMMITED
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.7.2"
        },
        "zipp": {
            "hashes": [
                "sha256:9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d",
                "sha256:b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375"
            ],
            "markers": "python_version < '3.10'",
            "version": "==3.7.0"
        }
    },
    "develop": {}
}

Dzeri96 avatar Feb 19 '22 00:02 Dzeri96

@Dzeri96 When I made the requirements.txt I got a more detailed error. Please see:

mdavis@Matts-MBP pipenv-4962 % cat requirements.txt
numpy
pandas
riskfolio-lib==0.4.0
vectorbt==0.15.5
sanpy==0.8.12
asyncio
aiohttp
iso8601

And then I ran pipenv install -r which yielded:

Requirements file provided! Importing into Pipfile...
Pipfile.lock (fb3310) out of date, updating to (961e07)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!

CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement vectorbt==0.15.5 (from versions: 0.10, 0.11, 0.12, 0.13, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.17.6, 0.17.7, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.21.0, 0.22.0, 0.23.0, 0.23.1, 0.23.2)
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 743, in _main
[ResolutionFailure]:       resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 704, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 685, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils.py", line 1377, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils.py", line 1106, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils.py", line 884, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for vectorbt==0.15.5

I am not sure why, it looks like there is a source distribution for it here: https://pypi.org/project/vectorbt/0.15.5/#files It seems also pip itself cannot do it:

(Projects) mdavis@Matts-MBP Projects % pip install vectorbt==0.15.5
ERROR: Could not find a version that satisfies the requirement vectorbt==0.15.5 (from versions: 0.10, 0.11, 0.12, 0.13, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.17.6, 0.17.7, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.21.0, 0.22.0, 0.23.0, 0.23.1, 0.23.2)
ERROR: No matching distribution found for vectorbt==0.15.5

Digging a little deeper, it seems yours and my Python is too new. Well it says your system python is 3.8, but that you also have 3.9 available. I downgraded to 3.8 and it just worked, so I suspect you are actually not on 3.8 but 3.9 which is actually the issue.

  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/f4/ab/ee903c27de13000c1453f0750345617805ad168cfa5458890abcdff88ecd/vectorbt-0.15.0-py3-none-any.whl#sha256=fa8835a0d0603ebfd149f073ae9452b5ad7427d6cd114d834f2d87081b5b4a06 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/65/05/b26e06817f1bd285a338a0789f31ca6f84ad2f483de05d4bde1b3a9ad40f/vectorbt-0.15.0.tar.gz#sha256=94393f50e494e79a82160eb7d70c66e1c8d613e618a2f5ac66ab24a69e9f453c (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/f8/6d/1246a279cb72d5ebed0514b89cb3f99afe36903103fd5638d0ad36dcdbd5/vectorbt-0.15.1.tar.gz#sha256=826a108c61d791016b77a86da0e4e340541a8728e3206b8f02ae103909bd4f98 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/f4/96/b33600dbe8bb63b888cf0d0f490f72791705240b86be4d812a6b3c57023a/vectorbt-0.15.2.tar.gz#sha256=f353c1a15c42f774d4e2702a124c6e809add281d5013307e70a71e55327c6b87 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/2a/a4/47812d0373e63105baabf3415dc4bb264fb6e43ad87d3ed2381f7ccbb4f8/vectorbt-0.15.3.tar.gz#sha256=f5c5e3944bb16e6240251a0821468bac728601458c0d93ecb9e1ff6a56626a02 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/63/31/cc5c7f510b46b651fd0f172345e3dcd416d490cd82471649f97dac499dfc/vectorbt-0.15.4.tar.gz#sha256=c34bdfe7f7c0d0f22745f93993d6721907ba261170c03cfb5b25dc80608bbf6c (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/83/73/00a3906059d94e9321bdf2ab87dfcf22ba3f387ee0bf9c48b86176d1514b/vectorbt-0.15.5.tar.gz#sha256=5c58cc85c0ecdb47637c912e8027032ddc84c1d243f01f47925f8e2414300916 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/37/e3/6a17f83099efd261ff7793494b27b78c7eaa35f0d7ca405b60bbba52f62b/vectorbt-0.15.6.tar.gz#sha256=bb43de4451474bf20aaad67309f6ed365965f7ce2ffb37bbef3e64c692792bb1 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/68/66/bd2637f66425ea7545d3220fa7fb47aeb496ef486538afbe72ff60e1594f/vectorbt-0.15.7.tar.gz#sha256=1dd564ca2639016d139b954aa78578f8b584af89b7ea52db675f8cca98ef9158 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/86/e2/bc3106c005901fc5f0cbbd8ee6b297cd3ecb3a96fba87da61940a5e12206/vectorbt-0.16.0.tar.gz#sha256=3d99298816da3f47b815e51bcb18e2abe5bd34528ffaf3a521f2099ddcd8ff71 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/1d/76/c02f467e586b27c286a927677a75e9d765fb251f239474d67058d96ec165/vectorbt-0.16.1.tar.gz#sha256=d5cab6d1916edb02566f520ab28cdf1908b04e27851bf497f0240f92c7567a1a (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/08/f4/0e07674376bfccb58b04db19fbb5b3665af7e9a49dd664788179f3579c7f/vectorbt-0.16.2.tar.gz#sha256=54d2719fa9dd45c264e194c943a85338c69e9c6e1b53f342e7cccc5e58570b8d (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/ed/2c/f4f841aca2229b23ea32e461d71c6d39e0cb9f0814135021ef57f940c071/vectorbt-0.16.3.tar.gz#sha256=f7782f1b442b6d619a99ee4b6e99d236da4ed6644c6f420d9cb492506aa92915 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/0a/09/e2ac91f21a66ef97ef1028a27deb109b64ffd00b111c9b3afd0911370fd8/vectorbt-0.16.4.tar.gz#sha256=d8914956ea374ff6182849218e87eedb80383accd1d11d731d0fb6b0f548b41d (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/ac/5a/b2319c39f32ce9fb5ade174fe21aabe452aa7258bf5162799101b8e7a16a/vectorbt-0.16.5.tar.gz#sha256=f1033ae3f8d92dbf36708c7024ee1c3f9e11fc1ac7a769bccebadefe6940a4f0 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/9c/27/ef900877ef5e40890ced6e1bd363fb8d96e8b051a90647180985737a7467/vectorbt-0.16.6.tar.gz#sha256=6117e66d711083827e569c72be7e0a0a9b617e117a104332930b21a3e86294a0 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/47/50/ccbb496efecd938a50594d899deea8bd4435b812274668698f9685d3cea6/vectorbt-0.17.0.tar.gz#sha256=0d44f6123afc1911d44833a5bc9293219ed745150ca10a1e7e1e1ace43060f02 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/59/bf/d7201b6077585c7caefcedd0d80169bab63316729d42ba4ef84222a2d602/vectorbt-0.17.1.tar.gz#sha256=4806cd5cc51963ccec072be866d49f709ce93266ae3f3d0c74bd20a9ab8d2cce (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/e2/a1/d75586ecb5494afc329604ae33355b02d89adda7171cc571bbb514a1a4ce/vectorbt-0.17.2.tar.gz#sha256=4744f26d11a799b1a9806af0514858bfe79932b720d863132ebb8be43d9a49f2 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/d2/e4/9cea72463667e44563daa20a6b0743671493dcd31a5cba952013a9477fc2/vectorbt-0.17.3.tar.gz#sha256=f3b5707858eafad41d6a4d4223e1017690f072090c9ea22752301c48c0694c34 (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/e6/88/3ae51daebe730801c317654df404a6588cdac5650156d7f477382b10b622/vectorbt-0.17.4.tar.gz#sha256=1577b502d15beb9b8f34cf6e1c17b50422b657ba0e79712df7d12ceb4181e6ec (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)
  Link requires a different Python (3.9.10 not in: '>=3.6, <3.9'): https://files.pythonhosted.org/packages/e6/48/31393df410e7f94f30f93f1c36a8b27d42dcbc565d6123f462f5d2a2d9c8/vectorbt-0.17.5.tar.gz#sha256=0d14f25a1deb4873161005d770131e98a5522e72e865478d42b8f696278cd54e (from https://pypi.org/simple/vectorbt/) (requires-python:>=3.6, <3.9)

matteius avatar Feb 19 '22 03:02 matteius

I guess I wasn't being clear enough. The packages I posted in the steps to replicate section are coming from our internal package, which is not available on pypi. You would need to add these to the list of packages already present in my Pipfile, which are:

flask-restx = "*"
requests = "*"
ddtrace = "*"
waitress = "*"
python-dotenv = "*"
JSON-log-formatter = "*"

After attempting installation in an amd64/python:3.8-buster container, which definitely does not have python 3.9, the locking reliably fails at (or after) trying to lock llvmlite:

INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.starting_round(42)
Reporter.adding_requirement(SpecifierRequirement('setuptools'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('setuptools'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
Reporter.adding_requirement(SpecifierRequirement('numpy<1.22,>=1.18'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('numpy<1.22,>=1.18'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
Reporter.adding_requirement(SpecifierRequirement('llvmlite<0.39,>=0.38.0rc1'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
INFO:pipenv.patched.notpip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('llvmlite<0.39,>=0.38.0rc1'), LinkCandidate('https://files.pythonhosted.org/packages/86/59/896b6b1a846e80d02c9b2becb03a681f816be6c4f796ecc252c0cfa9f8dc/numba-0.55.1-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=6d0042371880fa56ed58be27502b11a08bff0b6335f0ebde82af1a7aef5e1287 (from https://pypi.org/simple/numba/) (requires-python:>=3.7,<3.11)'))
✘ Locking Failed! 

Sorry if I wasted your time and thanks for any further help.

Dzeri96 avatar Feb 19 '22 09:02 Dzeri96

Update: After manually installing llvmlite before running pipenv install, the issue is solved, however it doesn't feel like a satisfying fix to the problem. It seems like we have two separate issues here:

  1. Pipenv doesn't produce an error message when it fails.
  2. The dependency resolution process is broken, if installing a package before it is required by a dependency fixes the problem.

Dzeri96 avatar Feb 19 '22 10:02 Dzeri96

Pipenv doesn't produce an error message when it fails.

@Dzeri96 Does it actually fail out, or just spin in locking or does it actually conclude for you in reasonable amount of time? This feels like another example of the infinity lock bug, at least when I use this Pipfile:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
numpy = "*"
pandas = "*"
vectorbt = "==0.15.5"
sanpy = "==0.8.12"
asyncio = "*"
aiohttp = "*"
iso8601 = "*"
Riskfolio-Lib = "==0.4.0"
flask-restx = "*"
requests = "*"
ddtrace = "*"
waitress = "*"
python-dotenv = "*"
JSON-log-formatter = "*"

[requires]
python_full_version = "3.8"

The dependency resolution process is broken, if installing a package before it is required by a dependency fixes the problem.

It is currently broken for some scenarios. I am having a real trouble getting to the bottom of what exactly is happening in the dependency resolver, but I feel like I am making progress in my debugger. Unfortunately I think this may require more than just my effort to figure out.

matteius avatar Feb 19 '22 17:02 matteius

It takes about 10 minutes on my M1 Macbook Air, depending on what has been downloaded previously, but it always definitely concludes with a message ✘ Locking Failed! (and nothing else). If I could help you with some further info let me know.

Dzeri96 avatar Feb 19 '22 20:02 Dzeri96

I am seeing this same error with a private code repo:

14:02:40 ❯ pipenv lock
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!

CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement sagemaker-teaching-assistant~=0.2.0 (from versions: none)
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/resolver.py", line 822, in _main
[ResolutionFailure]:       resolve_packages(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/resolver.py", line 771, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/resolver.py", line 751, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 1065, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 862, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/usr/local/Cellar/pipenv/2022.4.21/libexec/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 663, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for sagemaker-teaching-assistant~=0.2.0

delwaterman avatar Apr 25 '22 18:04 delwaterman

@delwaterman Your issue is more closely related to revised index restricted packages security feature. There are some threads that would be helpful to review: https://github.com/pypa/pipenv/issues/5053 https://github.com/pypa/pipenv/issues/5054

matteius avatar Apr 25 '22 18:04 matteius

@Dzeri96 Please try again with pipenv==2022.4.21

matteius avatar Apr 25 '22 18:04 matteius

@Dzeri96 Please try again with pipenv==2022.4.21

I will give a status update this week!

Dzeri96 avatar Apr 25 '22 18:04 Dzeri96

@delwaterman Your issue is more closely related to revised index restricted packages security feature. There are some threads that would be helpful to review: #5053 #5054

@matteius Thank you! Switching the order of the sources solved the underlying issue for me.

delwaterman avatar Apr 26 '22 01:04 delwaterman

@matteius So I've just tried running pipenv install in the project and can confirm that I'm getting a hefty error trace (included in this comment). Although the underlying problem of dependencies in my project is still present, it has nothing to to with this issue, which can be successfully closed! Please just check if the subprocess is still running error is expected.

Thank you for working on it and I'm glad my report made pipenv a bit better.

Full trace
Installing initially failed dependencies...
[pipenv.exceptions.InstallError]: Looking in indexes: https://pypi.org/simple, https://PRIVATE_REPO
[pipenv.exceptions.InstallError]: Collecting llvmlite==0.38.0
[pipenv.exceptions.InstallError]:   Using cached llvmlite-0.38.0.tar.gz (129 kB)
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): finished with status 'done'
[pipenv.exceptions.InstallError]: Building wheels for collected packages: llvmlite
[pipenv.exceptions.InstallError]:   Building wheel for llvmlite (setup.py): started
[pipenv.exceptions.InstallError]:   Building wheel for llvmlite (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]:   Running setup.py clean for llvmlite
[pipenv.exceptions.InstallError]: Failed to build llvmlite
[pipenv.exceptions.InstallError]: Installing collected packages: llvmlite
[pipenv.exceptions.InstallError]:     Running setup.py install for llvmlite: started
[pipenv.exceptions.InstallError]:     Running setup.py install for llvmlite: finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:    command: /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"'; __file__='"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-wheel-ci5y51y_
[pipenv.exceptions.InstallError]:        cwd: /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/
[pipenv.exceptions.InstallError]:   Complete output (11 lines):
[pipenv.exceptions.InstallError]:   running bdist_wheel
[pipenv.exceptions.InstallError]:   /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py
[pipenv.exceptions.InstallError]:   LLVM version... Traceback (most recent call last):
[pipenv.exceptions.InstallError]:     File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 220, in <module>
[pipenv.exceptions.InstallError]:       main()
[pipenv.exceptions.InstallError]:     File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 214, in main
[pipenv.exceptions.InstallError]:       main_posix('osx', '.dylib')
[pipenv.exceptions.InstallError]:     File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 134, in main_posix
[pipenv.exceptions.InstallError]:       raise RuntimeError(msg) from None
[pipenv.exceptions.InstallError]:   RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.
[pipenv.exceptions.InstallError]:   error: command '/Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python' failed with exit code 1
[pipenv.exceptions.InstallError]:   ----------------------------------------
[pipenv.exceptions.InstallError]:   ERROR: Failed building wheel for llvmlite
[pipenv.exceptions.InstallError]:     ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:      command: /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"'; __file__='"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-record-k02mlb81/install-record.txt --single-version-externally-managed --compile --install-headers /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/include/site/python3.8/llvmlite
[pipenv.exceptions.InstallError]:          cwd: /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/
[pipenv.exceptions.InstallError]:     Complete output (16 lines):
[pipenv.exceptions.InstallError]:     running install
[pipenv.exceptions.InstallError]:     /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
[pipenv.exceptions.InstallError]:       warnings.warn(
[pipenv.exceptions.InstallError]:     running build
[pipenv.exceptions.InstallError]:     got version from file /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/llvmlite/_version.py {'version': '0.38.0', 'full': 'f0365b91ce1e1f74c68785c6d0067f32f89857d9'}
[pipenv.exceptions.InstallError]:     running build_ext
[pipenv.exceptions.InstallError]:     /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py
[pipenv.exceptions.InstallError]:     LLVM version... Traceback (most recent call last):
[pipenv.exceptions.InstallError]:       File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 220, in <module>
[pipenv.exceptions.InstallError]:         main()
[pipenv.exceptions.InstallError]:       File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 214, in main
[pipenv.exceptions.InstallError]:         main_posix('osx', '.dylib')
[pipenv.exceptions.InstallError]:       File "/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/ffi/build.py", line 134, in main_posix
[pipenv.exceptions.InstallError]:         raise RuntimeError(msg) from None
[pipenv.exceptions.InstallError]:     RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.
[pipenv.exceptions.InstallError]:     error: command '/Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python' failed with exit code 1
[pipenv.exceptions.InstallError]:     ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"'; __file__='"'"'/private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-install-fgve494t/llvmlite_e3d6d363d7044e7dada533d6767c9ea8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0h/nr2psp496lb0n598s75fxq3c0000gn/T/pip-record-k02mlb81/install-record.txt --single-version-externally-managed --compile --install-headers /Users/dzeri/.local/share/virtualenvs/quant-pipenv-test-_9li6w8S/include/site/python3.8/llvmlite Check the logs for full command output.
ERROR: Couldn't install package: llvmlite
 Package installation failed...
  ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2/3 — 00:00:13
/opt/homebrew/Cellar/[email protected]/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 49172 is still running
  _warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='utf-8'>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=9 encoding='utf-8'>
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Dzeri96 avatar Apr 27 '22 07:04 Dzeri96

I got a similar error on my Mac M1 today with the latest pipenv trying to install a new project, I kept getting ERROR: No matching distribution found for vectorbt==0.15.5 even though numpy and the other packages like requests I was trying to install do not depend on it. Strangely, by creating the Pipfile manually the problem went away:

mdavis@L-X7M5FK2L6M numpy % pipenv install requests
/opt/homebrew/lib/python3.9/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 2022-01-19-15-36-18-808939 is an invalid version and will not be supported in a future release
  warnings.warn(
Creating a virtualenv for this project...
Pipfile: /Users/mdavis/Projects/Pipfile
Using /opt/homebrew/bin/python3.9 (3.9.13) to create virtualenv...
⠴ Creating virtual environment...created virtual environment CPython3.9.13.final.0-64 in 336ms
  creator CPython3Posix(dest=/Users/mdavis/.virtualenvs/Projects-cyD0_Icj, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/mdavis/Library/Application Support/virtualenv)
    added seed packages: pip==22.2.2, setuptools==63.4.1, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/mdavis/.virtualenvs/Projects-cyD0_Icj
Installing requests...
Adding requests to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (fb3310) out of date, updating to (e014a4)...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!

CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Ignored the following versions that require a different python version: 0.15.0 Requires-Python >=3.6, <3.9; 0.15.1 Requires-Python >=3.6, <3.9; 0.15.2 Requires-Python >=3.6, <3.9; 0.15.3 Requires-Python >=3.6, <3.9; 0.15.4 Requires-Python >=3.6, <3.9; 0.15.5 Requires-Python >=3.6, <3.9; 0.15.6 Requires-Python >=3.6, <3.9; 0.15.7 Requires-Python >=3.6, <3.9; 0.16.0 Requires-Python >=3.6, <3.9; 0.16.1 Requires-Python >=3.6, <3.9; 0.16.2 Requires-Python >=3.6, <3.9; 0.16.3 Requires-Python >=3.6, <3.9; 0.16.4 Requires-Python >=3.6, <3.9; 0.16.5 Requires-Python >=3.6, <3.9; 0.16.6 Requires-Python >=3.6, <3.9; 0.17.0 Requires-Python >=3.6, <3.9; 0.17.1 Requires-Python >=3.6, <3.9; 0.17.2 Requires-Python >=3.6, <3.9; 0.17.3 Requires-Python >=3.6, <3.9; 0.17.4 Requires-Python >=3.6, <3.9; 0.17.5 Requires-Python >=3.6, <3.9
CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement vectorbt==0.15.5 (from versions: 0.17.6, 0.17.7, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.21.0, 0.22.0, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.24.0)
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 824, in _main
[[source]]
[ResolutionFailure]:       resolve_packages(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 772, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/resolver.py", line 751, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils/resolver.py", line 1089, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils/resolver.py", line 882, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/opt/homebrew/lib/python3.9/site-packages/pipenv/utils/resolver.py", line 686, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for vectorbt==0.15.5
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
numpy = "*"
requests = "*"
cryptography = "*"

[requires]
python_full_version = "3.9.10"
{
    "_meta": {
        "hash": {
            "sha256": "9ad740326b88acc5f386e6c63c873b8880ff2ea0f486e9d5ed7b435bad08f4b1"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_full_version": "3.9.10"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certifi": {
            "hashes": [
                "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d",
                "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2022.6.15"
        },
        "cffi": {
            "hashes": [
                "sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5",
                "sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef",
                "sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104",
                "sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426",
                "sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405",
                "sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375",
                "sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a",
                "sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e",
                "sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc",
                "sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf",
                "sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185",
                "sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497",
                "sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3",
                "sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35",
                "sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c",
                "sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83",
                "sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21",
                "sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca",
                "sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984",
                "sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac",
                "sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd",
                "sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee",
                "sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a",
                "sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2",
                "sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192",
                "sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7",
                "sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585",
                "sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f",
                "sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e",
                "sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27",
                "sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b",
                "sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e",
                "sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e",
                "sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d",
                "sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c",
                "sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415",
                "sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82",
                "sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02",
                "sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314",
                "sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325",
                "sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c",
                "sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3",
                "sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914",
                "sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045",
                "sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d",
                "sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9",
                "sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5",
                "sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2",
                "sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c",
                "sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3",
                "sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2",
                "sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8",
                "sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d",
                "sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d",
                "sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9",
                "sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162",
                "sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76",
                "sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4",
                "sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e",
                "sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9",
                "sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6",
                "sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b",
                "sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01",
                "sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0"
            ],
            "version": "==1.15.1"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845",
                "sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2.1.1"
        },
        "cryptography": {
            "hashes": [
                "sha256:190f82f3e87033821828f60787cfa42bff98404483577b591429ed99bed39d59",
                "sha256:2be53f9f5505673eeda5f2736bea736c40f051a739bfae2f92d18aed1eb54596",
                "sha256:30788e070800fec9bbcf9faa71ea6d8068f5136f60029759fd8c3efec3c9dcb3",
                "sha256:3d41b965b3380f10e4611dbae366f6dc3cefc7c9ac4e8842a806b9672ae9add5",
                "sha256:4c590ec31550a724ef893c50f9a97a0c14e9c851c85621c5650d699a7b88f7ab",
                "sha256:549153378611c0cca1042f20fd9c5030d37a72f634c9326e225c9f666d472884",
                "sha256:63f9c17c0e2474ccbebc9302ce2f07b55b3b3fcb211ded18a42d5764f5c10a82",
                "sha256:6bc95ed67b6741b2607298f9ea4932ff157e570ef456ef7ff0ef4884a134cc4b",
                "sha256:7099a8d55cd49b737ffc99c17de504f2257e3787e02abe6d1a6d136574873441",
                "sha256:75976c217f10d48a8b5a8de3d70c454c249e4b91851f6838a4e48b8f41eb71aa",
                "sha256:7bc997818309f56c0038a33b8da5c0bfbb3f1f067f315f9abd6fc07ad359398d",
                "sha256:80f49023dd13ba35f7c34072fa17f604d2f19bf0989f292cedf7ab5770b87a0b",
                "sha256:91ce48d35f4e3d3f1d83e29ef4a9267246e6a3be51864a5b7d2247d5086fa99a",
                "sha256:a958c52505c8adf0d3822703078580d2c0456dd1d27fabfb6f76fe63d2971cd6",
                "sha256:b62439d7cd1222f3da897e9a9fe53bbf5c104fff4d60893ad1355d4c14a24157",
                "sha256:b7f8dd0d4c1f21759695c05a5ec8536c12f31611541f8904083f3dc582604280",
                "sha256:d204833f3c8a33bbe11eda63a54b1aad7aa7456ed769a982f21ec599ba5fa282",
                "sha256:e007f052ed10cc316df59bc90fbb7ff7950d7e2919c9757fd42a2b8ecf8a5f67",
                "sha256:f2dcb0b3b63afb6df7fd94ec6fbddac81b5492513f7b0436210d390c14d46ee8",
                "sha256:f721d1885ecae9078c3f6bbe8a88bc0786b6e749bf32ccec1ef2b18929a05046",
                "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327",
                "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9"
            ],
            "index": "pypi",
            "version": "==37.0.4"
        },
        "idna": {
            "hashes": [
                "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
                "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==3.3"
        },
        "numpy": {
            "hashes": [
                "sha256:17e5226674f6ea79e14e3b91bfbc153fdf3ac13f5cc54ee7bc8fdbe820a32da0",
                "sha256:2bd879d3ca4b6f39b7770829f73278b7c5e248c91d538aab1e506c628353e47f",
                "sha256:4f41f5bf20d9a521f8cab3a34557cd77b6f205ab2116651f12959714494268b0",
                "sha256:5593f67e66dea4e237f5af998d31a43e447786b2154ba1ad833676c788f37cde",
                "sha256:5e28cd64624dc2354a349152599e55308eb6ca95a13ce6a7d5679ebff2962913",
                "sha256:633679a472934b1c20a12ed0c9a6c9eb167fbb4cb89031939bfd03dd9dbc62b8",
                "sha256:806970e69106556d1dd200e26647e9bee5e2b3f1814f9da104a943e8d548ca38",
                "sha256:806cc25d5c43e240db709875e947076b2826f47c2c340a5a2f36da5bb10c58d6",
                "sha256:8247f01c4721479e482cc2f9f7d973f3f47810cbc8c65e38fd1bbd3141cc9842",
                "sha256:8ebf7e194b89bc66b78475bd3624d92980fca4e5bb86dda08d677d786fefc414",
                "sha256:8ecb818231afe5f0f568c81f12ce50f2b828ff2b27487520d85eb44c71313b9e",
                "sha256:8f9d84a24889ebb4c641a9b99e54adb8cab50972f0166a3abc14c3b93163f074",
                "sha256:909c56c4d4341ec8315291a105169d8aae732cfb4c250fbc375a1efb7a844f8f",
                "sha256:9b83d48e464f393d46e8dd8171687394d39bc5abfe2978896b77dc2604e8635d",
                "sha256:ac987b35df8c2a2eab495ee206658117e9ce867acf3ccb376a19e83070e69418",
                "sha256:b78d00e48261fbbd04aa0d7427cf78d18401ee0abd89c7559bbf422e5b1c7d01",
                "sha256:b8b97a8a87cadcd3f94659b4ef6ec056261fa1e1c3317f4193ac231d4df70215",
                "sha256:bd5b7ccae24e3d8501ee5563e82febc1771e73bd268eef82a1e8d2b4d556ae66",
                "sha256:bdc02c0235b261925102b1bd586579b7158e9d0d07ecb61148a1799214a4afd5",
                "sha256:be6b350dfbc7f708d9d853663772a9310783ea58f6035eec649fb9c4371b5389",
                "sha256:c403c81bb8ffb1c993d0165a11493fd4bf1353d258f6997b3ee288b0a48fce77",
                "sha256:cf8c6aed12a935abf2e290860af8e77b26a042eb7f2582ff83dc7ed5f963340c",
                "sha256:d98addfd3c8728ee8b2c49126f3c44c703e2b005d4a95998e2167af176a9e722",
                "sha256:dc76bca1ca98f4b122114435f83f1fcf3c0fe48e4e6f660e07996abf2f53903c",
                "sha256:dec198619b7dbd6db58603cd256e092bcadef22a796f778bf87f8592b468441d",
                "sha256:df28dda02c9328e122661f399f7655cdcbcf22ea42daa3650a26bce08a187450",
                "sha256:e603ca1fb47b913942f3e660a15e55a9ebca906857edfea476ae5f0fe9b457d5",
                "sha256:ecfdd68d334a6b97472ed032b5b37a30d8217c097acfff15e8452c710e775524"
            ],
            "index": "pypi",
            "version": "==1.23.2"
        },
        "pycparser": {
            "hashes": [
                "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9",
                "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"
            ],
            "version": "==2.21"
        },
        "requests": {
            "hashes": [
                "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983",
                "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"
            ],
            "index": "pypi",
            "version": "==2.28.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e",
                "sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'",
            "version": "==1.26.12"
        }
    },
    "develop": {}
}

matteius avatar Aug 26 '22 23:08 matteius

Sorry to comment on this closed issue, but I got a similar problem.

I'm working on a project that have 3 categories of dependencies, the default one ("packages"), dev-packages and a "prod" category.

The "prod" category contains psycopg[c] which cannot be installed on my local dev environment (Windows).

When installing dependencies, pipenv tries to lock all categories, and fails as expected.

But there's no clear error message, whick took me long to figure out it's psycopg[c] that is stopping me from installing.

Here's the error message:

> pipenv install -d
Pipfile.lock (7eb2ec) out of date, updating to (a59309)...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
Success!
Locking [dev-packages] dependencies...                                                                                                                                                                                                      
Building requirements...
Resolving dependencies...
Success!
Locking [prod] dependencies...                                                                                                                                                                                                              
Building requirements...
Resolving dependencies...
Locking Failed!
[==  ] Locking...False
ERROR:pip.subprocessor:Preparing metadata (pyproject.toml) exited with 1
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\resolver.py", line 645, in _main
[ResolutionFailure]:       resolve_packages(
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\resolver.py", line 612, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:       ^^^^^^^^
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\resolver.py", line 592, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:       ^^^^^^^^^^^^^
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\utils\resolver.py", line 906, in resolve_deps
[ResolutionFailure]:       results, hashes, internal_resolver = actually_resolve_deps(
[ResolutionFailure]:       ^^^^^^^^^^^^^^^^^^^^^^
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\utils\resolver.py", line 679, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\utils\resolver.py", line 442, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv run pip install <requirement_name> to bypass this mechanism, then run $ pipenv graph to inspect the versions actually installed in the virtualenv.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: metadata generation failed

Traceback (most recent call last):                                                                                                                                                                                                          
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\james\AppData\Roaming\Python\Python311\Scripts\pipenv.exe\__main__.py", line 7, in <module>
    # when invoked as python -m pip <command>
                 ^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\cli\options.py", line 58, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\cli\command.py", line 209, in install
    do_install(
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\routines\install.py", line 164, in do_install
    do_init(
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\routines\install.py", line 648, in do_init
    do_lock(
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\routines\lock.py", line 65, in do_lock
    venv_resolve_deps(
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\utils\resolver.py", line 847, in venv_resolve_deps
    c = resolve(cmd, st, project=project)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\james\AppData\Roaming\Python\Python311\site-packages\pipenv\utils\resolver.py", line 716, in resolve
    raise RuntimeError("Failed to lock Pipfile.lock!")
RuntimeError: Failed to lock Pipfile.lock!

When I specify the category to install with pipenv sync --categories packages it succeeds. So the behaviour is correct but the error message i don't know if can be improved.

edwardzjl avatar Oct 28 '23 04:10 edwardzjl