Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a version that satisfies the requirement ruamel-yaml==0.15.72 #2977

Closed
imomaliev opened this issue Oct 10, 2018 · 12 comments
Closed

Comments

@imomaliev
Copy link
Contributor

imomaliev commented Oct 10, 2018

Issue description

When building with docker installation fails

Expected result

Successful build

Actual result

An error occurred while installing ruamel-yaml==0.15.72 --hash=sha256:10a8912a32f51eed40e32aa76e2700bb7bfc92f321a0e98409e3b1132bac4519 --hash=sha256:1224d1f6abefda0de53ded39e51fc5e0bc0bb496f9e2f6566d3abe2f03cf54c8 --hash=sha256:1d51f69dd8dd6fc58b8b3ca7aef87580b940ad0764ac1ea86f8b64feb555d5db --hash=sha256:3bc6377f623e48959bbc4eca07db614c9c0e374b9eea79feff93258aebafc38d --hash=sha256:3df98993f7e20864e60cba10606e14ad109175bb78c1129b06d38a0492beac36 --hash=sha256:4796caffcbb81929d8be643df46c74f1825fff4dc0f7e132ea10f727ef89a0cd --hash=sha256:57d1a4c2d158f53040a9d8a611e79a1235be3418a1f8370145493adbab0ebbeb --hash=sha256:6655d70b2e2f6b40220ea4c6caac5bed15cb477bbaf7c6687029f3c82a45bca0 --hash=sha256:7eff959cf0a792cb5650b5f50cc8bb5c53b3ab136695268c66ccd3cd332ba2b9 --hash=sha256:867e2d0f7d5b4b3dbd9810fa601a9cb663ca8eec45c1f4b3bf56281894c47119 --hash=sha256:9e5179afa032cd64216f9c508b5428cbe3cc42bb6b7dbb33e7cbf64c38eb2f2d --hash=sha256:a2fbb7e2e09390758f704dd04a17643108a3494292c49e9f4a10f248316ec2ae --hash=sha256:a3fde21c981928fde30c5ddded90d313487522c3e7b2011b20b4a17d82e14926 --hash=sha256:ab0353559bd1a47e67e287090daa04bed7c19ec887bf311010fe69ddb40fd8eb --hash=sha256:ab7ef6d1ca0dc914fd66eacc8a5cfbf47f5530fe106c81f645b55cff2e1da984 --hash=sha256:ab993f82687407dd8f478fb1c1213735524b10f1aa296391261838ee41331ed0 --hash=sha256:bd76a9aee355306bfc173865e891885a63888ee15b0e358a66d697bb5c9e208a --hash=sha256:c1483c3de2010b5eb7dfbf6a2484e59d96c5c3a96f67b6ef4dd801471a21195b --hash=sha256:dbf52838c2fd987417cf820aed3a7dea0ba19dfe47c978361afb00cc1366264b --hash=sha256:edce27e000efe88d280e05984175a38835b32929be5c893a8dab6d5af4090995 --hash=sha256:f037812ac7360201eef2aa6d977836b2a31419c65ce706c5e0bfb176a99efa04! Will try again.
Installing initially failed dependencies…
Collecting ruamel-yaml==0.15.72

  Could not find a version that satisfies the requirement ruamel-yaml==0.15.72 (from -r /tmp/pipenv-c5j86lnj-requirements/pipenv-yzvh_qko-requirement.txt (line 1)) (from versions: 0.15.41, 0.15.42)
No matching distribution found for ruamel-yaml==0.15.72 (from -r /tmp/pipenv-c5j86lnj-requirements/pipenv-yzvh_qko-requirement.txt (line 1))
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

The command '/bin/sh -c pipenv install --system --ignore-pipfile --dev' returned a non-zero code: 1

Steps to replicate

Dockerfile

FROM python:3.7-alpine3.8

RUN apk update && apk upgrade \
    && pip install pipenv

ENV PYTHONUNBUFFERED=1 \
    PYTHONIOENCODING=UTF-8

WORKDIR /project/backend

COPY Pipfile Pipfile.lock /project/backend/

RUN pipenv install --system --ignore-pipfile --dev --verbose
docker build -t drf_yasg .

$ pipenv --support

Pipenv version: '2018.10.9'

Pipenv location: '/usr/local/Cellar/pipenv/2018.10.9/libexec/lib/python3.7/site-packages/pipenv'

Python location: '/usr/local/Cellar/pipenv/2018.10.9/libexec/bin/python3.7'

Python installations found:

  • 3.7.0: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7
  • 3.6.5: /Users/batiskaf/.pyenv/versions/3.6.5/bin/python3.6
  • 3.6.5: /Users/batiskaf/.pyenv/versions/3.6.5/bin/python3.6m
  • 3.5.5: /Users/batiskaf/.pyenv/versions/3.5.5/bin/python3.5
  • 3.5.5: /Users/batiskaf/.pyenv/versions/3.5.5/bin/python3.5m
  • 2.7.10: /usr/bin/python
  • 2.7.10: /usr/bin/pythonw
  • 2.7.10: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.7.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT '
                     '2018; root:xnu-4570.71.2~1/RELEASE_X86_64',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • PATH
  • MANPATH
  • TERM_PROGRAM
  • PYENV_ROOT
  • TERM
  • SHELL
  • TMPDIR
  • PIPENV_VENV_IN_PROJECT
  • Apple_PubSub_Socket_Render
  • TERM_PROGRAM_VERSION
  • TERM_SESSION_ID
  • LC_ALL
  • USER
  • SSH_AUTH_SOCK
  • TMUX
  • _
  • PWD
  • EDITOR
  • LANG
  • TMUX_PANE
  • XPC_FLAGS
  • XPC_SERVICE_NAME
  • HISTCONTROL
  • SHLVL
  • HOME
  • VIEWER
  • XDG_CONFIG_HOME
  • HOMEBREW_PREFIX
  • LOGNAME
  • LC_CTYPE
  • FZF_DEFAULT_COMMAND
  • DISPLAY
  • __CF_USER_TEXT_ENCODING
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

  • PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

  • PATH: /usr/local/Cellar/pipenv/2018.10.9/libexec/tools:/usr/local/opt/python/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/batiskaf/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/opt/python/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/batiskaf/.pyenv/bin:/usr/local/sbin:/usr/local/sbin
  • SHELL: /usr/local/bin/bash
  • EDITOR: /usr/local/bin/nvim
  • LANG: en_US.UTF-8
  • PWD: /Users/batiskaf/Development/Python/install_drf_yasg

Contents of Pipfile ('/Users/batiskaf/Development/Python/install_drf_yasg/Pipfile'):

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

[packages]
ruamel-yaml = "*"

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/Users/batiskaf/Development/Python/install_drf_yasg/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "f2fcef2ea28fc899d2fe2313437270070d265128280a9d45c94df40e90d7f175"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "ruamel-yaml": {
            "hashes": [
                "sha256:10a8912a32f51eed40e32aa76e2700bb7bfc92f321a0e98409e3b1132bac4519",
                "sha256:1224d1f6abefda0de53ded39e51fc5e0bc0bb496f9e2f6566d3abe2f03cf54c8",
                "sha256:1d51f69dd8dd6fc58b8b3ca7aef87580b940ad0764ac1ea86f8b64feb555d5db",
                "sha256:3bc6377f623e48959bbc4eca07db614c9c0e374b9eea79feff93258aebafc38d",
                "sha256:3df98993f7e20864e60cba10606e14ad109175bb78c1129b06d38a0492beac36",
                "sha256:4796caffcbb81929d8be643df46c74f1825fff4dc0f7e132ea10f727ef89a0cd",
                "sha256:57d1a4c2d158f53040a9d8a611e79a1235be3418a1f8370145493adbab0ebbeb",
                "sha256:6655d70b2e2f6b40220ea4c6caac5bed15cb477bbaf7c6687029f3c82a45bca0",
                "sha256:7eff959cf0a792cb5650b5f50cc8bb5c53b3ab136695268c66ccd3cd332ba2b9",
                "sha256:867e2d0f7d5b4b3dbd9810fa601a9cb663ca8eec45c1f4b3bf56281894c47119",
                "sha256:9e5179afa032cd64216f9c508b5428cbe3cc42bb6b7dbb33e7cbf64c38eb2f2d",
                "sha256:a2fbb7e2e09390758f704dd04a17643108a3494292c49e9f4a10f248316ec2ae",
                "sha256:a3fde21c981928fde30c5ddded90d313487522c3e7b2011b20b4a17d82e14926",
                "sha256:ab0353559bd1a47e67e287090daa04bed7c19ec887bf311010fe69ddb40fd8eb",
                "sha256:ab7ef6d1ca0dc914fd66eacc8a5cfbf47f5530fe106c81f645b55cff2e1da984",
                "sha256:ab993f82687407dd8f478fb1c1213735524b10f1aa296391261838ee41331ed0",
                "sha256:bd76a9aee355306bfc173865e891885a63888ee15b0e358a66d697bb5c9e208a",
                "sha256:c1483c3de2010b5eb7dfbf6a2484e59d96c5c3a96f67b6ef4dd801471a21195b",
                "sha256:dbf52838c2fd987417cf820aed3a7dea0ba19dfe47c978361afb00cc1366264b",
                "sha256:edce27e000efe88d280e05984175a38835b32929be5c893a8dab6d5af4090995",
                "sha256:f037812ac7360201eef2aa6d977836b2a31419c65ce706c5e0bfb176a99efa04"
            ],
            "index": "pypi",
            "version": "==0.15.72"
        }
    },
    "develop": {}
}
@imomaliev imomaliev changed the title Can't find proper version of ruamel.yaml Could not find a version that satisfies the requirement ruamel-yaml==0.15.72 Oct 10, 2018
@Jamim
Copy link
Contributor

Jamim commented Oct 10, 2018

This issue is a duplicate of #2956.

@uranusjr
Copy link
Member

I believe the latest version (released yesterday) does not have this issue anymore.

@imomaliev
Copy link
Contributor Author

imomaliev commented Oct 15, 2018

@uranusjr Issue is still present

$ pipenv --support

Pipenv version: '2018.10.13'

Pipenv location: '/usr/local/Cellar/pipenv/2018.10.13/libexec/lib/python3.7/site-packages/pipenv'

Python location: '/usr/local/Cellar/pipenv/2018.10.13/libexec/bin/python3.7'

Python installations found:

  • 3.7.0: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7
  • 3.6.5: /Users/batiskaf/.pyenv/versions/3.6.5/bin/python3.6
  • 3.6.5: /Users/batiskaf/.pyenv/versions/3.6.5/bin/python3.6m
  • 3.5.5: /Users/batiskaf/.pyenv/versions/3.5.5/bin/python3.5
  • 3.5.5: /Users/batiskaf/.pyenv/versions/3.5.5/bin/python3.5m
  • 2.7.10: /usr/bin/python
  • 2.7.10: /usr/bin/pythonw
  • 2.7.10: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.7.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT '
                     '2018; root:xnu-4570.71.2~1/RELEASE_X86_64',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • PATH
  • MANPATH
  • TERM_PROGRAM
  • PYENV_ROOT
  • TERM
  • SHELL
  • TMPDIR
  • PIPENV_VENV_IN_PROJECT
  • Apple_PubSub_Socket_Render
  • TERM_PROGRAM_VERSION
  • TERM_SESSION_ID
  • LC_ALL
  • USER
  • SSH_AUTH_SOCK
  • TMUX
  • _
  • PWD
  • EDITOR
  • LANG
  • TMUX_PANE
  • XPC_FLAGS
  • XPC_SERVICE_NAME
  • HISTCONTROL
  • SHLVL
  • HOME
  • VIEWER
  • XDG_CONFIG_HOME
  • HOMEBREW_PREFIX
  • LOGNAME
  • LC_CTYPE
  • FZF_DEFAULT_COMMAND
  • DISPLAY
  • __CF_USER_TEXT_ENCODING
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

  • PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

  • PATH: /usr/local/Cellar/pipenv/2018.10.13/libexec/tools:/usr/local/opt/python/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/batiskaf/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/opt/python/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/batiskaf/.pyenv/bin:/usr/local/sbin:/usr/local/sbin
  • SHELL: /usr/local/bin/bash
  • EDITOR: /usr/local/bin/nvim
  • LANG: en_US.UTF-8
  • PWD: /Users/batiskaf/Development/Python/install_drf_yasg

Contents of Pipfile ('/Users/batiskaf/Development/Python/install_drf_yasg/Pipfile'):

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

[packages]
ruamel-yaml = "*"

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/Users/batiskaf/Development/Python/install_drf_yasg/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "f2fcef2ea28fc899d2fe2313437270070d265128280a9d45c94df40e90d7f175"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "ruamel-yaml": {
            "hashes": [
                "sha256:10a8912a32f51eed40e32aa76e2700bb7bfc92f321a0e98409e3b1132bac4519",
                "sha256:1224d1f6abefda0de53ded39e51fc5e0bc0bb496f9e2f6566d3abe2f03cf54c8",
                "sha256:1d51f69dd8dd6fc58b8b3ca7aef87580b940ad0764ac1ea86f8b64feb555d5db",
                "sha256:3bc6377f623e48959bbc4eca07db614c9c0e374b9eea79feff93258aebafc38d",
                "sha256:3df98993f7e20864e60cba10606e14ad109175bb78c1129b06d38a0492beac36",
                "sha256:4796caffcbb81929d8be643df46c74f1825fff4dc0f7e132ea10f727ef89a0cd",
                "sha256:57d1a4c2d158f53040a9d8a611e79a1235be3418a1f8370145493adbab0ebbeb",
                "sha256:6655d70b2e2f6b40220ea4c6caac5bed15cb477bbaf7c6687029f3c82a45bca0",
                "sha256:7eff959cf0a792cb5650b5f50cc8bb5c53b3ab136695268c66ccd3cd332ba2b9",
                "sha256:867e2d0f7d5b4b3dbd9810fa601a9cb663ca8eec45c1f4b3bf56281894c47119",
                "sha256:9e5179afa032cd64216f9c508b5428cbe3cc42bb6b7dbb33e7cbf64c38eb2f2d",
                "sha256:a2fbb7e2e09390758f704dd04a17643108a3494292c49e9f4a10f248316ec2ae",
                "sha256:a3fde21c981928fde30c5ddded90d313487522c3e7b2011b20b4a17d82e14926",
                "sha256:ab0353559bd1a47e67e287090daa04bed7c19ec887bf311010fe69ddb40fd8eb",
                "sha256:ab7ef6d1ca0dc914fd66eacc8a5cfbf47f5530fe106c81f645b55cff2e1da984",
                "sha256:ab993f82687407dd8f478fb1c1213735524b10f1aa296391261838ee41331ed0",
                "sha256:bd76a9aee355306bfc173865e891885a63888ee15b0e358a66d697bb5c9e208a",
                "sha256:c1483c3de2010b5eb7dfbf6a2484e59d96c5c3a96f67b6ef4dd801471a21195b",
                "sha256:dbf52838c2fd987417cf820aed3a7dea0ba19dfe47c978361afb00cc1366264b",
                "sha256:edce27e000efe88d280e05984175a38835b32929be5c893a8dab6d5af4090995",
                "sha256:f037812ac7360201eef2aa6d977836b2a31419c65ce706c5e0bfb176a99efa04"
            ],
            "index": "pypi",
            "version": "==0.15.72"
        }
    },
    "develop": {}
}
docker build --no-cache  -t drf_yasg .
Sending build context to Docker daemon  11.95MB
Step 1/6 : FROM python:3.7-alpine3.8
 ---> cf41883b24b8
Step 2/6 : RUN apk update && apk upgrade     && pip install pipenv
 ---> Running in ee541f013f60
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
v3.8.1-28-g1d8df16b35 [http://dl-cdn.alpinelinux.org/alpine/v3.8/main]
v3.8.1-28-g1d8df16b35 [http://dl-cdn.alpinelinux.org/alpine/v3.8/community]
OK: 9540 distinct packages available
OK: 17 MiB in 34 packages
Collecting pipenv
  Downloading https://files.pythonhosted.org/packages/90/06/0008f53835495fbbf6e31ced9119b8f517e1271bdefcf0d04aaa9f28dbf4/pipenv-2018.10.13-py3-none-any.whl (5.2MB)
Requirement already satisfied: pip>=9.0.1 in /usr/local/lib/python3.7/site-packages (from pipenv) (18.1)
Collecting virtualenv-clone>=0.2.5 (from pipenv)
  Downloading https://files.pythonhosted.org/packages/6d/c2/dccb5ccf599e0c5d1eea6acbd058af7a71384f9740179db67a9182a24798/virtualenv_clone-0.3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.7/site-packages (from pipenv) (40.4.3)
Collecting virtualenv (from pipenv)
  Downloading https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl (1.9MB)
Collecting certifi (from pipenv)
  Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB)
Installing collected packages: virtualenv-clone, virtualenv, certifi, pipenv
Successfully installed certifi-2018.8.24 pipenv-2018.10.13 virtualenv-16.0.0 virtualenv-clone-0.3.0
Removing intermediate container ee541f013f60
 ---> 4c93f537fdb5
Step 3/6 : ENV PYTHONUNBUFFERED=1     PYTHONIOENCODING=UTF-8
 ---> Running in 91b6ec935815
Removing intermediate container 91b6ec935815
 ---> 8a1a0ecc8f84
Step 4/6 : WORKDIR /project/backend
 ---> Running in 17387d16ba5b
Removing intermediate container 17387d16ba5b
 ---> bde5274cae4e
Step 5/6 : COPY Pipfile Pipfile.lock /project/backend/
 ---> 081ac1f887dd
Step 6/6 : RUN pipenv install --system --ignore-pipfile --dev
 ---> Running in 6b76959df5da
Installing dependencies from Pipfile.lock (d7f175)…
An error occurred while installing ruamel-yaml==0.15.72 --hash=sha256:10a8912a32f51eed40e32aa76e2700bb7bfc92f321a0e98409e3b1132bac4519 --hash=sha256:1224d1f6abefda0de53ded39e51fc5e0bc0bb496f9e2f6566d3abe2f03cf54c8 --hash=sha256:1d51f69dd8dd6fc58b8b3ca7aef87580b940ad0764ac1ea86f8b64feb555d5db --hash=sha256:3bc6377f623e48959bbc4eca07db614c9c0e374b9eea79feff93258aebafc38d --hash=sha256:3df98993f7e20864e60cba10606e14ad109175bb78c1129b06d38a0492beac36 --hash=sha256:4796caffcbb81929d8be643df46c74f1825fff4dc0f7e132ea10f727ef89a0cd --hash=sha256:57d1a4c2d158f53040a9d8a611e79a1235be3418a1f8370145493adbab0ebbeb --hash=sha256:6655d70b2e2f6b40220ea4c6caac5bed15cb477bbaf7c6687029f3c82a45bca0 --hash=sha256:7eff959cf0a792cb5650b5f50cc8bb5c53b3ab136695268c66ccd3cd332ba2b9 --hash=sha256:867e2d0f7d5b4b3dbd9810fa601a9cb663ca8eec45c1f4b3bf56281894c47119 --hash=sha256:9e5179afa032cd64216f9c508b5428cbe3cc42bb6b7dbb33e7cbf64c38eb2f2d --hash=sha256:a2fbb7e2e09390758f704dd04a17643108a3494292c49e9f4a10f248316ec2ae --hash=sha256:a3fde21c981928fde30c5ddded90d313487522c3e7b2011b20b4a17d82e14926 --hash=sha256:ab0353559bd1a47e67e287090daa04bed7c19ec887bf311010fe69ddb40fd8eb --hash=sha256:ab7ef6d1ca0dc914fd66eacc8a5cfbf47f5530fe106c81f645b55cff2e1da984 --hash=sha256:ab993f82687407dd8f478fb1c1213735524b10f1aa296391261838ee41331ed0 --hash=sha256:bd76a9aee355306bfc173865e891885a63888ee15b0e358a66d697bb5c9e208a --hash=sha256:c1483c3de2010b5eb7dfbf6a2484e59d96c5c3a96f67b6ef4dd801471a21195b --hash=sha256:dbf52838c2fd987417cf820aed3a7dea0ba19dfe47c978361afb00cc1366264b --hash=sha256:edce27e000efe88d280e05984175a38835b32929be5c893a8dab6d5af4090995 --hash=sha256:f037812ac7360201eef2aa6d977836b2a31419c65ce706c5e0bfb176a99efa04! Will try again.
Installing initially failed dependencies…
Collecting ruamel-yaml==0.15.72

  Could not find a version that satisfies the requirement ruamel-yaml==0.15.72 (from -r /tmp/pipenv-9xpbp34y-requirements/pipenv-tcnn4c2t-requirement.txt (line 1)) (from versions: 0.15.41, 0.15.42)
No matching distribution found for ruamel-yaml==0.15.72 (from -r /tmp/pipenv-9xpbp34y-requirements/pipenv-tcnn4c2t-requirement.txt (line 1))

The command '/bin/sh -c pipenv install --system --ignore-pipfile --dev' returned a non-zero code: 1

@techalchemy
Copy link
Member

You are installing from a Pipfile generated using the previous version which had the issue. For the record, you should generally avoid --ignore-pipfile in favor of --deploy which means you need to copy your Pipfile also, unless you have a good reason not to do this.

The whole bug to begin with was that names of packages were getting ‘normalized’ when being added to the files, in this case . got normalized to - in your Pipfile and lockfile and you wound up with a package called ruamel-yaml which doesn’t exist. The package is actually called ruamel.yaml and needs to be called that in your pipfile. I recommend regenerativing everything from scratch with pipenv install ruamel.yaml

@uranusjr
Copy link
Member

If your Pipfile.lock was generated by the previous version, you need to regenerate it. Pipenv cannot automatically correct package names (due to a related bug in pip).

@imomaliev
Copy link
Contributor Author

imomaliev commented Oct 15, 2018

@techalchemy @uranusjr Already tried that. Deleted everything and run pipenv install ruamel.yaml

Here is Pipfile and Pipfile.lock after that

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

[packages]
ruamel-yaml = "*"

[dev-packages]

[requires]
python_version = "3.7"
{
    "_meta": {
        "hash": {
            "sha256": "f2fcef2ea28fc899d2fe2313437270070d265128280a9d45c94df40e90d7f175"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "ruamel-yaml": {
            "hashes": [
                "sha256:10a8912a32f51eed40e32aa76e2700bb7bfc92f321a0e98409e3b1132bac4519",
                "sha256:1224d1f6abefda0de53ded39e51fc5e0bc0bb496f9e2f6566d3abe2f03cf54c8",
                "sha256:1d51f69dd8dd6fc58b8b3ca7aef87580b940ad0764ac1ea86f8b64feb555d5db",
                "sha256:3bc6377f623e48959bbc4eca07db614c9c0e374b9eea79feff93258aebafc38d",
                "sha256:3df98993f7e20864e60cba10606e14ad109175bb78c1129b06d38a0492beac36",
                "sha256:4796caffcbb81929d8be643df46c74f1825fff4dc0f7e132ea10f727ef89a0cd",
                "sha256:57d1a4c2d158f53040a9d8a611e79a1235be3418a1f8370145493adbab0ebbeb",
                "sha256:6655d70b2e2f6b40220ea4c6caac5bed15cb477bbaf7c6687029f3c82a45bca0",
                "sha256:7eff959cf0a792cb5650b5f50cc8bb5c53b3ab136695268c66ccd3cd332ba2b9",
                "sha256:867e2d0f7d5b4b3dbd9810fa601a9cb663ca8eec45c1f4b3bf56281894c47119",
                "sha256:9e5179afa032cd64216f9c508b5428cbe3cc42bb6b7dbb33e7cbf64c38eb2f2d",
                "sha256:a2fbb7e2e09390758f704dd04a17643108a3494292c49e9f4a10f248316ec2ae",
                "sha256:a3fde21c981928fde30c5ddded90d313487522c3e7b2011b20b4a17d82e14926",
                "sha256:ab0353559bd1a47e67e287090daa04bed7c19ec887bf311010fe69ddb40fd8eb",
                "sha256:ab7ef6d1ca0dc914fd66eacc8a5cfbf47f5530fe106c81f645b55cff2e1da984",
                "sha256:ab993f82687407dd8f478fb1c1213735524b10f1aa296391261838ee41331ed0",
                "sha256:bd76a9aee355306bfc173865e891885a63888ee15b0e358a66d697bb5c9e208a",
                "sha256:c1483c3de2010b5eb7dfbf6a2484e59d96c5c3a96f67b6ef4dd801471a21195b",
                "sha256:dbf52838c2fd987417cf820aed3a7dea0ba19dfe47c978361afb00cc1366264b",
                "sha256:edce27e000efe88d280e05984175a38835b32929be5c893a8dab6d5af4090995",
                "sha256:f037812ac7360201eef2aa6d977836b2a31419c65ce706c5e0bfb176a99efa04"
            ],
            "index": "pypi",
            "version": "==0.15.72"
        }
    },
    "develop": {}
}

and Dockerfile

FROM python:3.7-alpine3.8

RUN apk update && apk upgrade \
    && pip install pipenv

ENV PYTHONUNBUFFERED=1 \
    PYTHONIOENCODING=UTF-8

WORKDIR /project/backend

COPY Pipfile Pipfile.lock /project/backend/

RUN pipenv install --system --deploy

Still fails after all this, after I added --deploy to installation instructions

@uranusjr
Copy link
Member

Oh, so you specified ruamel-yaml in your Pipfile… That won’t work, unfortunately. This is a bug in pip (pypa/pip#5870). You need to use ruamel.yaml.

@techalchemy
Copy link
Member

In bash you need to wrap it in quotes iirc if you are going to do it from the command line.

Or you know. Fix the Pipfile one. Either way

@imomaliev
Copy link
Contributor Author

imomaliev commented Oct 15, 2018

@uranusjr I did not specify it. I run pipenv install ruamel.yaml which add ruamel-yaml to Pipfile

@beanaroo
Copy link

I can confirm this issue is still present and causes another issue in PyCharm as described in:
https://youtrack.jetbrains.com/issue/PY-37819

image

@beanaroo
Copy link

beanaroo commented Mar 13, 2020

To further add, this also breaks uninstalling:

$ pipenv install ruamel.yaml

Installing ruamel.yaml…
✔ Installation Succeeded 
Installing dependencies from Pipfile.lock (000552)…
🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 30/30 — 00:00:01
$ pipenv uninstall ruamel.yaml

Uninstalling ruamel.yaml…
Uninstalling ruamel.yaml-0.16.10:
  Successfully uninstalled ruamel.yaml-0.16.10

No package ruamel.yaml to remove from Pipfile.
Locking [dev-packages] dependencies…
✔ Success! 
Locking [packages] dependencies…
✔ Success! 
Updated Pipfile.lock (000552)!

Leaving the following behind

[packages]
ruamel-yaml = "*"

@coopergillan
Copy link

FYI, I was able to get ruamel.yaml added by running pipenv install ruamel.yaml and refreshing Pipfile. Note that it added double quotes around it and this made it work:

package1 = "==1.2.3"
"ruamel.yaml" = "==0.16.10"
package3 = "==6.4.5"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants