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

VersionConflict with importlib-metadata #4549

Closed
whg517 opened this issue Dec 1, 2020 · 1 comment · Fixed by #4593
Closed

VersionConflict with importlib-metadata #4549

whg517 opened this issue Dec 1, 2020 · 1 comment · Fixed by #4593

Comments

@whg517
Copy link

whg517 commented Dec 1, 2020

Issue description

I don't know why importlib-metadata dependency conflict recently occurred, but I installed the package in my new environment.

pkg_resources.VersionConflict: (importlib-metadata 3.1.0 (/home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages), Requirement.parse('importlib-metadata<2,>=0.12; python_version < "3.8"'))

Expected result

Pipenv Lock can be executed normally

Actual result

(python-guide)  ✘ kevin@kevin  ~/workspaces/develop/doc/python-guide  pip list
Package    Version
---------- -------
packaging  20.7
pip        20.2.1
setuptools 49.2.1
wheel      0.34.2
(python-guide)  kevin@kevin  ~/workspaces/develop/doc/python-guide  pip --version
pip 20.2.1 from /home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages/pip (python 3.7)
(python-guide)  kevin@kevin  ~/workspaces/develop/doc/python-guide  pipenv --version
pipenv, version 2020.11.15
(python-guide)  kevin@kevin  ~/workspaces/develop/doc/python-guide  pipenv install importlib-metadata --verbose
Installing importlib-metadata...
Installing package: importlib-metadata
Writing supplied requirement line to temporary file: 'importlib-metadata'
Installing 'importlib-metadata'
⠙ Installing importlib-metadata...$ ['/home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/pip', 'install', '--verbose', '--upgrade', '--exists-action=i', '-r', '/tmp/pipenv-lk4n0l4d-requirements/pipenv-z4guu5ff-requirement.txt', '-i', 'https://pypi.org/simple']
Using source directory: '/home/kevin/.virtualenvs/python-guide-UQdmv-Su/src'
Adding importlib-metadata to Pipfile's [packages]...
✔ Installation Succeeded 
Pipfile.lock (a65489) out of date, updating to (ac86d9)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
⠇ Locking...
                          ROUND 1                           
✘ Locking Failed! 
Current constraints:
  importlib-metadata (from -r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.1.0 (constraint was <any>)

Finding secondary dependencies:
  importlib-metadata==3.1.0 requires zipp>=0.5

New dependencies found in this round:
  adding ['zipp', '>=0.5', '[]']
Removed dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))
  zipp>=0.5 (from importlib-metadata==3.1.0->-r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.1.0 (constraint was <any>)
  found candidate zipp==3.4.0 (constraint was >=0.5)

Finding secondary dependencies:
  importlib-metadata==3.1.0 requires zipp>=0.5
  zipp==3.4.0               requires -
------------------------------------------------------------
Result of round 2: stable, done

Generating hashes:
  importlib-metadata
  zipp
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 764, in <module>
    main()
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 760, in main
    dev=parsed.dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 741, in _main
    resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 714, in resolve_packages
    results = clean_results(results, resolver, project, dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 590, in clean_results
    reverse_deps = project.environment.reverse_dependencies()
  File "/usr/local/lib/python3.7/dist-packages/pipenv/project.py", line 376, in environment
    self._environment = self.get_environment(allow_global=allow_global)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/project.py", line 366, in get_environment
    environment.extend_dists(pipenv_dist)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 127, in extend_dists
    extras = self.resolve_dist(dist, self.base_working_set)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 122, in resolve_dist
    deps |= cls.resolve_dist(dist, working_set)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 121, in resolve_dist
    dist = working_set.find(req)
  File "/home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages/pkg_resources/__init__.py", line 642, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (importlib-metadata 3.1.0 (/home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages), Requirement.parse('importlib-metadata<2,>=0.12; python_version < "3.8"'))
ROUND 1                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.1.0 (constraint was <any>)

Finding secondary dependencies:
  importlib-metadata==3.1.0 requires zipp>=0.5

New dependencies found in this round:
  adding ['zipp', '>=0.5', '[]']
Removed dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))
  zipp>=0.5 (from importlib-metadata==3.1.0->-r /tmp/pipenvjcxsskfprequirements/pipenv-i3uz_75a-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.1.0 (constraint was <any>)
  found candidate zipp==3.4.0 (constraint was >=0.5)

Finding secondary dependencies:
  importlib-metadata==3.1.0 requires zipp>=0.5
  zipp==3.4.0               requires -
------------------------------------------------------------
Result of round 2: stable, done

Generating hashes:
  importlib-metadata
  zipp
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 764, in <module>
    main()
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 760, in main
    dev=parsed.dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 741, in _main
    resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 714, in resolve_packages
    results = clean_results(results, resolver, project, dev)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/resolver.py", line 590, in clean_results
    reverse_deps = project.environment.reverse_dependencies()
  File "/usr/local/lib/python3.7/dist-packages/pipenv/project.py", line 376, in environment
    self._environment = self.get_environment(allow_global=allow_global)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/project.py", line 366, in get_environment
    environment.extend_dists(pipenv_dist)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 127, in extend_dists
    extras = self.resolve_dist(dist, self.base_working_set)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 122, in resolve_dist
    deps |= cls.resolve_dist(dist, working_set)
  File "/usr/local/lib/python3.7/dist-packages/pipenv/environment.py", line 121, in resolve_dist
    dist = working_set.find(req)
  File "/home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages/pkg_resources/__init__.py", line 642, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (importlib-metadata 3.1.0 (/home/kevin/.virtualenvs/python-guide-UQdmv-Su/lib/python3.7/site-packages), Requirement.parse('importlib-metadata<2,>=0.12; python_version < "3.8"'))

Steps to replicate

command

pipenv install importlib-metadata --verbose

Pipfile

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

[dev-packages]

[packages]
importlib-metadata = "*"

[requires]
python_version = "3.7"

$ pipenv --support

Pipenv version: '2020.11.15'

Pipenv location: '/usr/local/lib/python3.7/dist-packages/pipenv'

Python location: '/usr/bin/python3'

Python installations found:

  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3
  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3.7
  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3.7m
  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3
  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3.7
  • 3.7.3: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin/python3.7m
  • 3.7.3: /usr/local/bin/python3.7m
  • 3.7.3: /usr/local/bin/python3.7
  • 3.7.3: /usr/bin/python3.7m
  • 3.7.3: /usr/bin/python3
  • 3.7.3: /usr/bin/python3.7
  • 3.7.3: /bin/python3.7m
  • 3.7.3: /bin/python3
  • 3.7.3: /bin/python3.7
  • 3.6.8: /usr/local/bin/python3.6m
  • 3.6.8: /usr/local/bin/python3.6
  • 3.6.8: /usr/bin/python3.6
  • 3.6.8: /bin/python3.6
  • 3.5.3: /usr/bin/python3.5
  • 3.5.3: /usr/bin/python3.5m
  • 3.5.3: /bin/python3.5
  • 3.5.3: /bin/python3.5m
  • 2.7.16: /usr/bin/python2
  • 2.7.16: /usr/bin/python2.7
  • 2.7.16: /bin/python2
  • 2.7.16: /bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.3',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.4.70-amd64-desktop',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Wed Oct 14 15:24:23 CST 2020',
 'python_full_version': '3.7.3',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

  • USER
  • LANGUAGE
  • WORKON_HOME
  • XDG_SEAT
  • SBT_HOME
  • POSTGRESQL_HOME
  • XDG_SESSION_TYPE
  • XDG_CACHE_HOME
  • LD_LIBRARY_PATH
  • HOME
  • VIRTUALENVWRAPPER_PYTHON
  • QT4_IM_MODULE
  • DESKTOP_SESSION
  • GIO_LAUNCHED_DESKTOP_FILE
  • XDG_SEAT_PATH
  • GRADLE_HOME
  • SCALA_HOME
  • CATALINA_HOME
  • QT_LINUX_ACCESSIBILITY_ALWAYS_ON
  • QT_DBL_CLICK_DIST
  • HADOOP_COMMON_LIB_NATIVE_DIR
  • DBUS_SESSION_BUS_ADDRESS
  • GIO_LAUNCHED_DESKTOP_FILE_PID
  • LOGNAME
  • GTK_IM_MODULE
  • XDG_SESSION_CLASS
  • XDG_SESSION_ID
  • GNOME_DESKTOP_SESSION_ID
  • PATH
  • XDG_SESSION_PATH
  • XDG_RUNTIME_DIR
  • DISPLAY
  • CMAKE_HOME
  • LANG
  • XDG_CURRENT_DESKTOP
  • XDG_SESSION_DESKTOP
  • XAUTHORITY
  • XDG_DATA_HOME
  • XDG_CONFIG_HOME
  • XMODIFIERS
  • XDG_GREETER_DATA_DIR
  • SSH_AUTH_SOCK
  • SHELL
  • NODE_PATH
  • GDMSESSION
  • QT_ACCESSIBILITY
  • QT_LOGGING_RULES
  • CLASSPATH
  • GPG_AGENT_INFO
  • XDG_VTNR
  • QT_IM_MODULE
  • PWD
  • JAVA_HOME
  • GRADLE_USER_HOME
  • XDG_DATA_DIRS
  • CLUTTER_IM_MODULE
  • M2_HOME
  • HADOOP_HOME
  • CHROME_DESKTOP
  • ORIGINAL_XDG_CURRENT_DESKTOP
  • VIRTUALENVWRAPPER_WORKON_CD
  • XCURSOR_SIZE
  • SHLVL
  • OLDPWD
  • LESS
  • D_DISABLE_RT_SCREEN_SCALE
  • ZSH
  • LSCOLORS
  • PAGER
  • COLORTERM
  • WINDOWID
  • _
  • COLORFGBG
  • TERM
  • QT_SCALE_FACTOR_ROUNDING_POLICY
  • VIRTUALENVWRAPPER_PROJECT_FILENAME
  • VIRTUALENVWRAPPER_HOOK_DIR
  • VIRTUALENVWRAPPER_SCRIPT
  • APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL
  • NO_AT_BRIDGE
  • TERM_PROGRAM
  • TERM_PROGRAM_VERSION
  • VSCODE_GIT_IPC_HANDLE
  • GIT_ASKPASS
  • VSCODE_GIT_ASKPASS_NODE
  • VSCODE_GIT_ASKPASS_MAIN
  • LS_COLORS
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH
  • PIPENV_ACTIVE
  • VIRTUAL_ENV
  • PS1
  • PIP_SHIMS_BASE_MODULE
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

  • PIPENV_ACTIVE: 1

Debug–specific environment variables:

  • PATH: /home/kevin/.virtualenvs/python-guide-UQdmv-Su/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/snap/bin:/opt/softwares/jdk1.8.0_141/bin:/opt/softwares/maven-3.6.1/bin:/opt/softwares/gradle-5.4.1/bin:/opt/softwares/sbt/bin:/opt/softwares/scala/bin:/opt/softwares/node-v12.3.1/bin:/data/repository/nodejs/node_global/bin:/opt/softwares/tomcat-9.0.30/bin:/usr/hdp/3.1.0.0-78/hadoop/bin:/usr/hdp/3.1.0.0-78/hadoop/sbin:/usr/local/pgsql/bin/:/opt/softwares/cmake/bin
  • SHELL: /usr/bin/zsh
  • LANG: zh_CN.UTF-8
  • PWD: /home/kevin/workspaces/develop/doc/python-guide
  • VIRTUAL_ENV: /home/kevin/.virtualenvs/python-guide-UQdmv-Su

Contents of Pipfile ('/home/kevin/workspaces/develop/doc/python-guide/Pipfile'):

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

[dev-packages]

[packages]
importlib-metadata = "*"

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/home/kevin/workspaces/develop/doc/python-guide/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "7e7ef69da7248742e869378f8421880cf8f0017f96d94d086813baa518a65489"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {},
    "develop": {}
}

I'm sorry to interrupt your normal work. I would appreciate it if you could help me.

@J-M0
Copy link

J-M0 commented Jan 19, 2021

I'm having this issue too and can confirm it happens with only importlib-metadata in the Pipfile.

pipenv install -v importlib-metadata
Using python: 3.6
Path to python: /usr/bin/python3.6m
Creating a virtualenv for this project...
Pipfile: /home/kususer/Documents/pl/Pipfile
Using /usr/bin/python3.6m (3.6.8) to create virtualenv...
created virtual environment CPython3.6.8.final.0-64 in 197ms
  creator CPython3Posix(dest=/home/kususer/.local/share/virtualenvs/pl-E9dLybHL, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/kususer/.local/share/virtualenv)
    added seed packages: pip==20.3.3, setuptools==51.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

✔ Successfully created virtual environment!
Virtualenv location: /home/kususer/.local/share/virtualenvs/pl-E9dLybHL
Installing importlib-metadata...
Installing package: importlib-metadata
Writing supplied requirement line to temporary file: 'importlib-metadata'
Installing 'importlib-metadata'
$ ['/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/bin/pip', 'install', '--verbose', '--upgrade', '--exists-action=i', '-r', '/tmp/pipenv-bmtsiouc-requirements/pipenv-wft51l29-requirement.txt', '-i', 'https://pypi.org/simple']
Using source directory: '/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/src'
Adding importlib-metadata to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (ca72e7) out of date, updating to (640804)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...

FAIL
                          ROUND 1                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.4.0 (constraint was <any>)

Finding secondary dependencies:
  importlib-metadata==3.4.0 requires typing-extensions>=3.6.4; python_version < "3.8", zipp>=0.5

New dependencies found in this round:
  adding ['typing-extensions', '>=3.6.4', '[]']
  adding ['zipp', '>=0.5', '[]']
Removed dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))
  typing-extensions>=3.6.4 (from importlib-metadata==3.4.0->-r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))
  zipp>=0.5 (from importlib-metadata==3.4.0->-r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.4.0 (constraint was <any>)
  found candidate typing-extensions==3.7.4.3 (constraint was >=3.6.4)
  found candidate zipp==3.4.0 (constraint was >=0.5)

Finding secondary dependencies:
  zipp==3.4.0               requires -
  importlib-metadata==3.4.0 requires typing-extensions>=3.6.4; python_version < "3.8", zipp>=0.5
  typing-extensions==3.7.4.3 requires -
------------------------------------------------------------
Result of round 2: stable, done

Generating hashes:
  zipp
  importlib-metadata
  typing-extensions
Traceback (most recent call last):
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 764, in <module>
    main()
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 760, in main
    dev=parsed.dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 741, in _main
    resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 714, in resolve_packages
    results = clean_results(results, resolver, project, dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 590, in clean_results
    reverse_deps = project.environment.reverse_dependencies()
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/project.py", line 376, in environment
    self._environment = self.get_environment(allow_global=allow_global)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/project.py", line 366, in get_environment
    environment.extend_dists(pipenv_dist)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 127, in extend_dists
    extras = self.resolve_dist(dist, self.base_working_set)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 122, in resolve_dist
    deps |= cls.resolve_dist(dist, working_set)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 121, in resolve_dist
    dist = working_set.find(req)
  File "/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/lib/python3.6/site-packages/pkg_resources/__init__.py", line 627, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (importlib-metadata 3.4.0 (/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/lib/python3.6/site-packages), Requirement.parse('importlib-metadata<3,>=0.12; python_version < "3.8"'))
ROUND 1                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.4.0 (constraint was <any>)

Finding secondary dependencies:
  importlib-metadata==3.4.0 requires typing-extensions>=3.6.4; python_version < "3.8", zipp>=0.5

New dependencies found in this round:
  adding ['typing-extensions', '>=3.6.4', '[]']
  adding ['zipp', '>=0.5', '[]']
Removed dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2                           
Current constraints:
  importlib-metadata (from -r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))
  typing-extensions>=3.6.4 (from importlib-metadata==3.4.0->-r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))
  zipp>=0.5 (from importlib-metadata==3.4.0->-r /tmp/pipenvy9j0bwonrequirements/pipenv-zf3gehs3-constraints.txt (line 2))

Finding the best candidates:
  found candidate importlib-metadata==3.4.0 (constraint was <any>)
  found candidate typing-extensions==3.7.4.3 (constraint was >=3.6.4)
  found candidate zipp==3.4.0 (constraint was >=0.5)

Finding secondary dependencies:
  zipp==3.4.0               requires -
  importlib-metadata==3.4.0 requires typing-extensions>=3.6.4; python_version < "3.8", zipp>=0.5
  typing-extensions==3.7.4.3 requires -
------------------------------------------------------------
Result of round 2: stable, done

Generating hashes:
  zipp
  importlib-metadata
  typing-extensions
Traceback (most recent call last):
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 764, in <module>
    main()
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 760, in main
    dev=parsed.dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 741, in _main
    resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 714, in resolve_packages
    results = clean_results(results, resolver, project, dev)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/resolver.py", line 590, in clean_results
    reverse_deps = project.environment.reverse_dependencies()
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/project.py", line 376, in environment
    self._environment = self.get_environment(allow_global=allow_global)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/project.py", line 366, in get_environment
    environment.extend_dists(pipenv_dist)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 127, in extend_dists
    extras = self.resolve_dist(dist, self.base_working_set)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 122, in resolve_dist
    deps |= cls.resolve_dist(dist, working_set)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/environment.py", line 121, in resolve_dist
    dist = working_set.find(req)
  File "/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/lib/python3.6/site-packages/pkg_resources/__init__.py", line 627, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (importlib-metadata 3.4.0 (/home/kususer/.local/share/virtualenvs/pl-E9dLybHL/lib/python3.6/site-packages), Requirement.parse('importlib-metadata<3,>=0.12; python_version < "3.8"'))
Traceback (most recent call last):
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/utils.py", line 1131, in create_spinner
    yield sp
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/utils.py", line 1338, in venv_resolve_deps
    c = resolve(cmd, sp)
  File "/home/kususer/.local/pipx/venvs/pipenv/lib64/python3.6/site-packages/pipenv/utils.py", line 1176, in resolve
    sys.exit(c.return_code)
SystemExit: 1

frostming added a commit that referenced this issue Jan 20, 2021
Fix #4549: Ignore incompatibilities when resolve dist
wip-sync referenced this issue in NetBSD/pkgsrc-wip Jan 21, 2022
2022.1.8 (2022-01-08)
=====================

Bug Fixes
---------

- Remove the extra parentheses around the venv prompt.  `#4877 <https://github.com/pypa/pipenv/issues/4877>`_
- Fix a bug of installation fails when extra index url is given.  `#4881 <https://github.com/pypa/pipenv/issues/4881>`_
- Fix regression where lockfiles would only include the hashes for releases for the platform generating the lockfile  `#4885 <https://github.com/pypa/pipenv/issues/4885>`_
- Fix the index parsing to reject illegal requirements.txt.  `#4899 <https://github.com/pypa/pipenv/issues/4899>`_

2021.11.23 (2021-11-23)
=======================

Bug Fixes
---------

- Update ``charset-normalizer`` from ``2.0.3`` to ``2.0.7``, this fixes an import error on Python 3.6.  `#4865 <https://github.com/pypa/pipenv/issues/4865>`_
- Fix a bug of deleting a virtualenv that is not managed by Pipenv.  `#4867 <https://github.com/pypa/pipenv/issues/4867>`_
- Fix a bug that source is not added to ``Pipfile`` when index url is given with ``pipenv install``.  `#4873 <https://github.com/pypa/pipenv/issues/4873>`_

2021.11.15 (2021-11-15)
=======================

Bug Fixes
---------

- Return an empty dict when ``PIPENV_DONT_LOAD_ENV`` is set.  `#4851 <https://github.com/pypa/pipenv/issues/4851>`_
- Don't use ``sys.executable`` when inside an activated venv.  `#4852 <https://github.com/pypa/pipenv/issues/4852>`_

Vendored Libraries
------------------

- Drop the vendored ``jinja2`` dependency as it is not needed any more.  `#4858 <https://github.com/pypa/pipenv/issues/4858>`_
- Update ``click`` from ``8.0.1`` to ``8.0.3``, to fix a problem with bash completion.  `#4860 <https://github.com/pypa/pipenv/issues/4860>`_
- Drop unused vendor ``chardet``.  `#4862 <https://github.com/pypa/pipenv/issues/4862>`_

Improved Documentation
----------------------

- Fix the documentation to reflect the fact that special characters must be percent-encoded in the URL.  `#4856 <https://github.com/pypa/pipenv/issues/4856>`_

2021.11.9 (2021-11-09)
======================

Features & Improvements
-----------------------

- Replace ``click-completion`` with ``click``'s own completion implementation.  `#4786 <https://github.com/pypa/pipenv/issues/4786>`_

Bug Fixes
---------

- Fix a bug that ``pipenv run`` doesn't set environment variables correctly.  `#4831 <https://github.com/pypa/pipenv/issues/4831>`_
- Fix a bug that certifi can't be loaded within ``notpip``'s vendor library. This makes several objects of ``pip`` fail to be imported.  `#4833 <https://github.com/pypa/pipenv/issues/4833>`_
- Fix a bug that ``3.10.0`` can be found be python finder.  `#4837 <https://github.com/pypa/pipenv/issues/4837>`_

Vendored Libraries
------------------

- Update ``pythonfinder`` from ``1.2.8`` to ``1.2.9``.  `#4837 <https://github.com/pypa/pipenv/issues/4837>`_

2021.11.5.post0 (2021-11-05)
============================

Bug Fixes
---------

- Fix a regression that ``pipenv shell`` fails to start a subshell.  `#4828 <https://github.com/pypa/pipenv/issues/4828>`_
- Fix a regression that ``pip_shims`` object isn't imported correctly.  `#4829 <https://github.com/pypa/pipenv/issues/4829>`_

2021.11.5 (2021-11-05)
======================

Features & Improvements
-----------------------

- Avoid sharing states but create project objects on demand. So that most integration test cases are able to switch to a in-process execution method.  `#4757 <https://github.com/pypa/pipenv/issues/4757>`_
- Shell-quote ``pip`` commands when logging.  `#4760 <https://github.com/pypa/pipenv/issues/4760>`_

Bug Fixes
---------

- Ignore empty .venv in rood dir and create project name base virtual environment  `#4790 <https://github.com/pypa/pipenv/issues/4790>`_

Vendored Libraries
------------------

- Update vendored dependencies
  - ``attrs`` from ``20.3.0`` to ``21.2.0``
  - ``cerberus`` from ``1.3.2`` to ``1.3.4``
  - ``certifi`` from ``2020.11.8`` to ``2021.5.30``
  - ``chardet`` from ``3.0.4`` to ``4.0.0``
  - ``click`` from ``7.1.2`` to ``8.0.1``
  - ``distlib`` from ``0.3.1`` to ``0.3.2``
  - ``idna`` from ``2.10`` to ``3.2``
  - ``importlib-metadata`` from ``2.0.0`` to ``4.6.1``
  - ``importlib-resources`` from ``3.3.0`` to ``5.2.0``
  - ``jinja2`` from ``2.11.2`` to ``3.0.1``
  - ``markupsafe`` from ``1.1.1`` to ``2.0.1``
  - ``more-itertools`` from ``5.0.0`` to ``8.8.0``
  - ``packaging`` from ``20.8`` to ``21.0``
  - ``pep517`` from ``0.9.1`` to ``0.11.0``
  - ``pipdeptree`` from ``1.0.0`` to ``2.0.0``
  - ``ptyprocess`` from ``0.6.0`` to ``0.7.0``
  - ``python-dateutil`` from ``2.8.1`` to ``2.8.2``
  - ``python-dotenv`` from ``0.15.0`` to ``0.19.0``
  - ``pythonfinder`` from ``1.2.5`` to ``1.2.8``
  - ``requests`` from ``2.25.0`` to ``2.26.0``
  - ``shellingham`` from ``1.3.2`` to ``1.4.0``
  - ``six`` from ``1.15.0`` to ``1.16.0``
  - ``tomlkit`` from ``0.7.0`` to ``0.7.2``
  - ``urllib3`` from ``1.26.1`` to ``1.26.6``
  - ``zipp`` from ``1.2.0`` to ``3.5.0``

  Add new vendored dependencies
  - ``charset-normalizer 2.0.3``
  - ``termcolor 1.1.0``
  - ``tomli 1.1.0``
  - ``wheel 0.36.2``  `#4747 <https://github.com/pypa/pipenv/issues/4747>`_
- Drop the dependencies for Python 2.7 compatibility purpose.  `#4751 <https://github.com/pypa/pipenv/issues/4751>`_
- Switch the dependency resolver from ``pip-tools`` to `pip`.

  Update vendor libraries:
  - Update ``requirementslib`` from ``1.5.16`` to ``1.6.1``
  - Update ``pip-shims`` from ``0.5.6`` to ``0.6.0``
  - New vendor ``platformdirs 2.4.0``  `#4759 <https://github.com/pypa/pipenv/issues/4759>`_

Improved Documentation
----------------------

- remove prefixes on install commands for easy copy/pasting  `#4792 <https://github.com/pypa/pipenv/issues/4792>`_
- Officially drop support for Python 2.7 and Python 3.5.  `#4261 <https://github.com/pypa/pipenv/issues/4261>`_

2021.5.29 (2021-05-29)
======================

Bug Fixes
---------

- Fix a bug where passing --skip-lock when PIPFILE has no [SOURCE] section throws the error: "tomlkit.exceptions.NonExistentKey: 'Key "source" does not exist.'"  `#4141 <https://github.com/pypa/pipenv/issues/4141>`_
- Fix bug where environment wouldn't activate in paths containing & and $ symbols  `#4538 <https://github.com/pypa/pipenv/issues/4538>`_
- Fix a bug that ``importlib-metadata`` from the project's dependencies conflicts with that from ``pipenv``'s.  `#4549 <https://github.com/pypa/pipenv/issues/4549>`_
- Fix a bug where ``pep508checker.py`` did not expect double-digit Python minor versions (e.g. "3.10").  `#4602 <https://github.com/pypa/pipenv/issues/4602>`_
- Fix bug where environment wouldn't activate in paths containing () and [] symbols  `#4615 <https://github.com/pypa/pipenv/issues/4615>`_
- Fix bug preventing use of pipenv lock --pre  `#4642 <https://github.com/pypa/pipenv/issues/4642>`_

Vendored Libraries
------------------

- Update ``packaging`` from ``20.4`` to ``20.8``.  `#4591 <https://github.com/pypa/pipenv/issues/4591>`_

2020.11.15 (2020-11-15)
=======================

Features & Improvements
-----------------------

- Support expanding environment variables in requirement URLs.  `#3516 <https://github.com/pypa/pipenv/issues/3516>`_
- Show warning message when a dependency is skipped in locking due to the mismatch of its markers.  `#4346 <https://github.com/pypa/pipenv/issues/4346>`_

Bug Fixes
---------

- Fix a bug that executable scripts with leading backslash can't be executed via ``pipenv run``.  `#4368 <https://github.com/pypa/pipenv/issues/4368>`_
- Fix a bug that VCS dependencies always satisfy even if the ref has changed.  `#4387 <https://github.com/pypa/pipenv/issues/4387>`_
- Restrict the acceptable hash type to SHA256 only.  `#4517 <https://github.com/pypa/pipenv/issues/4517>`_
- Fix the output of ``pipenv scripts`` under Windows platform.  `#4523 <https://github.com/pypa/pipenv/issues/4523>`_
- Fix a bug that the resolver takes wrong section to validate constraints.  `#4527 <https://github.com/pypa/pipenv/issues/4527>`_

Vendored Libraries
------------------

- Update vendored dependencies:
    - ``colorama`` from ``0.4.3`` to ``0.4.4``
    - ``python-dotenv`` from ``0.10.3`` to ``0.15.0``
    - ``first`` from ``2.0.1`` to ``2.0.2``
    - ``iso8601`` from ``0.1.12`` to ``0.1.13``
    - ``parse`` from ``1.15.0`` to ``1.18.0``
    - ``pipdeptree`` from ``0.13.2`` to ``1.0.0``
    - ``requests`` from ``2.23.0`` to ``2.25.0``
    - ``idna`` from ``2.9`` to ``2.10``
    - ``urllib3`` from ``1.25.9`` to ``1.26.1``
    - ``certifi`` from ``2020.4.5.1`` to ``2020.11.8``
    - ``requirementslib`` from ``1.5.15`` to ``1.5.16``
    - ``attrs`` from ``19.3.0`` to ``20.3.0``
    - ``distlib`` from ``0.3.0`` to ``0.3.1``
    - ``packaging`` from ``20.3`` to ``20.4``
    - ``six`` from ``1.14.0`` to ``1.15.0``
    - ``semver`` from ``2.9.0`` to ``2.13.0``
    - ``toml`` from ``0.10.1`` to ``0.10.2``
    - ``cached-property`` from ``1.5.1`` to ``1.5.2``
    - ``yaspin`` from ``0.14.3`` to ``1.2.0``
    - ``resolvelib`` from ``0.3.0`` to ``0.5.2``
    - ``pep517`` from ``0.8.2`` to ``0.9.1``
    - ``zipp`` from ``0.6.0`` to ``1.2.0``
    - ``importlib-metadata`` from ``1.6.0`` to ``2.0.0``
    - ``importlib-resources`` from ``1.5.0`` to ``3.3.0``  `#4533 <https://github.com/pypa/pipenv/issues/4533>`_

Improved Documentation
----------------------

- Fix suggested pyenv setup to avoid using shimmed interpreter  `#4534 <https://github.com/pypa/pipenv/issues/4534>`_

2020.11.4 (2020-11-04)
======================

Features & Improvements
-----------------------

- Add a new command ``pipenv scripts`` to display shortcuts from Pipfile.  `#3686 <https://github.com/pypa/pipenv/issues/3686>`_
- Retrieve package file hash from URL to accelerate the locking process.  `#3827 <https://github.com/pypa/pipenv/issues/3827>`_
- Add the missing ``--system`` option to ``pipenv sync``.  `#4441 <https://github.com/pypa/pipenv/issues/4441>`_
- Add a new option pair ``--header/--no-header`` to ``pipenv lock`` command,
  which adds a header to the generated requirements.txt  `#4443 <https://github.com/pypa/pipenv/issues/4443>`_

Bug Fixes
---------

- Fix a bug that percent encoded characters will be unquoted incorrectly in the file URL.  `#4089 <https://github.com/pypa/pipenv/issues/4089>`_
- Fix a bug where setting PIPENV_PYTHON to file path breaks environment name  `#4225 <https://github.com/pypa/pipenv/issues/4225>`_
- Fix a bug that paths are not normalized before comparison.  `#4330 <https://github.com/pypa/pipenv/issues/4330>`_
- Handle Python major and minor versions correctly in Pipfile creation.  `#4379 <https://github.com/pypa/pipenv/issues/4379>`_
- Fix a bug that non-wheel file requirements can be resolved successfully.  `#4386 <https://github.com/pypa/pipenv/issues/4386>`_
- Fix a bug that ``pexept.exceptions.TIMEOUT`` is not caught correctly because of the wrong import path.  `#4424 <https://github.com/pypa/pipenv/issues/4424>`_
- Fix a bug that compound TOML table is not parsed correctly.  `#4433 <https://github.com/pypa/pipenv/issues/4433>`_
- Fix a bug that invalid Python paths from Windows registry break ``pipenv install``.  `#4436 <https://github.com/pypa/pipenv/issues/4436>`_
- Fix a bug that function calls in ``setup.py`` can't be parsed rightly.  `#4446 <https://github.com/pypa/pipenv/issues/4446>`_
- Fix a bug that dist-info inside ``venv`` directory will be mistaken as the editable package's metadata.  `#4480 <https://github.com/pypa/pipenv/issues/4480>`_
- Make the order of hashes in resolution result stable.  `#4513 <https://github.com/pypa/pipenv/issues/4513>`_

Vendored Libraries
------------------

- Update ``tomlkit`` from ``0.5.11`` to ``0.7.0``.  `#4433 <https://github.com/pypa/pipenv/issues/4433>`_
- Update ``requirementslib`` from ``1.5.13`` to ``1.5.14``.  `#4480 <https://github.com/pypa/pipenv/issues/4480>`_

Improved Documentation
----------------------

- Discourage homebrew installation in installation guides.  `#4013 <https://github.com/pypa/pipenv/issues/4013>`_
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

Successfully merging a pull request may close this issue.

2 participants