-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.The issue has been identified/triaged and contributions are welcomed/encouraged.Type: Documentation 📖This issue relates to documentation of pipenv.This issue relates to documentation of pipenv.
Description
Issue description
Pipenv fails to lock Pipfile.lock if Pipfile contains entries where sys_platform does not match.
Expected result
Locking should work like it did previous releases
Actual result
pipenv install
Pipfile.lock (e50a6e) out of date, updating to (dcc263)...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
⠧ Locking...False
CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement pywin32 (from versions: none)
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/resolver.py", line 645, in _main
[ResolutionFailure]: resolve_packages(
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/resolver.py", line 612, in resolve_packages
[ResolutionFailure]: results, resolver = resolve(
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/resolver.py", line 592, in resolve
[ResolutionFailure]: return resolve_deps(
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 908, in resolve_deps
[ResolutionFailure]: results, hashes, internal_resolver = actually_resolve_deps(
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 681, in actually_resolve_deps
[ResolutionFailure]: resolver.resolve()
[ResolutionFailure]: File "/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/utils/resolver.py", line 442, in resolve
[ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv run pip install <requirement_name> to bypass this mechanism, then run $ pipenv graph to inspect the versions actually installed in the virtualenv.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for pywin32Steps to replicate
Pipfile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
nuitka = ">=1.0"
zstandard = "*"
mypy = "*"
ordered-set = "*"
[packages]
hidapi = "==0.*"
pyside6 = ">=6.1.2"
pywin32 = {version = "*", sys_platform = "== 'win32'"}
sqlalchemy = "~=1.3"
psycopg2-binary = "*"
python-box = ">=6,<7"
pip = ">=22.2"
$ pipenv --support
Pipenv version: '2023.11.15'
Pipenv location: '/home/bearsh/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv'
Python location: '/home/bearsh/.local/pipx/venvs/pipenv/bin/python'
OS Name: 'posix'
User pip version: '23.3.1'
user Python installations found:
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.10.12',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '6.5.0-1008-oem',
'platform_system': 'Linux',
'platform_version': '#8-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 10 13:08:33 UTC '
'2023',
'python_full_version': '3.10.12',
'python_version': '3.10',
'sys_platform': 'linux'}
System environment variables:
SHELLSESSION_MANAGERWINDOWIDQT_ACCESSIBILITYCOLORTERMXDG_CONFIG_DIRSXDG_SESSION_PATHLANGUAGELC_ADDRESSLC_NAMESSH_AUTH_SOCKGOPRIVATESHELL_SESSION_IDDESKTOP_SESSIONLC_MONETARYSSH_AGENT_PIDGTK_RC_FILESXCURSOR_SIZEKDE_FORK_SLAVESDBUS_STARTER_BUS_TYPEXDG_SEATPWDXDG_SESSION_DESKTOPLOGNAMEXDG_SESSION_TYPESYSTEMD_EXEC_PIDXAUTHORITYXKB_DEFAULT_MODELVIRTUALENVWRAPPER_SCRIPTGTK2_RC_FILESHOMELC_PAPERLANGLS_COLORS_VIRTUALENVWRAPPER_APIXDG_CURRENT_DESKTOPKONSOLE_DBUS_SERVICEWAYLAND_DISPLAYQT_EXCLUDE_GENERIC_BEARERKONSOLE_DBUS_SESSIONPROFILEHOMEXDG_SEAT_PATHINVOCATION_IDKONSOLE_VERSIONMANAGERPIDKDE_SESSION_UIDWORKON_HOMEXKB_DEFAULT_LAYOUTLESSCLOSEXDG_SESSION_CLASSTERMLC_IDENTIFICATIONLESSOPENUSERCOLORFGBGPLASMA_USE_QT_SCALINGKDE_SESSION_VERSIONPAM_KWALLET5_LOGINQT_WAYLAND_FORCE_DPIDISPLAYSHLVLLC_TELEPHONEMOZ_USE_XINPUT2LC_MEASUREMENTXDG_VTNRXDG_SESSION_IDDBUS_STARTER_ADDRESSXDG_RUNTIME_DIRLC_TIMEQT_AUTO_SCREEN_SCALE_FACTORJOURNAL_STREAMXCURSOR_THEMEXDG_DATA_DIRSKDE_FULL_SESSIONPATHDBUS_SESSION_BUS_ADDRESSKDE_APPLICATIONS_AS_SCOPELC_NUMERIC_OLDPWDPIP_DISABLE_PIP_VERSION_CHECKPYTHONDONTWRITEBYTECODEPYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH:/home/bearsh/opt/flutter/bin:/home/bearsh/go/bin:/home/bearsh/.npm/bin:/home/bearsh/.local/bin:/home/bearsh/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/binSHELL:/bin/bashLANG:de_CH.UTF-8PWD:/home/bearsh/tmp/flex-prodtool
Metadata
Metadata
Assignees
Labels
Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.The issue has been identified/triaged and contributions are welcomed/encouraged.Type: Documentation 📖This issue relates to documentation of pipenv.This issue relates to documentation of pipenv.