Skip to content

wrong lock file with python 3.7 #2473

Description

@item4

Be sure to check the existing issues (both open and closed!).

Describe the issue briefly here.

Please run $ python -m pipenv.help, and paste the results here.

If you're on MacOS, just run the following:

$ python -m pipenv.help | pbcopy
$ python -m pipenv.help output

Pipenv version: '2018.6.25'

Pipenv location: '/Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/lib/python3.7/site-packages/pipenv'

Python location: '/Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python'

Other Python installations in PATH:

  • 2.7: /usr/local/bin/python2.7

  • 2.7: /Users/item4/.pyenv/shims/python2.7

  • 2.7: /usr/local/bin/python2.7

  • 2.7: /usr/local/bin/python2.7

  • 2.7: /usr/bin/python2.7

  • 3.4: /usr/local/bin/python3.4m

  • 3.4: /usr/local/bin/python3.4

  • 3.4: /usr/local/bin/python3.4

  • 3.5: /usr/local/bin/python3.5m

  • 3.5: /usr/local/bin/python3.5

  • 3.5: /usr/local/bin/python3.5

  • 3.6: /Users/item4/.pyenv/shims/python3.6

  • 3.7: /Users/item4/.pyenv/shims/python3.7m

  • 3.7: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python3.7

  • 3.7: /Users/item4/.pyenv/shims/python3.7

  • 3.7.0: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python

  • 3.7.0: /Users/item4/.pyenv/shims/python

  • 2.7.15: /usr/local/bin/python

  • 2.7.15: /usr/local/bin/python

  • 2.7.10: /usr/bin/python

  • None: /Users/item4/.pyenv/shims/python2

  • 2.7.15: /usr/local/bin/python2

  • 2.7.15: /usr/local/bin/python2

  • 3.7.0: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python3

  • 3.7.0: /Users/item4/.pyenv/shims/python3

  • 3.5.0: /usr/local/bin/python3

  • 3.5.0: /usr/local/bin/python3

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.6.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT '
                     '2018; root:xnu-4570.61.1~1/RELEASE_X86_64',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • GHC_DOT_APP
  • VIRTUALENVWRAPPER_PROJECT_FILENAME
  • VIRTUALENVWRAPPER_SCRIPT
  • TERM_PROGRAM
  • NVM_CD_FLAGS
  • PYENV_ROOT
  • TERM
  • SHELL
  • TMPDIR
  • Apple_PubSub_Socket_Render
  • PIXIV_PASSWORD
  • TERM_PROGRAM_VERSION
  • OLDPWD
  • RUST_SRC_PATH
  • TERM_SESSION_ID
  • NVM_DIR
  • USER
  • COMMAND_MODE
  • SSH_AUTH_SOCK
  • __CF_USER_TEXT_ENCODING
  • VIRTUAL_ENV
  • WORKON_HOME
  • PROJECT_HOME
  • VIRTUALENVWRAPPER_PYTHON
  • PATH
  • PIXIV_ID
  • PYENV_VIRTUALENVWRAPPER_PYENV_VERSION
  • VIRTUALENVWRAPPER_HOOK_DIR
  • PWD
  • WIRESHARK_APP_DIR
  • LANG
  • ITERM_PROFILE
  • XPC_FLAGS
  • VIRTUALENVWRAPPER_VIRTUALENV
  • PS1
  • XPC_SERVICE_NAME
  • PYENV_SHELL
  • SHLVL
  • HOME
  • COLORFGBG
  • ITERM_SESSION_ID
  • LOGNAME
  • VIRTUALENVWRAPPER_VIRTUALENV_CLONE
  • NVM_BIN
  • GOPATH
  • VIRTUALENVWRAPPER_WORKON_CD
  • SECURITYSESSIONID
  • VIRTUALENVWRAPPER_LAZY_SCRIPT
  • COLORTERM
  • _
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin:/Users/item4/.nvm/versions/node/v10.0.0/bin:/Users/item4/.pyenv/shims:/Users/item4/.cargo/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local/bin:/usr/local/share/git-core/contrib//diff-highlight/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/item4/.rvm/bin:/Users/item4/go/bin
  • SHELL: /bin/bash
  • LANG: ko_KR.UTF-8
  • PWD: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d
  • VIRTUAL_ENV: /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d

Contents of Pipfile ('/Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/Pipfile'):

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

[packages]
aiohttp = "*"

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "2c5c75ab0fc628a232239706591e922fec111ed0bb34cc8c62d3352e2d21a02d"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "aiohttp": {
            "hashes": [
                "sha256:1a112a1fdf3802b7f2b182e22e51d71e4a8fa7387d0d38e79a268921b869e384",
                "sha256:33aa7c937ebaf063a860cbb0c263a771b33333a84965c6148eeafe64fb4e29ca",
                "sha256:550b4a0788500f6d00f41b7fdd9fcce6d78f99706a7b2f6f81d4d331c7ca468e",
                "sha256:601e8e83123b4d423a9dfddf7d6943f4f520651a78ffcd50c99d065136c7ff7b",
                "sha256:620f19ba7628b70b177f5c2e6a55a6fd6e7c8591cde38c3f8f52551733d31b66",
                "sha256:70d56c784da1239c89d39fefa166fd429306dada641178389be4184a9c04e501",
                "sha256:7de2c9e445a5d257935011268202338538abef1aaff341a4733eca56419ca6f6",
                "sha256:96bb80b659cc2bafa160f3f0c346ce7fc10de1ffec4908d7f9690797f155f658",
                "sha256:ae7501cc6a6c37b8d4774bf2218c37be47fe42019a2570e8510fc2044e59d573",
                "sha256:c833aa6f4c9ac3e3eb843e3d999bae51339ad33a937303f43ce78064e61cb4b6",
                "sha256:dd81d85a342edf3d2a388e2f24d9facebc9c04550043888f970ee2f228c93059",
                "sha256:f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12",
                "sha256:f52e7287eb9286a1e91e4c67c207c2573147fbaddc68f70efb5aeee5d1992f2e",
                "sha256:fe7b2972ff7e779e812f974aa5695edc328ecf559ceeea887ac46f06f090ad4c",
                "sha256:ff1447c84a02b9cd5dd3a9332d1fb181a4386c3625765bb5caf1cfbc210ab3f9"
            ],
            "index": "pypi",
            "version": "==3.3.2"
        },
        "async-timeout": {
            "hashes": [
                "sha256:474d4bc64cee20603e225eb1ece15e248962958b45a3648a9f5cc29e827a610c",
                "sha256:b3c0ddc416736619bd4a95ca31de8da6920c3b9a140c64dbef2b2fa7bf521287"
            ],
            "markers": "python_version >= '3.5.3'",
            "version": "==3.0.0"
        },
        "attrs": {
            "hashes": [
                "sha256:4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265",
                "sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"
            ],
            "version": "==18.1.0"
        },
        "chardet": {
            "hashes": [
                "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
                "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
            ],
            "version": "==3.0.4"
        },
        "idna": {
            "hashes": [
                "sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e",
                "sha256:684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"
            ],
            "version": "==2.7"
        },
        "idna-ssl": {
            "hashes": [
                "sha256:1293f030bc608e9aa9cdee72aa93c1521bbb9c7698068c61c9ada6772162b979"
            ],
            "version": "==1.0.1"
        },
        "multidict": {
            "hashes": [
                "sha256:1a1d76374a1e7fe93acef96b354a03c1d7f83e7512e225a527d283da0d7ba5e0",
                "sha256:1d6e191965505652f194bc4c40270a842922685918a4f45e6936a6b15cc5816d",
                "sha256:295961a6a88f1199e19968e15d9b42f3a191c89ec13034dbc212bf9c394c3c82",
                "sha256:2be5af084de6c3b8e20d6421cb0346378a9c867dcf7c86030d6b0b550f9888e4",
                "sha256:2eb99617c7a0e9f2b90b64bc1fb742611718618572747d6f3d6532b7b78755ab",
                "sha256:4ba654c6b5ad1ae4a4d792abeb695b29ce981bb0f157a41d0fd227b385f2bef0",
                "sha256:5ba766433c30d703f6b2c17eb0b6826c6f898e5f58d89373e235f07764952314",
                "sha256:a59d58ee85b11f337b54933e8d758b2356fcdcc493248e004c9c5e5d11eedbe4",
                "sha256:a6e35d28900cf87bcc11e6ca9e474db0099b78f0be0a41d95bef02d49101b5b2",
                "sha256:b4df7ca9c01018a51e43937eaa41f2f5dce17a6382fda0086403bcb1f5c2cf8e",
                "sha256:bbd5a6bffd3ba8bfe75b16b5e28af15265538e8be011b0b9fddc7d86a453fd4a",
                "sha256:d870f399fcd58a1889e93008762a3b9a27cf7ea512818fc6e689f59495648355",
                "sha256:e9404e2e19e901121c3c5c6cffd5a8ae0d1d67919c970e3b3262231175713068"
            ],
            "markers": "python_version >= '3.4.1'",
            "version": "==4.3.1"
        },
        "yarl": {
            "hashes": [
                "sha256:2556b779125621b311844a072e0ed367e8409a18fa12cbd68eb1258d187820f9",
                "sha256:4aec0769f1799a9d4496827292c02a7b1f75c0bab56ab2b60dd94ebb57cbd5ee",
                "sha256:55369d95afaacf2fa6b49c84d18b51f1704a6560c432a0f9a1aeb23f7b971308",
                "sha256:6c098b85442c8fe3303e708bbb775afd0f6b29f77612e8892627bcab4b939357",
                "sha256:9182cd6f93412d32e009020a44d6d170d2093646464a88aeec2aef50592f8c78",
                "sha256:c8cbc21bbfa1dd7d5386d48cc814fe3d35b80f60299cdde9279046f399c3b0d8",
                "sha256:db6f70a4b09cde813a4807843abaaa60f3b15fb4a2a06f9ae9c311472662daa1",
                "sha256:f17495e6fe3d377e3faac68121caef6f974fcb9e046bc075bcff40d8e5cc69a4",
                "sha256:f85900b9cca0c67767bb61b2b9bd53208aaa7373dae633dbe25d179b4bf38aa7"
            ],
            "version": "==1.2.6"
        }
    },
    "develop": {}
}

Expected result

There is no idna-ssl in Pipfile.lock because aiohttp do not need idna-ssl with py37

Actual result

pipenv make wrong lock file with idna-ssl

Steps to replicate
$ python -V
Python 3.7.0


$ mktmpenv
Using base prefix '/Users/item4/.pyenv/versions/3.7.0'
New python executable in /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python3.7
Also creating executable in /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.


$ pip install pipenv
Collecting pipenv
  Using cached https://files.pythonhosted.org/packages/0d/e5/cbd43eaf3ca60c4b75ac8a4ff4f7ba102b629f519a2b325d67c4237b7fcc/pipenv-2018.6.25-py3-none-any.whl
Collecting certifi (from pipenv)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=36.2.1 in ./lib/python3.7/site-packages (from pipenv) (39.2.0)
Requirement already satisfied: pip>=9.0.1 in ./lib/python3.7/site-packages (from pipenv) (10.0.1)
Collecting virtualenv (from pipenv)
  Using cached https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl
Collecting virtualenv-clone>=0.2.5 (from pipenv)
  Using cached https://files.pythonhosted.org/packages/6d/c2/dccb5ccf599e0c5d1eea6acbd058af7a71384f9740179db67a9182a24798/virtualenv_clone-0.3.0-py2.py3-none-any.whl
Installing collected packages: certifi, virtualenv, virtualenv-clone, pipenv
Successfully installed certifi-2018.4.16 pipenv-2018.6.25 virtualenv-16.0.0 virtualenv-clone-0.3.0
(tmp-6327fd03a1e0f6d) [item4@item4-mbp tmp-6327fd03a1e0f6d]$ which pipenv
/Users/item4/.virtualenvs/tmp-6327fd03a1e0f6d/bin/pipenv


$ pipenv install aiohttp>=3.1.1
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead.
Creating a Pipfile for this project...
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Updated Pipfile.lock (21a02d)!
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 8/8 — 00:00:02
  Could not find a version that satisfies the requirement idna-ssl==1.0.1 (from -r /var/folders/xv/1bk19gh52hqf4_x199v_w1b80000gn/T/pipenv-3t2rzj4d-requirements/pipenv-87snv0l2-requirement.txt (line 1)) (from versions: 0.0.1, 0.0.2, 1.0.0)
No matching distribution found for idna-ssl==1.0.1 (from -r /var/folders/xv/1bk19gh52hqf4_x199v_w1b80000gn/T/pipenv-3t2rzj4d-requirements/pipenv-87snv0l2-requirement.txt (line 1))

  ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions