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

docker-compose cannot work with package python3-jsonschema #35474

Closed
LeamHall opened this issue Feb 9, 2022 · 0 comments
Closed

docker-compose cannot work with package python3-jsonschema #35474

LeamHall opened this issue Feb 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LeamHall
Copy link

LeamHall commented Feb 9, 2022

System

xuname
Void 5.15.19_1 x86_64 GenuineIntel uptodate rFF

xbps-query -p pkgver docker-compose
docker-compose-1.29.2_2

xbps-query -p pkgver python3-jsonschema
python3-jsonschema-4.2.1_1

Expected behavior

docker-compose build runs

Actual behavior

docker-compose build
Traceback (most recent call last):
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 573, in _build_master
ws.require(requires)
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 891, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 782, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 4.3.2 (/home/leam/.local/lib/python3.10/site-packages), Requirement.parse('jsonschema<4,>=2.5.1'), {'docker-compose'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/docker-compose", line 33, in
sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
File "/usr/bin/docker-compose", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/init.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 9, in
from distutils.spawn import find_executable
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 674, in _load_unlocked
File "", line 571, in module_from_spec
File "/home/leam/.local/lib/python3.10/site-packages/_distutils_hack/init.py", line 92, in create_module
return importlib.import_module('setuptools._distutils')
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/leam/.local/lib/python3.10/site-packages/setuptools/init.py", line 16, in
import setuptools.version
File "/home/leam/.local/lib/python3.10/site-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 3267, in
def _initialize_master_working_set():
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 3241, in _call_aside
f(*args, **kwargs)
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 3279, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 575, in _build_master
return cls._build_from_requirements(requires)
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 588, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/leam/.local/lib/python3.10/site-packages/pkg_resources/init.py", line 777, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jsonschema<4,>=2.5.1' distribution was not found and is required by docker-compose

Steps to reproduce the behavior

run docker-compose build

paper42 added a commit that referenced this issue Feb 10, 2022
@paper42 paper42 closed this as completed Feb 10, 2022
@paper42 paper42 added the bug Something isn't working label Feb 10, 2022
ElDifinitivo pushed a commit to ElDifinitivo/void-packages that referenced this issue Feb 14, 2022
ElDifinitivo pushed a commit to ElDifinitivo/void-packages that referenced this issue Feb 14, 2022
maciozo pushed a commit to maciozo/void-packages that referenced this issue Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants