Pypolicyd-spf and opendkim packages are broken on AlmaLinux 9

Hello,

Please note that Epel-release is already installed.

sudo dnf install pypolicyd-spf

Problem: conflicting requests - nothing provides python3-pyspf needed by pypolicyd-spf-2.0.2-15.el9.noarch

(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

There is also nothing python3-pyspf or python2-pyspf or python-pyspf or pyspf.

If dependency is not there why the package is still on repos?

How can I install this package?

Edit:
The same error for a different package:

sudo dnf install opendkim

Error:
Problem: conflicting requests

  • nothing provides libmilter.so.1.0()(64bit) needed by opendkim-2.11.0-0.28.el9.x86_64
  • nothing provides libmemcached.so.11()(64bit) needed by opendkim-2.11.0-0.28.el9.x86_64

(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

EDIT (MAYBE A BETTER SOLUTION THAN USING PYTHON PIP):

Instead of using python-pip we can build the package from source easily with Mock from Fedora 36 or CentOS 8. I don’t know it is harmful but I’ve done it and it works:

Get the pacakge from CentOS or Fedora with wget:

wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/SRPMS/Packages/p/python-pyspf-2.0.14-8.el8.src.rpm 

or

wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/36/Everything/source/tree/Packages/p/python-pyspf-2.0.14-11.fc36.src.rpm 
sudo dnf install -y epel-release
sudo dnf install -y mock rpm-build
sudo usermod -a -G mock username
rpm -i ./fullpackagename.src.rpm

If it doesn’t work for regular user, switch to root and do with it.
The files will be under /root directory

cd SPECS/

Change the specs file if needed.

rpmbuild -bs packagename.spec
mock -r almalinux-9-x86_64 --rebuild fullpackagename.src.rpm
dnf localinstall /var/lib/mock/almalinux-9-x86_64/result/python3-pyspf-2.0.14-8.el9.noarch.rpm

Now the dependency is ready. We can install pypolicyd-spf from repos:

dnf install pypolicyd-spf

Enjoy.

Sources:
https://pkgs.org/search/?q=python3-pyspf


Found the solution on linode forums:

For pypolicyd-spf I installed pip3, which I then used to install pypolicyd-spf.

dnf install python3-pip
pip3 install pypolicyd-spf
Collecting pypolicyd-spf
  Downloading pypolicyd-spf-2.0.2.tar.gz (38 kB)
Using legacy 'setup.py install' for pypolicyd-spf, since package 'wheel' is not installed.
Installing collected packages: pypolicyd-spf
    Running setup.py install for pypolicyd-spf ... done
Successfully installed pypolicyd-spf-2.0.2

With opendkim the issue is with the missing milter packages. Another user brought this up in the AlmaLinux forums, and was able to find a work around by enabling the CodeReady Linux Builder (CRB) repository.

After running the suggested command to enable CRB I was able to install opendkim:

dnf config-manager --set-enabled crb

dnf install opendkim

1 Like

Ive downloaded the file form this https://rpmfind.net/linux/RPM/centos-stream/9/crb/x86_64/sendmail-milter-8.16.1-11.el9.x86_64.html and run rpm - installed success but Ive got still the problem with install opendkim - nothing provides libmemcached.so.11 - there is no such a file in rpm
I tried to install from the source
https://launchpadlibrarian.net/165454254/libmemcached-1.0.18.tar.gz
but there is a failure
Could somebody help ??

sorry, it is solution:
dnf config-manager --set-enabled crb
dnf install opendkim