[Bug 1151703] New: python3-yamllint is missing requirement on python3-setuptools
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1151703 Bug ID: 1151703 Summary: python3-yamllint is missing requirement on python3-setuptools Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: jayvdb@gmail.com Reporter: okurz@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- ## Observation yamllint tries to read out information during runtime using "pkg_resources" which is supplied by setuptools, if installed, but the package does not pull in this dependency. ## Steps to reproduce ``` $ docker run --rm -it registry.opensuse.org/opensuse/tumbleweed 5da80e2533ad:/ # zypper -n in python3-yamllint && yamllint Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata ............................................[done] Building repository 'openSUSE-Tumbleweed-Non-Oss' cache .................................................[done] Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata ................................................[done] Building repository 'openSUSE-Tumbleweed-Oss' cache .....................................................[done] Retrieving repository 'openSUSE-Tumbleweed-Update' metadata .............................................[done] Building repository 'openSUSE-Tumbleweed-Update' cache ..................................................[done] Loading repository data... Reading installed packages... Resolving package dependencies... The following 9 NEW packages are going to be installed: libexpat1 libpython3_7m1_0 libuuid1 libyaml-0-2 python-rpm-macros python3-PyYAML python3-base python3-pathspec python3-yamllint 9 new packages to install. Overall download size: 8.9 MiB. Already cached: 0 B. After the operation, additional 34.5 MiB will be used. Continue? [y/n/v/...? shows all options] (y): y Retrieving package libexpat1-2.2.7-1.2.x86_64 (1/9), 87.7 KiB (206.3 KiB unpacked) Retrieving: libexpat1-2.2.7-1.2.x86_64.rpm ..............................................................[done] Retrieving package libpython3_7m1_0-3.7.3-1.3.x86_64 (2/9), 1.1 MiB ( 3.2 MiB unpacked) Retrieving: libpython3_7m1_0-3.7.3-1.3.x86_64.rpm .......................................................[done] Retrieving package libuuid1-2.34-2.1.x86_64 (3/9), 50.3 KiB ( 30.1 KiB unpacked) Retrieving: libuuid1-2.34-2.1.x86_64.rpm ................................................................[done] Retrieving package libyaml-0-2-0.2.2-2.1.x86_64 (4/9), 53.9 KiB (126.3 KiB unpacked) Retrieving: libyaml-0-2-0.2.2-2.1.x86_64.rpm ............................................................[done] Retrieving package python-rpm-macros-20190610.2ee3233-1.2.noarch (5/9), 25.8 KiB ( 47.0 KiB unpacked) Retrieving: python-rpm-macros-20190610.2ee3233-1.2.noarch.rpm ...........................................[done] Retrieving package python3-base-3.7.3-1.3.x86_64 (6/9), 7.2 MiB ( 29.7 MiB unpacked) Retrieving: python3-base-3.7.3-1.3.x86_64.rpm ...............................................[done (4.5 MiB/s)] Retrieving package python3-pathspec-0.5.9-1.4.noarch (7/9), 47.0 KiB (188.0 KiB unpacked) Retrieving: python3-pathspec-0.5.9-1.4.noarch.rpm .......................................................[done] Retrieving package python3-PyYAML-5.1.2-1.1.x86_64 (8/9), 189.8 KiB (739.6 KiB unpacked) Retrieving: python3-PyYAML-5.1.2-1.1.x86_64.rpm .........................................................[done] Retrieving package python3-yamllint-1.17.0-1.1.noarch (9/9), 71.9 KiB (294.0 KiB unpacked) Retrieving: python3-yamllint-1.17.0-1.1.noarch.rpm ......................................................[done] Checking for file conflicts: ............................................................................[done] (1/9) Installing: libexpat1-2.2.7-1.2.x86_64 ............................................................[done] (2/9) Installing: libpython3_7m1_0-3.7.3-1.3.x86_64 .....................................................[done] (3/9) Installing: libuuid1-2.34-2.1.x86_64 ..............................................................[done] (4/9) Installing: libyaml-0-2-0.2.2-2.1.x86_64 ..........................................................[done] (5/9) Installing: python-rpm-macros-20190610.2ee3233-1.2.noarch .........................................[done] (6/9) Installing: python3-base-3.7.3-1.3.x86_64 .........................................................[done] (7/9) Installing: python3-pathspec-0.5.9-1.4.noarch .....................................................[done] (8/9) Installing: python3-PyYAML-5.1.2-1.1.x86_64 .......................................................[done] (9/9) Installing: python3-yamllint-1.17.0-1.1.noarch ....................................................[done] Traceback (most recent call last): File "/usr/bin/yamllint", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources' ``` ``` -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1151703
http://bugzilla.opensuse.org/show_bug.cgi?id=1151703#c1
Benjamin Greiner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |code@bnavigator.de
Resolution|--- |FIXED
--- Comment #1 from Benjamin Greiner
---
Fixed itself with a recent setuptools and Python 3.8 (importlib.resources
instead of pkg_resources for entry points.)
Old Leap distributions with old setuptools still need it:
https://build.opensuse.org/request/show/990020
Note that pkg_resources from setuptools is required in plain Leap 15.x for
EVERY python package having entry points.
--
You are receiving this mail because:
You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com