question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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": {}
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
techalchemycommented, Oct 15, 2018

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

1reaction
uranusjrcommented, Oct 15, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find a version that satisfies the requirement ruamel ...
If you search PyPI for ruamel , you'll see that there is no package with that name. All available packages have that string...
Read more >
ruamel.yaml - PyPI
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order.
Read more >
When the package installed via terminal, PyCharm says that ...
Create a project and add ruamel-yaml dependency via terminal ... You can see the warning: "Package requirement 'ruamel-yaml==0.16.5' is not satisfied"
Read more >
Installing — Python YAML package documentation
ruamel.yaml itself should be installed from PyPI using: pip install ruamel.yaml. If you want to process jinja2/YAML templates (which are not valid YAML...
Read more >
could not find a version that satisfies the requirement yaml
The problem here might be a python library that has dependencies on gcc , which is not shipped on alpine by default. Try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found