{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/1670","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/1670/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/1670/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/1670/events","html_url":"https://github.com/pypa/pipenv/issues/1670","id":304180373,"number":1670,"title":"Invalid marker error when installing on v11.4.0","user":{"login":"ryanwilsonperkin","id":3004111,"avatar_url":"https://avatars1.githubusercontent.com/u/3004111?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanwilsonperkin","html_url":"https://github.com/ryanwilsonperkin","followers_url":"https://api.github.com/users/ryanwilsonperkin/followers","following_url":"https://api.github.com/users/ryanwilsonperkin/following{/other_user}","gists_url":"https://api.github.com/users/ryanwilsonperkin/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwilsonperkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwilsonperkin/subscriptions","organizations_url":"https://api.github.com/users/ryanwilsonperkin/orgs","repos_url":"https://api.github.com/users/ryanwilsonperkin/repos","events_url":"https://api.github.com/users/ryanwilsonperkin/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwilsonperkin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-11T18:17:28Z","updated_at":"2018-03-11T18:44:08Z","closed_at":"2018-03-11T18:29:43Z","author_association":"CONTRIBUTOR","body":"I believe this is an extension of https://github.com/pypa/pipenv/issues/1617\r\nThe last version that works produces the desired behaviour is `pipenv==11.1.3`.\r\n\r\nI'm getting a `pip._vendor.packaging.markers.InvalidMarker` exception when running `pipenv install` and installing the `responses` package.\r\n\r\nIt is worth noting that the `responses` package includes the following [in their setup.py](https://github.com/getsentry/responses/blob/master/setup.py#L38-L41) and that this may be an improper packaging issue.\r\n```python\r\nextras_require = {\r\n    ':python_version in \"2.6, 2.7, 3.2\"': ['mock'],\r\n    'tests': tests_require,\r\n}\r\n```\r\n\r\nResult of running `$ python -m pipenv.help`:\r\n<details>\r\nPipenv version: `'11.4.0'`\r\n\r\nPipenv location: `'/usr/local/lib/python2.7/site-packages/pipenv'`\r\n\r\nPython location: `'/usr/local/opt/python/bin/python2.7'`\r\n\r\nOther Python installations in `PATH`:\r\n\r\n  - `2.6`: `/usr/bin/python2.6`\r\n  - `2.6`: `/usr/bin/python2.6`\r\n  - `2.7`: `/usr/local/bin/python2.7`\r\n  - `2.7`: `/usr/local/bin/python2.7`\r\n  - `2.7`: `/usr/bin/python2.7`\r\n  - `3.6`: `/usr/local/bin/python3.6m`\r\n  - `3.6`: `/usr/local/bin/python3.6`\r\n\r\n  - `2.7.13`: `/usr/local/bin/python`\r\n  - `2.7.10`: `/usr/bin/python`\r\n  - `2.7.13`: `/usr/local/bin/python2`\r\n  - `3.6.4`: `/usr/local/bin/python3`\r\n\r\nPEP 508 Information:\r\n\r\n```\r\n{'implementation_name': 'cpython',\r\n 'implementation_version': '0',\r\n 'os_name': 'posix',\r\n 'platform_machine': 'x86_64',\r\n 'platform_python_implementation': 'CPython',\r\n 'platform_release': '15.6.0',\r\n 'platform_system': 'Darwin',\r\n 'platform_version': 'Darwin Kernel Version 15.6.0: Mon Nov 13 21:58:35 PST 2017; root:xnu-3248.72.11~1/RELEASE_X86_64',\r\n 'python_full_version': '2.7.13',\r\n 'python_version': '2.7',\r\n 'sys_platform': 'darwin'}\r\n```\r\n\r\nSystem environment variables:\r\n\r\n  - `TERM_PROGRAM_VERSION`\r\n  - `LOGNAME`\r\n  - `USER`\r\n  - `NVM_DIR`\r\n  - `HOME`\r\n  - `PATH`\r\n  - `PYTHONUNBUFFERED`\r\n  - `DISPLAY`\r\n  - `TERM_PROGRAM`\r\n  - `LANG`\r\n  - `TERM`\r\n  - `Apple_PubSub_Socket_Render`\r\n  - `COLORFGBG`\r\n  - `SHLVL`\r\n  - `SECURITYSESSIONID`\r\n  - `XPC_FLAGS`\r\n  - `ITERM_SESSION_ID`\r\n  - `EDITOR`\r\n  - `TERM_SESSION_ID`\r\n  - `XPC_SERVICE_NAME`\r\n  - `SSH_AUTH_SOCK`\r\n  - `SHELL`\r\n  - `ITERM_PROFILE`\r\n  - `PIP_PYTHON_PATH`\r\n  - `TMPDIR`\r\n  - `__CF_USER_TEXT_ENCODING`\r\n  - `PWD`\r\n  - `COLORTERM`\r\n</details>\r\n\r\n------------\r\n\r\n##### Expected result\r\n\r\nInstallation of `responses` package.\r\n\r\n##### Actual result\r\n\r\n```\r\n$ pipenv install --verbose\r\nPipfile.lock not found, creating…\r\nLocking [dev-packages] dependencies…\r\nUsing pip: -i https://pypi.python.org/simple\r\n\r\n                          ROUND 1\r\nCurrent constraints:\r\n\r\nFinding the best candidates:\r\n\r\nFinding secondary dependencies:\r\n------------------------------------------------------------\r\nResult of round 1: stable, done\r\n\r\nLocking [packages] dependencies…\r\nUsing pip: -i https://pypi.python.org/simple\r\n\r\n                          ROUND 1\r\nCurrent constraints:\r\n  responses\r\n\r\nFinding the best candidates:\r\n  found candidate responses==0.8.1 (constraint was <any>)\r\n\r\nFinding secondary dependencies:\r\n  responses==0.8.1          requires cookies, mock; python_version in \"2.6, 2.7, 3.2\", requests>=2.0, six\r\n\r\nINFO:pip._vendor.requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): pypi.fury.io\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/resolver.py\", line 66, in <module>\r\n    main()\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/resolver.py\", line 54, in main\r\n    results = resolve(packages, pre=do_pre, sources=project.sources, verbose=is_verbose, clear=do_clear)\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/resolver.py\", line 52, in resolve\r\n    return pipenv.utils.resolve_deps(packages, which, project=project, pre=pre, sources=sources, clear=clear, verbose=verbose)\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/utils.py\", line 398, in resolve_deps\r\n    resolved_tree, resolver = actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources, verbose, clear, pre)\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/utils.py\", line 328, in actually_resolve_reps\r\n    resolved_tree.update(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/patched/piptools/resolver.py\", line 102, in resolve\r\n    has_changed, best_matches = self._resolve_one_round()\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/patched/piptools/resolver.py\", line 200, in _resolve_one_round\r\n    for dep in self._iter_dependencies(best_match):\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/patched/piptools/resolver.py\", line 325, in _iter_dependencies\r\n    yield InstallRequirement.from_line(dependency_string, constraint=ireq.constraint)\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/patched/notpip/req/req_install.py\", line 181, in from_line\r\n    markers = Marker(markers)\r\n  File \"/usr/local/lib/python2.7/site-packages/pipenv/../pipenv/../pip/_vendor/packaging/markers.py\", line 282, in __init__\r\n    raise InvalidMarker(err_str)\r\npip._vendor.packaging.markers.InvalidMarker: Invalid marker: u'python_version in \"2.6', parse error at u'\"2.6'\r\n\r\n/usr/local/lib/python2.7/site-packages/pipenv/utils.py:1156: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/var/folders/k_/yfvkl0_n2y9_t7xr9gd16r740000gn/T/pipenv-vN8Ju3-requirements'>\r\n  warnings.warn(warn_message, ResourceWarning)\r\n```\r\n\r\n##### Steps to replicate\r\n`pipenv install` with the following `Pipfile`:\r\n\r\n```toml\r\n[[source]]\r\n\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n[packages]\r\nresponses = \"*\"\r\n```"},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/372138497","html_url":"https://github.com/pypa/pipenv/issues/1670#issuecomment-372138497","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/1670","id":372138497,"user":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars2.githubusercontent.com/u/119893?v=4","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T18:44:08Z","updated_at":"2018-03-11T18:44:08Z","author_association":"CONTRIBUTOR","body":"just put a fallback mechanism in place, our custom parsing, if it fails, take it as-is. "}}
{"actor":{"display_login":"kennethreitz"}}