Nothing Provides needed by Scrot

When you try to install scrot or pyautogui you may get the following error
$ sudo dnf install scrot

Last metadata expiration check: 0:00:42 ago on Sun 01 Mar 2020 04:54:48 PM IST.
 Problem: conflicting requests
  - nothing provides needed by scrot-0.8-21.fc31.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

This is because fedora no more provides support for scrot, especially Fedora 31. There are discussions on to adding it fedora again. But as a solution to this problem you can install a third party package, that the best you can do.

There are two simple ways to solve this problem. (You should try the second solution first)

If the first doesn't work go with the second solution.


Note: This is a third party package not officially from fedora

Go to this link and download the binary package listed here.

First to install the dependencies run
dnf install imlib2
dnf install glibc
rpm -Uvh path-to-rpm-file-you-downloaded
Now you can install scrot with following
dnf install scrot

Install Xlib to install scrot

sudo dnf install python3-xlib
Now execute the command to install scrot
dnf install scrot