Bug 1213305 - setools fails to run due to missing module 'pkg_resources'
Summary: setools fails to run due to missing module 'pkg_resources'
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Security (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Security Team bot
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-14 04:55 UTC by Shung-Hsi Yu
Modified: 2023-12-14 12:30 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shung-Hsi Yu 2023-07-14 04:55:35 UTC
When trying to run seinfo on a bare-bone system, it fails to run because the pkg_resources is not found.

> da9ae20b9c03:/ # seinfo
> Traceback (most recent call last):
>   File "/usr/bin/seinfo", line 8, in <module>
>     import setools
>   File "/usr/lib64/python3.11/site-packages/setools/__init__.py", line 80, in <module>
>     from .infoflow import InfoFlowAnalysis
>   File "/usr/lib64/python3.11/site-packages/setools/infoflow.py", line 17, in <module>
>     from .permmap import PermissionMap
>   File "/usr/lib64/python3.11/site-packages/setools/permmap.py", line 11, in <module>
>     import pkg_resources
> ModuleNotFoundError: No module named 'pkg_resources'

After installing python3-setuptools to issue goes away.
Comment 1 Shung-Hsi Yu 2023-07-14 05:01:39 UTC
SR submitted https://build.opensuse.org/request/show/1098586
Comment 2 Shung-Hsi Yu 2023-07-25 06:17:15 UTC
https://build.opensuse.org/request/show/1098586 has been accepted