Package from Pipfile.lock ignored because of last (irrelevant) marker not matching
See original GitHub issueIssue description
This package is not installed though I’m running with python 2.7:
"monotonic": {
"hashes": [
"sha256:23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0",
"sha256:552a91f381532e33cbd07c6a2655a21908088962bb8fa7239ecbcc6ad1140cc7"
],
"markers": "python_version == '2.6' or python_version == '2.7' or python_version == '3.0' or python_version == '3.1' or python_version == '3.2'",
"version": "==1.5"
}
The output from pipenv
:
Ignoring monotonic: markers 'python_version == "3.2"' don't match your environment
Expected result
A package with markers matching my version of python to be installed.
Actual result
When running with -v
I see this as it is installing:
Installing "monotonic==1.5; python_version == '3.2' --hash=sha256:23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0 --hash=sha256:552a91f381532e33cbd07c6a2655a21908088962bb8fa7239ecbcc6ad1140cc7"
Steps to replicate
Building this Dockerfile
shows the problem.
FROM ubuntu:xenial-20180525
RUN set -x \
&& DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
python-pip \
python-setuptools \
&& pip install --upgrade pip==10.0.1 pipenv==2018.7.1 \
&& apt-get clean
WORKDIR /home
RUN set -x \
&& pipenv install monotonic \
&& cat Pipfile.lock \
&& pipenv --rm \
&& rm Pipfile* \
&& pipenv install click coloredlogs \
&& pipenv --rm \
&& pipenv install --deploy --system
RUN pipenv --support
The key part of the output:
+ pipenv install --deploy --system
Installing dependencies from Pipfile.lock (fe9a7a)...
Ignoring monotonic: markers 'python_version == "3.2"' don't match your environment
$ pipenv --support
Pipenv version: '2018.7.1'
Pipenv location: '/usr/local/lib/python2.7/dist-packages/pipenv'
Python location: '/usr/bin/python'
Other Python installations in PATH
:
-
2.7
:/usr/bin/python2.7
-
2.7
:/usr/bin/python2.7
-
2.7.12
:/usr/bin/python
-
2.7.12
:/usr/bin/python2
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '0',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '4.9.87-linuxkit-aufs',
'platform_system': 'Linux',
'platform_version': '#1 SMP Wed Mar 14 15:12:16 UTC 2018',
'python_full_version': '2.7.12',
'python_version': '2.7',
'sys_platform': 'linux2'}
System environment variables:
HOSTNAME
PYTHONDONTWRITEBYTECODE
PATH
PWD
PIP_PYTHON_PATH
HOME
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD
:/home
Contents of Pipfile
(‘/home/Pipfile’):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
click = "*"
coloredlogs = "*"
[requires]
python_version = "2.7"
Contents of Pipfile.lock
(‘/home/Pipfile.lock’):
{
"_meta": {
"hash": {
"sha256": "b9e4a130dd91096ccb8440b9f0d585991e5ce067fcb232f5ba420792e5fe9a7a"
},
"pipfile-spec": 6,
"requires": {
"python_version": "2.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"click": {
"hashes": [
"sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
"sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
],
"index": "pypi",
"version": "==6.7"
},
"coloredlogs": {
"hashes": [
"sha256:34fad2e342d5a559c31b6c889e8d14f97cb62c47d9a2ae7b5ed14ea10a79eff8",
"sha256:b869a2dda3fa88154b9dd850e27828d8755bfab5a838a1c97fbc850c6e377c36"
],
"index": "pypi",
"version": "==10.0"
},
"humanfriendly": {
"hashes": [
"sha256:72a2efa8b477abb4fbdb3e5e224942c13e201c1df8c70fc244ef13b982ceb010",
"sha256:937b4d2c99d29007023ebcab23579429541bfb3357a97e5df38fc5d851a112a3"
],
"version": "==4.12.1"
},
"monotonic": {
"hashes": [
"sha256:23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0",
"sha256:552a91f381532e33cbd07c6a2655a21908088962bb8fa7239ecbcc6ad1140cc7"
],
"markers": "python_version == '2.6' or python_version == '2.7' or python_version == '3.0' or python_version == '3.1' or python_version == '3.2'",
"version": "==1.5"
}
},
"develop": {}
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
pipenv install --ignore-pipfile creates a Pipfile with no packages
I want to move the program to another environment, eg A to B. At A, I first issue pipenv lock to update the...
Read more >Build failed using pipenv - Binder - Jupyter Community Forum
I have a notebook available in a git repo here (5d95b). The repository includes both Pipfile and Pipfile.lock which I understand should be ......
Read more >Common Pipenv Errors and How to Solve Them: Why Won't it ...
Pipfile won't lock when it tries to install packages that don't exist, i.e., typos. ... Pipenv looks for the package you specify, whether...
Read more >Changelog - PDM
The local package is now treated specially during installation and locking. This means it will no longer be included in the lockfile, and...
Read more >Webots documentation: Technical-Questions 2020
Stefania Pedrazzi [Cyberbotics] 01/09/2020 10:27:58. I suspect there is some issue with the names, because the devices are not found. Note that from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the debugging info on here is actually super helpful, I think I know exactly why this is happening and how to fix. Thanks for reporting
I see, thanks so much! We’ll investigate.