Missing dependency package "authres"

Bug #1997945 reported by David Timber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf
Invalid
Undecided
Unassigned

Bug Description

The package "python3-authres" is required for pypolicyd-spf version 2.9.3, but not installed by package managers on Rocky 8(el8) and Fedora 36(fc36). The recent version update from 2.0.2 to 2.9.3, the rpm that's been recently rolled out, renders the executable `/usr/libexec/postfix/policyd-spf` unusable, disabling the MTA functionality entirely.

journal:

```
Nov 20 20:18:47 localhost postfix/spawn[pid]: warning: command /usr/libexec/postfix/policyd-spf exit status 1
Nov 20 20:18:47 localhost postfix/smtpd[pid]: warning: premature end-of-input on private/policyd-spf while reading input attribute name
Nov 20 20:18:48 localhost postfix/spawn[pid]: warning: command /usr/libexec/postfix/policyd-spf exit status 1
Nov 20 20:18:48 localhost postfix/smtpd[pid]: warning: premature end-of-input on private/policyd-spf while reading input attribute name
Nov 20 20:18:48 localhost postfix/smtpd[pid]: warning: problem talking to server private/policyd-spf: Connection reset by peer
```

Stderr:

```
Traceback (most recent call last):
  File "/usr/libexec/postfix/policyd-spf", line 33, in <module>
    sys.exit(load_entry_point('spf-engine==2.9.3', 'console_scripts', 'policyd-spf')())
  File "/usr/libexec/postfix/policyd-spf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/spf_engine/__init__.py", line 54, in <module>
    import authres
ModuleNotFoundError: No module named 'authres'
```

The problem can be resolved by installing the package necessary using the package manager of your choice:

```
sudo dnf install python3-authres
# or
pip3 install authres
```

However, authres must be marked as required by pypolicyd-spf on all distroes as it cannot function without it.

Revision history for this message
Scott Kitterman (kitterman) wrote :

This requirement is already documented in the package README. It's up to the packagers for those distributions to set the dependencies correctly, please file a bug in their bug trackers.

At some point I intend to re-engineer the upstream package to use a more modern build system that would be more automatic, but in the mean time, it's a distribution responsibility.

Changed in pypolicyd-spf:
status: New → Invalid
Revision history for this message
David Timber (dxdxdt) wrote :

Thank you for your "not my job" response.

Could you please at least leave this open whilst I sort this out on other distros so that other people can see it? This will be the first place for people to visit and you can always mark their report as dup of this report.

Thanks

Revision history for this message
David Timber (dxdxdt) wrote :

https://bugzilla.redhat.com/show_bug.cgi?id=2142476

It's being fixed, but god knows how long

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1997945] Re: Missing dependency package "authres"

On Saturday, November 26, 2022 2:39:10 AM EST you wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=2142476
>
> It's being fixed, but god knows how long
>
> ** Bug watch added: Red Hat Bugzilla #2142476
> https://bugzilla.redhat.com/show_bug.cgi?id=2142476

For what it's worth, development now takes place under the spf-engine product
(renamed when it grew a milter interface in addition to the policy server).
I've converted the package to use a flit based build system which includes
dependency information. It's currently in git and will be in the next release
(3.0.0).

Scott K

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.