FAHControl not working on Fedora 32 due to Python 3 migration
Fedora 31 made python mean Python 3, and Fedora 32 removed the Python 2 packages from the distro. fahcontrol-7.6.13-1.noarch.rpm installs /usr/bin/FAHControl with #!/usr/bin/python, and it does from fah import FAHControl where fah is located in /usr/lib/python2.7/site-packages and not readable by Python 3 (remember that /usr/bin/python is Python 3 on Fedora 31 or above). This means any attempt to run FAHControl will result in the error:
Traceback (most recent call last):
File "/usr/bin/FAHControl", line 25, in <module>
from fah import FAHControl, load_fahcontrol_db
ModuleNotFoundError: No module named 'fah'
To work around, I installed Python 2 locally (using ./configure --enable-optimizations --with-ensurepip=install, make and sudo make install) and changed the first line of /usr/bin/FAHControl to specify python2 instead of python.
Until bug #2 is fixed, FAHControl is the only way to tell FAHClient to pause after the current work unit is finished (which is useful if the machine is to be shut down later), so it was necessary to do the above workaround to get this functionality on Fedora 31 and 32.
@ssb22 we are working a pull request about porting fahcontrol to python3. if you can jump in and help us test it, it would be great https://github.com/FoldingAtHome/fah-control/pull/70