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

pipenv install does not fail when installing pycares fails #3614

Closed
blueyed opened this issue Mar 13, 2019 · 10 comments
Closed

pipenv install does not fail when installing pycares fails #3614

blueyed opened this issue Mar 13, 2019 · 10 comments
Labels
Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@blueyed
Copy link
Contributor

blueyed commented Mar 13, 2019

pipenv install does not fail when installing pycares fails (due to cffi issue).

Notice how "pipenv install" was successful, but using its requirements.txt output fails:

Step 9/16 : RUN pipenv install --deploy --sequential
 ---> Using cache
 ---> 876ca171c8c0
Step 10/16 : RUN pipenv run pip freeze
 ---> Using cache
 ---> ac704554f679
Step 11/16 : RUN pipenv check
 ---> Using cache
 ---> bc1f764ede44
Step 12/16 : RUN chmod +x ./script.sh
 ---> Using cache
 ---> 70bd94bc2623
Step 13/16 : RUN pipenv lock --requirements > requirements.txt
 ---> Running in c5041358a642
Removing intermediate container c5041358a642
 ---> cb00c7f1b10d
Step 14/16 : RUN pipenv run pip install -r requirements.txt
 ---> Running in 29d3048a2c3b
Looking in indexes: https://pypi.python.org/simple
…
Collecting pycares==3.0.0 (from -r requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/85/de/cd46a73e43e206a6ad1e9cf9cc893c3ed1b21caf57f1e0a8d9a119d290eb/pycares-3.0.0.tar.gz (211kB)
    Complete output from command python setup.py egg_info:
    warning: build_py: byte-compiling is disabled, skipping.
    
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
              ^~~~~~~
    compilation terminated.
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
        extra_postargs)
      File "/usr/local/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "/usr/local/lib/python3.6/distutils/spawn.py", line 36, in spawn
        _spawn_posix(cmd, search_path, dry_run=dry_run)
      File "/usr/local/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
        % (cmd, exit_status))
    distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
        cmd = self.call_command('install_lib', warn_dir=0)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
        self.run_command(cmdname)
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
        self.build()
      File "/usr/local/lib/python3.6/distutils/command/install_lib.py", line 107, in build
        self.run_command('build_ext')
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
        _build_ext.run(self)
      File "/usr/local/lib/python3.6/distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/usr/local/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
        self._build_extensions_serial()
      File "/usr/local/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
        self.build_extension(ext)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
        _build_ext.build_extension(self, ext)
      File "/usr/local/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
        depends=ext.depends)
      File "/usr/local/lib/python3.6/distutils/ccompiler.py", line 574, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/local/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command 'gcc' failed with exit status 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
        yield saved
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
        exec(code, globals, locals)
      File "/tmp/easy_install-9h2yx4eb/cffi-1.12.2/setup.py", line 248, in <module>
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.6/distutils/core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: command 'gcc' failed with exit status 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
        run_setup(setup_script, args)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
        raise
      File "/usr/local/lib/python3.6/contextlib.py", line 99, in __exit__
        self.gen.throw(type, value, traceback)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/usr/local/lib/python3.6/contextlib.py", line 99, in __exit__
        self.gen.throw(type, value, traceback)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
        saved_exc.resume()
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
        six.reraise(type, exc, self._tb)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
        raise value.with_traceback(tb)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
        yield saved
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
        exec(code, globals, locals)
      File "/tmp/easy_install-9h2yx4eb/cffi-1.12.2/setup.py", line 248, in <module>
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.6/distutils/core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: command 'gcc' failed with exit status 1
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-hxvtlx57/pycares/setup.py", line 45, in <module>
        zip_safe         = False
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/dist.py", line 724, in fetch_build_eggs
        replace_conflicting=True,
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
        replace_conflicting=replace_conflicting
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
        return installer(requirement)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/dist.py", line 791, in fetch_build_egg
        return cmd.easy_install(req)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 705, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/root/.local/share/virtualenvs/app--ESITGsh/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-hxvtlx57/pycares/
The command '/bin/sh -c pipenv run pip install -r requirements.txt' returned a non-zero code: 1

This happens without libffi-dev in the python:3.6.8-alpine Docker image.

pipenv --support:

$ pipenv --support

Pipenv version: '2018.11.26'

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

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

Python installations found:

  • 3.6.8: /usr/local/bin/python
  • 3.6.8: /usr/local/bin/python3.6m

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.8',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.0.0-arch1-1-ARCH',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Mon Mar 4 14:11:43 UTC 2019',
 'python_full_version': '3.6.8',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

  • HOSTNAME
  • PYTHON_PIP_VERSION
  • SHLVL
  • HOME
  • GPG_KEY
  • PATH
  • LANG
  • PYTHON_VERSION
  • PWD
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • LANG: C.UTF-8
  • PWD: /root/app

A more minimal Dockerfile using "pipenv install …" fails though as expected:

FROM python:3.6.8-alpine
WORKDIR /root/app
RUN pip install pipenv==2018.11.26
RUN pipenv install pycares

Therefore it is likely related to installing from the lockfile.

@frostming
Copy link
Contributor

@blueyed I tried your minimal example and can't reproduce myself. The process does fail when installing cffi dependency.

@blueyed
Copy link
Contributor Author

blueyed commented Mar 15, 2019

@frostming
Yes, the minimal example is not enough (like I said).
I do not have interest myself in debugging this further, but wanted to file an issue given how bad this is (and for reference in the (closed source) project where pipenv is used).

@frostming
Copy link
Contributor

@blueyed We have an unreleased improvement #3318 that pipenv will abort early when installation fails and I believe it will help for your case.

Can you provide more files that reproduce the problem with contents compromised? Pipfile, Pipfile.lock and Dockerfile would be helpful.

@blueyed
Copy link
Contributor Author

blueyed commented Mar 15, 2019

Pipfile.lock:

{
    "_meta": {
        "hash": {
            "sha256": "c1a4f9cd2b635abe88c9c25b4dceb0565b97dc783f1d15c0b68766e78c229995"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.6"
        },
        "sources": [
            {
                "url": "https://pypi.python.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "pycares": {
            "hashes": [
                "sha256:0e81c971236bb0767354f1456e67ab6ae305f248565ce77cd413a311f9572bf5",
                "sha256:11c0ff3ccdb5a838cbd59a4e59df35d31355a80a61393bca786ca3b44569ba10",
                "sha256:170d62bd300999227e64da4fa85459728cc96e62e44780bbc86a915fdae01f78",
                "sha256:36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40",
                "sha256:371ce688776da984c4105c8ca760cc60944b9b49ccf8335c71dc7669335e6173",
                "sha256:3a2234516f7db495083d8bba0ccdaabae587e62cfcd1b8154d5d0b09d3a48dfc",
                "sha256:3f288586592c697109b2b06e3988b7e17d9765887b5fc367010ee8500cbddc86",
                "sha256:40134cee03c8bbfbc644d4c0bc81796e12dd012a5257fb146c5a5417812ee5f7",
                "sha256:722f5d2c5f78d47b13b0112f6daff43ce4e08e8152319524d14f1f917cc5125e",
                "sha256:7b18fab0ed534a898552df91bc804bd62bb3a2646c11e054baca14d23663e1d6",
                "sha256:8a39d03bd99ea191f86b990ef67ecce878d6bf6518c5cde9173fb34fb36beb5e",
                "sha256:8ea263de8bf1a30b0d87150b4aa0e3203cf93bc1723ea3e7408a7d25e1299217",
                "sha256:943e2dc67ff45ab4c81d628c959837d01561d7e185080ab7a276b8ca67573fb5",
                "sha256:9d56a54c93e64b30c0d31f394d9890f175edec029cd846221728f99263cdee82",
                "sha256:b95b339c11d824f0bb789d31b91c8534916fcbdce248cccce216fa2630bb8a90",
                "sha256:bbfd9aba1e172cd2ab7b7142d49b28cf44d6451c4a66a870aff1dc3cb84849c7",
                "sha256:d8637bcc2f901aa61ec1d754abc862f9f145cb0346a0249360df4c159377018e",
                "sha256:e2446577eeea79d2179c9469d9d4ce3ab8a07d7985465c3cb91e7d74abc329b6",
                "sha256:e72fa163f37ae3b09f143cc6690a36f012d13e905d142e1beed4ec0e593ff657",
                "sha256:f32b7c63094749fbc0c1106c9a785666ec8afd49ecfe7002a30bb7c42e62b47c",
                "sha256:f50be4dd53f009cfb4b98c3c6b240e18ff9b17e3f1c320bd594bb83eddabfcb2"
            ],
            "version": "==2.3.0"
        }
    },
    "develop": {
    }
}

Dockerfile:

FROM python:3.6.8-alpine
WORKDIR /root/app
RUN pip install pipenv==2018.11.26

COPY Pipfile.lock /root/app

RUN pipenv install  # 2
RUN pipenv run python -c "import pycares"

Output:

Step 5/6 : RUN pipenv install  # 2
 ---> Running in ce55d3ff2f27
Creating a virtualenv for this project…
Pipfile: /root/app/Pipfile
Using /usr/local/bin/python (3.6.8) to create virtualenv…
⠸ Creating virtual environment...Already using interpreter /usr/local/bin/python
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/app-SBFEua6u/bin/python
Installing setuptools, pip, wheel...
done.
                                                                                                                                                                                             ✔ Successfully created virtual environment! 
Virtualenv location: /root/.local/share/virtualenvs/app-SBFEua6u
Creating a Pipfile for this project…
Pipfile.lock (ca72e7) out of date, updating to (229995)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (ca72e7)!
Installing dependencies from Pipfile.lock (ca72e7)…
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Removing intermediate container ce55d3ff2f27
 ---> 08b79587ec51
Step 6/6 : RUN pipenv run python -c "import pycares"
 ---> Running in 6bb787c1e5b7
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pycares'

@blueyed
Copy link
Contributor Author

blueyed commented Mar 15, 2019

Not sure if that's a user error in this case though - I assumed it would use the lock file, with --ignore-pipfile it fails here.

I might have mixed something up here - feel free to close it.

@blueyed
Copy link
Contributor Author

blueyed commented Mar 15, 2019

With the latest example RUN pipenv lock --requirements does not include pycares though, which was included in the original comment/output:

Step 5/8 : RUN pipenv install  # 3
 ---> Running in 0e19bd769958
Creating a virtualenv for this project…
Pipfile: /root/app/Pipfile
Using /usr/local/bin/python (3.6.8) to create virtualenv…
⠼ Creating virtual environment...Already using interpreter /usr/local/bin/python
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/app-SBFEua6u/bin/python
Installing setuptools, pip, wheel...
done.
                                                                                                                                                                                             ✔ Successfully created virtual environment! 
Virtualenv location: /root/.local/share/virtualenvs/app-SBFEua6u
Creating a Pipfile for this project…
Pipfile.lock (ca72e7) out of date, updating to (229995)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (ca72e7)!
Installing dependencies from Pipfile.lock (ca72e7)…
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Removing intermediate container 0e19bd769958
 ---> 335185242c93
Step 6/8 : RUN cat Pipfile
 ---> Running in a88ef5a2447c
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]

[requires]
python_version = "3.6"
Removing intermediate container a88ef5a2447c
 ---> feac41d97985
Step 7/8 : RUN pipenv lock --requirements
 ---> Running in 7fe0bbed619a
-i https://pypi.org/simple

Removing intermediate container 7fe0bbed619a
 ---> 527f7cd55f14

@frostming
Copy link
Contributor

@blueyed You need to copy both Pipfile and Pipfile.lock into container otherwise an empty Pipfile will be generated and overwrite the existing Pipfile.lock.

@blueyed
Copy link
Contributor Author

blueyed commented Mar 15, 2019

Could trigger it again..

Dockerfile:

FROM python:3.6.8-alpine
WORKDIR /root/app
RUN pip install pipenv==2018.11.26

COPY Pipfile.lock /root/app
COPY Pipfile /root/app

RUN apk add --no-cache git

RUN pipenv install  # 3
RUN cat Pipfile
RUN pipenv lock --requirements
RUN pipenv run python -c "import pycares"

Pipfile:

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

[requires]
python_version = "3.6"

[packages]
aiobotocore = {git = "https://github.com/aio-libs/aiobotocore.git", ref = "09e07a38ea1768e6262a665a98524e63b793d352"}
aiodns = "*"
aiozmq = "*"
"boto3" = "*"
click = "*"
msgpack-python = "*"
protobuf = "==3.0.0b2.post2"
raven = "*"
"a7b4c24" = {file = "https://github.com/getsentry/raven-aiohttp/archive/ddaf9a5719e9cd7c6e34564234aedda052b94dd3.tar.gz"}
aiohttp = "*"

[dev-packages]

Output:

Step 7/10 : RUN pipenv install  # 3
 ---> Running in 63ab03f49577
Creating a virtualenv for this project…
Pipfile: /root/app/Pipfile
Using /usr/local/bin/python (3.6.8) to create virtualenv…
⠋ Creating virtual environment...Already using interpreter /usr/local/bin/python
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/app-SBFEua6u/bin/python
Installing setuptools, pip, wheel...
done.
                                                                                                                                                                                             ✔ Successfully created virtual environment! 
Virtualenv location: /root/.local/share/virtualenvs/app-SBFEua6u
Pipfile.lock (e59d3e) out of date, updating to (229995)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
⠹ Locking..✔ Success! ...
Updated Pipfile.lock (e59d3e)!
Installing dependencies from Pipfile.lock (e59d3e)…
An error occurred while installing aiodns==2.0.0 --hash=sha256:815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d --hash=sha256:aaa5ac584f40fe778013df0aa6544bf157799bd3f608364b451840ed2c8688de! Will try again.
An error occurred while installing aiozmq==0.7.1 --hash=sha256:8bbbac6aedf25c89f96cfbfa0b5b2d08e28eabd79a81f8ca854ed5b757343cde --hash=sha256:b41d589a715acc0d42b525ef7084bbcdc03c986ef5a90e212ee7f086125cf6c0! Will try again.
An error occurred while installing boto3==1.9.115 --hash=sha256:1b4a86e1167ba7cbb9dbf2a0a0b86447b35a2b901ae5aace75b8196631680957 --hash=sha256:f5b12367c530dac45782251b672f1e911da5c74285f89850b0f4f5694b8c388c! Will try again.
An error occurred while installing botocore==1.12.115 --hash=sha256:7c8ec120bc5bcc4076aebd7dac3a679777ff3a3ce3263c64d7342ea7982b578c --hash=sha256:f4607f8800f87fd8eacd450699666f92d7fbc48fbb757903ad56825ce08e072a! Will try again.
An error occurred while installing cffi==1.12.2 --hash=sha256:00b97afa72c233495560a0793cdc86c2571721b4271c0667addc83c417f3d90f --hash=sha256:0ba1b0c90f2124459f6966a10c03794082a2f3985cd699d7d63c4a8dae113e11 --hash=sha256:0bffb69da295a4fc3349f2ec7cbe16b8ba057b0a593a92cbe8396e535244ee9d --hash=sha256:21469a2b1082088d11ccd79dd84157ba42d940064abbfa59cf5f024c19cf4891 --hash=sha256:2e4812f7fa984bf1ab253a40f1f4391b604f7fc424a3e21f7de542a7f8f7aedf --hash=sha256:2eac2cdd07b9049dd4e68449b90d3ef1adc7c759463af5beb53a84f1db62e36c --hash=sha256:2f9089979d7456c74d21303c7851f158833d48fb265876923edcb2d0194104ed --hash=sha256:3dd13feff00bddb0bd2d650cdb7338f815c1789a91a6f68fdc00e5c5ed40329b --hash=sha256:4065c32b52f4b142f417af6f33a5024edc1336aa845b9d5a8d86071f6fcaac5a --hash=sha256:51a4ba1256e9003a3acf508e3b4f4661bebd015b8180cc31849da222426ef585 --hash=sha256:59888faac06403767c0cf8cfb3f4a777b2939b1fbd9f729299b5384f097f05ea --hash=sha256:59c87886640574d8b14910840327f5cd15954e26ed0bbd4e7cef95fa5aef218f --hash=sha256:610fc7d6db6c56a244c2701575f6851461753c60f73f2de89c79bbf1cc807f33 --hash=sha256:70aeadeecb281ea901bf4230c6222af0248c41044d6f57401a614ea59d96d145 --hash=sha256:71e1296d5e66c59cd2c0f2d72dc476d42afe02aeddc833d8e05630a0551dad7a --hash=sha256:8fc7a49b440ea752cfdf1d51a586fd08d395ff7a5d555dc69e84b1939f7ddee3 --hash=sha256:9b5c2afd2d6e3771d516045a6cfa11a8da9a60e3d128746a7fe9ab36dfe7221f --hash=sha256:9c759051ebcb244d9d55ee791259ddd158188d15adee3c152502d3b69005e6bd --hash=sha256:b4d1011fec5ec12aa7cc10c05a2f2f12dfa0adfe958e56ae38dc140614035804 --hash=sha256:b4f1d6332339ecc61275bebd1f7b674098a66fea11a00c84d1c58851e618dc0d --hash=sha256:c030cda3dc8e62b814831faa4eb93dd9a46498af8cd1d5c178c2de856972fd92 --hash=sha256:c2e1f2012e56d61390c0e668c20c4fb0ae667c44d6f6a2eeea5d7148dcd3df9f --hash=sha256:c37c77d6562074452120fc6c02ad86ec928f5710fbc435a181d69334b4de1d84 --hash=sha256:c8149780c60f8fd02752d0429246088c6c04e234b895c4a42e1ea9b4de8d27fb --hash=sha256:cbeeef1dc3c4299bd746b774f019de9e4672f7cc666c777cd5b409f0b746dac7 --hash=sha256:e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7 --hash=sha256:e21162bf941b85c0cda08224dade5def9360f53b09f9f259adb85fc7dd0e7b35 --hash=sha256:fb6934ef4744becbda3143d30c6604718871495a5e36c408431bf33d9c146889! Will try again.
An error occurred while installing pycares==3.0.0 --hash=sha256:2ca080db265ea238dc45f997f94effb62b979a617569889e265c26a839ed6305 --hash=sha256:6f79c6afb6ce603009db2042fddc2e348ad093ece9784cbe2daa809499871a23 --hash=sha256:70918d06eb0603016d37092a5f2c0228509eb4e6c5a3faacb4184f6ab7be7650 --hash=sha256:755187d28d24a9ea63aa2b4c0638be31d65fbf7f0ce16d41261b9f8cb55a1b99 --hash=sha256:7baa4b1f2146eb8423ff8303ebde3a20fb444a60db761fba0430d104fe35ddbf --hash=sha256:90b27d4df86395f465a171386bc341098d6d47b65944df46518814ae298f6cc6 --hash=sha256:9e090dd6b2afa65cb51c133883b2bf2240fd0f717b130b0048714b33fb0f47ce --hash=sha256:a11b7d63c3718775f6e805d6464cb10943780395ab042c7e5a0a7a9f612735dd --hash=sha256:b253f5dcaa0ac7076b79388a3ac80dd8f3bd979108f813baade40d3a9b8bf0bd --hash=sha256:c7f4f65e44ba35e35ad3febc844270665bba21cfb0fb7d749434e705b556e087 --hash=sha256:cdb342e6a254f035bd976d95807a2184038fc088d957a5104dcaab8be602c093 --hash=sha256:cf08e164f8bfb83b9fe633feb56f2754fae6baefcea663593794fa0518f8f98c --hash=sha256:df9bc694cf03673878ea8ce674082c5acd134991d64d6c306d4bd61c0c1df98f! Will try again.
An error occurred while installing pyzmq==18.0.1 --hash=sha256:1651e52ed91f0736afd6d94ef9f3259b5534ce8beddb054f3d5ca989c4ef7c4f --hash=sha256:5ccb9b3d4cd20c000a9b75689d5add8cd3bce67fcbd0f8ae1b59345247d803af --hash=sha256:5e120c4cd3872e332fb35d255ad5998ebcee32ace4387b1b337416b6b90436c7 --hash=sha256:5e2a3707c69a7281a9957f83718815fd74698cba31f6d69f9ed359921f662221 --hash=sha256:63d51add9af8d0442dc90f916baf98fdc04e3b0a32afec4bfc83f8d85e72959f --hash=sha256:65c5a0bdc49e20f7d6b03a661f71e2fda7a99c51270cafe71598146d09810d0d --hash=sha256:66828fabe911aa545d919028441a585edb7c9c77969a5fea6722ef6e6ece38ab --hash=sha256:7d79427e82d9dad6e9b47c0b3e7ae5f9d489b1601e3a36ea629bb49501a4daf3 --hash=sha256:824ee5d3078c4eae737ffc500fbf32f2b14e6ec89b26b435b7834febd70120cf --hash=sha256:89dc0a83cccec19ff3c62c091e43e66e0183d1e6b4658c16ee4e659518131494 --hash=sha256:8b319805f6f7c907b101c864c3ca6cefc9db8ce0791356f180b1b644c7347e4c --hash=sha256:90facfb379ab47f94b19519c1ecc8ec8d10813b69d9c163117944948bdec5d15 --hash=sha256:a0a178c7420021fc0730180a914a4b4b3092ce9696ceb8e72d0f60f8ce1655dd --hash=sha256:a7a89591ae315baccb8072f216614b3e59aed7385aef4393a6c741783d6ee9cf --hash=sha256:ba2578f0ae582452c02ed9fac2dc477b08e80ce05d2c0885becf5fff6651ccb0 --hash=sha256:c69b0055c55702f5b0b6b354133e8325b9a56dbc80e1be2d240bead253fb9825 --hash=sha256:ca434e1858fe222380221ddeb81e86f45522773344c9da63c311d17161df5e06 --hash=sha256:d4b8ecfc3d92f114f04d5c40f60a65e5196198b827503341521dda12d8b14939 --hash=sha256:d706025c47b09a54f005953ebe206f6d07a22516776faa4f509aaff681cc5468 --hash=sha256:d8f27e958f8a2c0c8ffd4d8855c3ce8ac3fa1e105f0491ce31729aa2b3229740 --hash=sha256:dbd264298f76b9060ce537008eb989317ca787c857e23cbd1b3ddf89f190a9b1 --hash=sha256:e926d66f0df8fdbf03ba20583af0f215e475c667fb033d45fd031c66c63e34c9 --hash=sha256:efc3bd48237f973a749f7312f68062f1b4ca5c2032a0673ca3ea8e46aa77187b --hash=sha256:f59bc782228777cbfe04555707a9c56d269c787ed25d6d28ed9d0fbb41cb1ad2 --hash=sha256:f8da5322f4ff5f667a0d5a27e871b560c6637153c81e318b35cb012b2a98835c! Will try again.
An error occurred while installing s3transfer==0.2.0 --hash=sha256:7b9ad3213bff7d357f888e0fab5101b56fa1a0548ee77d121c3a3dbfbef4cb2e --hash=sha256:f23d5cb7d862b104401d9021fc82e5fa0e0cf57b7660a1331425aab0c691d021! Will try again.
Installing initially failed dependencies…
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Removing intermediate container 63ab03f49577
 ---> f762b228b524
Step 8/10 : RUN cat Pipfile
 ---> Running in 09bfec42545a
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true

[requires]
python_version = "3.6"

[packages]
aiobotocore = {git = "https://github.com/aio-libs/aiobotocore.git", ref = "09e07a38ea1768e6262a665a98524e63b793d352"}
aiodns = "*"
aiozmq = "*"
"boto3" = "*"
click = "*"
msgpack-python = "*"
protobuf = "==3.0.0b2.post2"
raven = "*"
"a7b4c24" = {file = "https://github.com/getsentry/raven-aiohttp/archive/ddaf9a5719e9cd7c6e34564234aedda052b94dd3.tar.gz"}
aiohttp = "*"

[dev-packages]
Removing intermediate container 09bfec42545a
 ---> d303835a3905
Step 9/10 : RUN pipenv lock --requirements
 ---> Running in f51fe4f7664b
-i https://pypi.python.org/simple
aiodns==2.0.0
aiohttp==3.5.4
aiozmq==0.7.1
async-timeout==3.0.1
attrs==19.1.0
boto3==1.9.115
botocore==1.12.115
cffi==1.12.2
chardet==3.0.4
click==7.0
docutils==0.14
git+https://github.com/aio-libs/aiobotocore.git@09e07a38ea1768e6262a665a98524e63b793d352#egg=aiobotocore
https://github.com/getsentry/raven-aiohttp/archive/ddaf9a5719e9cd7c6e34564234aedda052b94dd3.tar.gz#egg=a7b4c24
idna-ssl==1.1.0 ; python_version < '3.7'
idna==2.8
jmespath==0.9.4
msgpack-python==0.5.6
multidict==4.5.2
protobuf==3.0.0b2.post2
pycares==3.0.0
pycparser==2.19
python-dateutil==2.8.0 ; python_version >= '2.7'
pyzmq==18.0.1
raven==6.10.0
s3transfer==0.2.0
six==1.12.0
typing-extensions==3.7.2 ; python_version < '3.7'
typing==3.6.6 ; python_version < '3.7'
urllib3==1.24.1 ; python_version >= '3.4'
yarl==1.3.0
Removing intermediate container f51fe4f7664b
 ---> ee42206dc0ca
Step 10/10 : RUN pipenv run python -c "import pycares"
 ---> Running in 669e56cd5c7e
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pycares'
The command '/bin/sh -c pipenv run python -c "import pycares"' returned a non-zero code: 1

@frostming frostming added the Type: Possible Bug This issue describes a possible bug in pipenv. label Mar 15, 2019
@zeronone
Copy link

I have same problem.

pip install --sequential fails to install some dependencies, but doesn't report anything.
pip install will report the failures.

In my case, the installation was failing as one internal dependency was using pip inside its setup.py. As I was using pip v19, it was failing with No module found pip.download.

@matteius
Copy link
Member

I believe this has been resolved on recent versions of pipenv.

@matteius matteius closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

4 participants