Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#66533 - [molecule] The 'selinux' distribution was not found and is required by molecule

Attached to Project: Community Packages
Opened by Maxime de Roucy (akira86) - Monday, 04 May 2020, 12:20 GMT
Last edited by David Runge (dvzrv) - Monday, 04 May 2020, 17:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

```
max@mde-oxalide % molecule -h
Traceback (most recent call last):
File "/usr/bin/molecule", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3259, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3242, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3271, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'selinux' distribution was not found and is required by molecule
```

Additional info:

```
max@mde-oxalide % yay -Qi molecule
Name : molecule
Version : 3.0.4-1
Description : Aids in the development and testing of Ansible roles
Architecture : any
URL : https://github.com/ansible-community/molecule
Licenses : MIT
Groups : None
Provides : None
Depends On : ansible python-cerberus python-click python-click-completion python-click-help-colors python-colorama
python-cookiecutter python-gilt python-jinja python-paramiko python-pexpect python-pluggy python-sh
python-six python-tabulate python-tree-format python-yaml yamllint
Optional Deps : docker: for the docker driver
molecule-vagrant: for the vagrant driver
podman: for the podman driver [installed]
python-pywinrm: for Windows support
python-testinfra: for the testinfra verifier
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 1620,69 KiB
Packager : David Runge <dave@sleepmap.de>
Build Date : mer. 29 avril 2020 13:05:23
Install Date : lun. 04 mai 2020 14:08:58
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

max@mde-oxalide % pip show molecule
Name: molecule
Version: 3.0.4
Summary: Molecule aids in the development and testing of Ansible roles
Home-page: https://github.com/ansible-community/molecule
Author: Ansible by Red Hat
Author-email: info@ansible.com
License: MIT
Location: /usr/lib/python3.8/site-packages
Requires: ansible, cerberus, click, click-completion, click-help-colors, colorama, cookiecutter, python-gilt, Jinja2, paramiko, pexpect, pluggy, PyYAML, sh, tabulate, tree-format, yamllint, selinux
Required-by:
```

Steps to reproduce:

```
pacman -S molecule
molecule
```
This task depends upon

Closed by  David Runge (dvzrv)
Monday, 04 May 2020, 17:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with molecule 3.0.4-2
Comment by David Runge (dvzrv) - Monday, 04 May 2020, 13:27 GMT
@akira86: Thanks for the report!

It seems python-selinux has been made a requirement for molecule's entry_point in 3.0.3 and I didn't notice that.
I will look into this later today!
For the time being you can either install molecule 3.0.2 or locally install (for your user only) selinux using pip: `pip3 install --user selinux`

Loading...