Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolver isn't able to resolve Pillow dependency #2501

Closed
vindemasi opened this issue Jul 3, 2018 · 4 comments
Closed

Resolver isn't able to resolve Pillow dependency #2501

vindemasi opened this issue Jul 3, 2018 · 4 comments

Comments

@vindemasi
Copy link

vindemasi commented Jul 3, 2018

Hello,

Issue description

I've a strange behaviour installing/updating my project with the Pillow package. The resolver
cannot find a solution, but the solution exists. In fact I was able to workaround the issue forcing the right version for Pillow. The version of pipenv is 2018.6.25.

Expected result

The dependencies should be resolved and pillow installed

Actual result

The dependencies are not resolved. pipenv reports "There are incompatible versions in the resolved dependencies."

Here the output of 'pipenv lock --clear --verbose':

Locking [dev-packages] dependencies...
Locking [packages] dependencies...
using sources: [{'name': 'pypi', 'verify_ssl': True, 'url': 'https://pypi.org/simple'}]
Using pip: -i https://pypi.org/simple

                          ROUND 1                           
Current constraints:
  django-versatileimagefield (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-f97jyvtw-constraints.txt (line 3))
  pillow (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-f97jyvtw-constraints.txt (line 2))

Finding the best candidates:
  found candidate django-versatileimagefield==1.9 (constraint was <any>)
  found candidate pillow==5.2.0 (constraint was <any>)

Finding secondary dependencies:
  django-versatileimagefield==1.9 not in cache, need to check index
  django-versatileimagefield==1.9; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7" requires django-versatileimagefield==1.9; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7", pillow<=5.0.0,>=2.4.0
  pillow==5.2.0 not in cache, need to check index
  pillow==5.2.0; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7" requires pillow==5.2.0; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7"

New dependencies found in this round:
  adding ['django-versatileimagefield', '==1.9', '[]']
  adding ['pillow', '<=5.0.0,==5.2.0,>=2.4.0', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  django-versatileimagefield==1.9 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-f97jyvtw-constraints.txt (line 3))
  pillow<=5.0.0,==5.2.0,>=2.4.0 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-f97jyvtw-constraints.txt (line 2))

Finding the best candidates:
  found candidate django-versatileimagefield==1.9 (constraint was ==1.9)
Using pip: -i https://pypi.org/simple

                          ROUND 1                           
Current constraints:
  django-versatileimagefield (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-y8dgdpaw-constraints.txt (line 3))
  pillow (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-y8dgdpaw-constraints.txt (line 2))

Finding the best candidates:
  found candidate django-versatileimagefield==1.9 (constraint was <any>)
  found candidate pillow==5.2.0 (constraint was <any>)

Finding secondary dependencies:
  django-versatileimagefield==1.9 not in cache, need to check index
  django-versatileimagefield==1.9; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7" requires django-versatileimagefield==1.9; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7", pillow<=5.0.0,>=2.4.0
  pillow==5.2.0 not in cache, need to check index
  pillow==5.2.0; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7" requires pillow==5.2.0; python_version != "3.0.*" and python_version != "3.1.*" and python_version != "3.2.*" and python_version != "3.3.*" and python_version >= "2.7"

New dependencies found in this round:
  adding ['django-versatileimagefield', '==1.9', '[]']
  adding ['pillow', '<=5.0.0,==5.2.0,>=2.4.0', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  django-versatileimagefield==1.9 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-y8dgdpaw-constraints.txt (line 3))
  pillow<=5.0.0,==5.2.0,>=2.4.0 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-y8dgdpaw-constraints.txt (line 2))

Finding the best candidates:
  found candidate django-versatileimagefield==1.9 (constraint was ==1.9)

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 pillow<=5.0.0,==5.2.0,>=2.4.0 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-f97jyvtw-constraints.txt (line 2))
Tried: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.6, 1.7.7, 1.7.8, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.1, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.2.2, 2.3.0, 2.3.0, 2.3.0, 2.3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0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0
Skipped pre-versions: 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1
There are incompatible versions in the resolved 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 pillow<=5.0.0,==5.2.0,>=2.4.0 (from -r /var/folders/61/s4p571x10kl_g06g9fhp687h0000gn/T/pipenv-pvpcowo6-requirements/pipenv-y8dgdpaw-constraints.txt (line 2))
Tried: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.6, 1.7.7, 1.7.8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 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 4.3.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.0.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.1.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0, 5.2.0
Skipped pre-versions: 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1, 3.1.0rc1
There are incompatible versions in the resolved dependencies.

Steps to replicate

Here minimal Pipfile to reproduce the issue:

  1. this do not work
[[source]]
verify_ssl = true
name = "pypi"
url = "https://pypi.org/simple"

[requires]
python_version = "3.5"

[dev-packages]

[packages]
django-versatileimagefield = "*"
pillow = "*"

pipenv reports "There are incompatible versions in the resolved dependencies."

  1. this work (Pillow isn't specified at all):
[[source]]
verify_ssl = true
name = "pypi"
url = "https://pypi.org/simple"

[requires]
python_version = "3.5"

[dev-packages]

[packages]
django-versatileimagefield = "*"
  1. this work (Pillow is forced to the maximum version django-versatileimagefield accepts):
[[source]]
verify_ssl = true
name = "pypi"
url = "https://pypi.org/simple"

[requires]
python_version = "3.5"

[dev-packages]

[packages]
django-versatileimagefield = "*"
pillow = "==5.0.0"
@vindemasi
Copy link
Author

vindemasi commented Jul 3, 2018

Updated to last pipenv version but the issue is here too. Possibly related with #2499

here pipenv --suport output

$ pipenv --support

Pipenv version: '2018.7.1'

Pipenv location: '/Users/negatron/.pyenv/versions/3.5.4/lib/python3.5/site-packages/pipenv'

Python location: '/Users/negatron/.pyenv/versions/3.5.4/bin/python3.5'

Other Python installations in PATH:

  • 2.7: /usr/local/bin/python2.7

  • 2.7: /usr/local/bin/python2.7

  • 2.7: /usr/bin/python2.7

  • 3.4: /Users/negatron/.pyenv/shims/python3.4

  • 3.5: /Users/negatron/.pyenv/versions/3.5.4/bin/python3.5m

  • 3.5: /Users/negatron/.pyenv/versions/3.5.4/bin/python3.5

  • 3.5: /Users/negatron/.pyenv/shims/python3.5

  • 3.7: /usr/local/bin/python3.7m

  • 3.7: /usr/local/bin/python3.7

  • 3.5.4: /Users/negatron/.pyenv/versions/3.5.4/bin/python

  • 3.5.4: /Users/negatron/.pyenv/shims/python

  • 2.7.15: /usr/local/bin/python

  • 2.7.10: /usr/bin/python

  • 2.7.15: /usr/local/bin/python2

  • 3.5.4: /Users/negatron/.pyenv/versions/3.5.4/bin/python3

  • 3.5.4: /Users/negatron/.pyenv/shims/python3

  • 3.7.0: /usr/local/bin/python3

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.5.4',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.6.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT '
                     '2018; root:xnu-4570.61.1~1/RELEASE_X86_64',
 'python_full_version': '3.5.4',
 'python_version': '3.5',
 'sys_platform': 'darwin'}

System environment variables:

  • TMUX_PANE
  • TERM_SESSION_ID
  • TERM_PROGRAM_VERSION
  • DISPLAY
  • LANG
  • USER
  • CLICOLOR
  • PYENV_HOOK_PATH
  • PIP_PYTHON_PATH
  • TMUX
  • Apple_PubSub_Socket_Render
  • PYENV_SHELL
  • ITERM_SESSION_ID
  • TMPDIR
  • JAVA_HOME
  • TERM
  • COMMAND_MODE
  • ITERM_PREV_PS1
  • LDFLAGS
  • PIPENV_VENV_IN_PROJECT
  • EDITOR
  • HOME
  • ITERM_ORIG_PS1
  • PYENV_ROOT
  • TERM_PROGRAM
  • SHLVL
  • PYTHONDONTWRITEBYTECODE
  • LSCOLORS
  • COLORFGBG
  • GOPATH
  • PYENV_VERSION
  • PYENV_DIR
  • PWD
  • ITERM_PROFILE
  • SSH_AUTH_SOCK
  • XPC_FLAGS
  • __CF_USER_TEXT_ENCODING
  • HOMEBREW_GITHUB_API_TOKEN
  • SHELL
  • PATH
  • COLORTERM
  • LOGNAME
  • SECURITYSESSIONID
  • XPC_SERVICE_NAME

Pipenv–specific environment variables:

  • PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

  • PATH: /Users/negatron/.pyenv/versions/3.5.4/bin:/usr/local/Cellar/pyenv/1.2.5/libexec:/usr/local/opt/node@4/bin:/Users/negatron/Library/Python/2.7/bin:/Users/negatron/.pyenv/shims:/Users/negatron/go/bin:/Users/negatron/.local/bin:/Users/negatron/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Developer/Tools/Panda3D:/usr/local/opt/go/libexec/bin
  • SHELL: /bin/bash
  • EDITOR: subl -w
  • LANG: it_IT.UTF-8
  • PWD: /Users/negatron/PycharmProjects/testpe

Contents of Pipfile ('/Users/negatron/PycharmProjects/testpe/Pipfile'):

[[source]]
verify_ssl = true
name = "pypi"
url = "https://pypi.org/simple"

[requires]
python_version = "3.5"

[dev-packages]

[packages]
django-versatileimagefield = "*"
pillow = "*"

@techalchemy
Copy link
Member

if you have a package in your pipfile that is the dependency of another package, you should remove it and let the resolver figure it out. An unpinned top level dependency means pipenv will try to get the latest one.

@sdispater
Copy link

@techalchemy Shouldn't pipenv respect the django-versatileimagefield constraint for Pillow (>=2.4.0,<=5.0.0) since the Pipfile accept any Pillow versions?

@techalchemy
Copy link
Member

Yeah for sure it should. The resolver stack is in the process of being untangled now — you’re aware of some of the limitations, and it can be a challenge working through where in the stack these problems are actually originating.

So to clarify— this is a bug, but we are actively looking at it. In the meantime it can be avoided by keeping top level dependencies in your pipfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants