Creating a virtualenv for this project...
Pipfile: /tmp/tmpqc1yuhsw/Pipfile
Using /usr/bin/python3.6m (3.6.5) to create virtualenv...
Running virtualenv with interpreter /usr/bin/python3.6m
Using base prefix '/usr'
New python executable in /tmp/tmpqc1yuhsw/.venv/bin/python3.6m
Also creating executable in /tmp/tmpqc1yuhsw/.venv/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: /tmp/tmpqc1yuhsw/.venv
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pyyaml==3.12,==4.2b4 (from -r /tmp/pipenv-130k553c-requirements/pipenv-86747my2-constraints.txt (line 7))
Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13
Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4
There are incompatible versions in the resolved dependencies.
Issue description
As described in the docs it is expected that libraries do not pin dependencies to specific versions. However this restriction is many times ignored or simply not seen in projects. I, as a user, should be able to pin down a dependency in my library to a version if that is the only version the given package works with.
As a subsequent behavior, if my application uses the same dependency as one of the libs I use, performing
pipenv installorpipenv updatesimply fails if I do not pin down dependency to the same version as my library uses. This requires pinning dependencies in the Pipfile without any particular reason on my side (also consider updates of libs that can cause pinned versions to be rotten).Expected result
Dependency resolver is smart enough to resolve dependencies even though libraries I'm using have pinned down versions.
Actual result
If I use the same library as one of my dependencies,
pipenv installorpipenv updatefails:Standard error
Relevant parts of the dependency graph:
Dependency graph
See this automated report for real world example - thoth-station/package-releases-job#47
Steps to replicate
pipenv install aiogremlin==3.2.6rc1 pyyaml --pre$ pipenv --support
Pipenv version:
'2018.7.1'Pipenv location:
'/usr/local/lib/python3.6/site-packages/pipenv'Python location:
'/usr/bin/python3'Other Python installations in
PATH:2.7:/usr/bin/python2.72.7:/usr/bin/python2.73.6:/usr/bin/python3.6m3.6:/usr/bin/python3.62.7.15:/usr/bin/python2.7.15:/usr/bin/python23.6.5:/usr/bin/python3PEP 508 Information:
System environment variables:
XDG_SEATGIO_LAUNCHED_DESKTOP_FILE_PIDXDG_SESSION_IDWINDOWPATHDISPLAYBASH_ENVHOSTNAMECOLORTERMQTLIBENVGNOME_DESKTOP_SESSION_IDLOGNAMEMODULESHOMEGUESTFISH_PS1SHELLFPATHGUESTFISH_INITPATHHISTCONTROLXMODIFIERSGIO_LAUNCHED_DESKTOP_FILESSH_AUTH_SOCKGUESTFISH_OUTPUTXAUTHORITYXDG_SESSION_DESKTOPGDMSESSIONQT_IM_MODULEHISTSIZESSH_ASKPASSLESSOPENOLDPWDXDG_MENU_PREFIXMODULES_RUN_QUARANTINEMAILUSERNAMEXDG_RUNTIME_DIRMODULES_CMDMODULEPATHDESKTOP_SESSIONGUESTFISH_RESTOREQTDIRUSERPWDTERMINATOR_UUIDVTE_VERSIONQTINCTERMINATOR_DBUS_PATHHOMEDESKTOP_AUTOSTART_IDXDG_DATA_DIRSLOADEDMODULESMODULEPATH_modshareLANGSHLVLXDG_VTNRGDM_LANGTERMINATOR_DBUS_NAMEXDG_SESSION_TYPEDBUS_SESSION_BUS_ADDRESSXDG_CURRENT_DESKTOPTERMSESSION_MANAGERLS_COLORSZSHPAGERLESSLSCOLORSVIRTUALENVWRAPPER_PROJECT_FILENAMEVIRTUALENVWRAPPER_WORKON_CDVIRTUALENVWRAPPER_SCRIPTWORKON_HOMEVIRTUALENVWRAPPER_HOOK_DIRLC_CTYPEGOPATH_PYTHONDONTWRITEBYTECODEPIP_PYTHON_PATHPipenv–specific environment variables:
Debug–specific environment variables:
PATH:/home/fpokorny/bin:/usr/local/cuda-8.0/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/fpokorny/binSHELL:/usr/bin/zshLANG:en_US.UTF-8PWD:/tmp/aContents of
Pipfile('/tmp/a/Pipfile'):