Closed chgad closed 6 years ago
Do a pipenv lock --clear
and try again.
Thanks ! This helped. But could u shortly elaborate what the flag --clear
does ?
The lock sequence caches the result to speed up subsequent runs. The cache may contain faulty results if a bug causes the format to corrupt. --clear
flushes the result cache, and therefore removes the bad results :)
So there is potentially a bug running wild that corrupts the cache? I have also encountered this issue when uninstalling openpyxl from my project
I can see this on a completely fresh environment:
docker run -it ubuntu:latest bash
apt update && apt -y upgrade && apt -y install python3-pip
pip3 install pip --upgrade
mkdir foo && cd foo && pipenv shell
pipenv install requests
and as mentioned above pipenv lock --clear
dosn't fix this.
@chenl your instructions seem incomplete (how is pipenv installed?) and no traceback/error message has been attached by you
the timing of this error report makes me think that you have encountered pip 18.1 incompatibility instead https://github.com/pypa/pipenv/issues/2924
@rooterkyberian Potentially, yes, but there really isn’t a viable way to find out what the problem is.
Please refer to our StackOverflow tag for more information.
If Pipenv is not functioning as you would like it to, consider filing either a bug report, or a feature request instead.
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version: `'2018.7.1'` Pipenv location: `'/usr/local/lib/python3.5/dist-packages/pipenv'` Python location: `'/usr/bin/python3'` Other Python installations in `PATH`: - `2.7`: `/usr/bin/python2.7` - `2.7`: `/usr/bin/python2.7` - `3.5`: `/usr/bin/python3.5m` - `3.5`: `/usr/bin/python3.5` - `2.7.12`: `/usr/bin/python` - `2.7.12`: `/usr/bin/python2` - `3.5.2`: `/usr/bin/python3` PEP 508 Information: ``` {'implementation_name': 'cpython', 'implementation_version': '3.5.2', 'os_name': 'posix', 'platform_machine': 'x86_64', 'platform_python_implementation': 'CPython', 'platform_release': '4.15.0-24-generic', 'platform_system': 'Linux', 'platform_version': '#26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018', 'python_full_version': '3.5.2', 'python_version': '3.5', 'sys_platform': 'linux'} ``` System environment variables: - `GDMSESSION` - `XDG_RUNTIME_DIR` - `XDG_SESSION_DESKTOP` - `LC_IDENTIFICATION` - `MANDATORY_PATH` - `GTK_IM_MODULE` - `DEFAULTS_PATH` - `VTE_VERSION` - `_` - `HOME` - `LESSCLOSE` - `LC_NAME` - `UPSTART_SESSION` - `GPG_AGENT_INFO` - `LC_PAPER` - `XDG_SESSION_ID` - `GTK2_MODULES` - `LC_MEASUREMENT` - `TERM` - `JOB` - `GNOME_KEYRING_CONTROL` - `DESKTOP_SESSION` - `SSH_AUTH_SOCK` - `USER` - `LESSOPEN` - `DBUS_SESSION_BUS_ADDRESS` - `PIP_PYTHON_PATH` - `USERNAME` - `LC_ADDRESS` - `XAUTHORITY` - `GTK_MODULES` - `UPSTART_EVENTS` - `XDG_SEAT` - `XDG_CURRENT_DESKTOP` - `CLUTTER_IM_MODULE` - `OLDPWD` - `WINDOWID` - `LANG` - `QT_ACCESSIBILITY` - `SESSIONTYPE` - `QT_IM_MODULE` - `QT_QPA_PLATFORMTHEME` - `PATH` - `PYTHONDONTWRITEBYTECODE` - `UPSTART_JOB` - `IM_CONFIG_PHASE` - `QT_LINUX_ACCESSIBILITY_ALWAYS_ON` - `GNOME_DESKTOP_SESSION_ID` - `QT4_IM_MODULE` - `LC_NUMERIC` - `LC_TELEPHONE` - `LC_TIME` - `XDG_SESSION_TYPE` - `INSTANCE` - `XDG_DATA_DIRS` - `WINDOWPATH` - `XDG_VTNR` - `DISPLAY` - `PWD` - `LC_MONETARY` - `COMPIZ_CONFIG_PROFILE` - `UPSTART_INSTANCE` - `XDG_CONFIG_DIRS` - `SHLVL` - `LOGNAME` - `GNOME_KEYRING_PID` - `XMODIFIERS` - `SHELL` - `LS_COLORS` Pipenv–specific environment variables: Debug–specific environment variables: - `PATH`: `/home/christian/bin:/home/christian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin` - `SHELL`: `/bin/bash` - `LANG`: `en_US.UTF-8` - `PWD`: `/home/christian/work/django-geomat` --------------------------- Contents of `Pipfile` ('/home/christian/work/django-geomat/Pipfile'): ```toml [[source]] url = "https://pypi.python.org/simple" verify_ssl = true name = "pypi" [packages] Django = "*" django-environ = "*" whitenoise = "*" django-braces = "*" django-crispy-forms = "*" django-model-utils = "*" django-allauth = "*" "psycopg2" = "*" awesome-slugify = "*" pytz = "*" django-stdimage = "*" djangorestframework = "*" Pillow = "*" Markdown = "*" django-filter = "*" django-stdimage-serializer = "*" coreapi = "*" Pygments = "*" django-cors-headers = "*" gevent = "*" gunicorn = "*" django-anymail = "*" raven = "*" ipython_genutils = "*" drf-yasg = "*" [dev-packages] coverage = "*" django_coverage_plugin = "*" Sphinx = "*" django-extensions = "*" Werkzeug = "*" django-test-plus = "*" factory_boy = "*" django-debug-toolbar = "*" ipython = "*" ipdb = "*" pytest-django = "*" pytest-sugar = "*" django-rosetta = "*" pytest-cov = "*" codecov = "*" ```Hello everyone, i just upgraded pipenv to the newest verison and wanted to update my "fairly old" Pipflie.lock. When doing this, in the "locking phase" i get the following error :
Locking [dev-packages] dependencies...
line 87, in
main()
File "/usr/local/lib/python3.5/dist-packages/pipenv/resolver.py", line 76, in main
system=system,
File "/usr/local/lib/python3.5/dist-packages/pipenv/resolver.py", line 63, in resolve
allow_global=system,
File "/usr/local/lib/python3.5/dist-packages/pipenv/utils.py", line 402, in resolve_deps
req_dir=req_dir
File "/usr/local/lib/python3.5/dist-packages/pipenv/utils.py", line 293, in actually_resolve_deps
results = resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS)
File "/usr/local/lib/python3.5/dist-packages/pipenv/patched/piptools/resolver.py", line 104, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/usr/local/lib/python3.5/dist-packages/pipenv/patched/piptools/resolver.py", line 209, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/usr/local/lib/python3.5/dist-packages/pipenv/patched/piptools/resolver.py", line 311, in _iter_dependencies
yield InstallRequirement.from_line(dependency_string, constraint=ireq.constraint)
File "/usr/local/lib/python3.5/dist-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 193, in from_line
markers = Marker(markers)
File "/usr/local/lib/python3.5/dist-packages/pipenv/patched/notpip/_vendor/packaging/markers.py", line 280, in init
raise InvalidMarker(err_str)
pipenv.patched.notpip._vendor.packaging.markers.InvalidMarker: Invalid marker: 'sys_platform != "win32"; sys_platform != "win32"', parse error at '; sys_pl'
I allready considered #2359. In my current Pipfile.lock there exists a dependency of
Pexpect
which has this marker set, so i assume to have it tracke down to this package. Unfortunatly I do not install this directly (see Pipfile above) and it does not occur inpipenv graph
either. Where is the error ?Thanks in advance.