Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

FAHControl not working on Fedora 32 due to Python 3 migration #20

Open
ssb22 opened this issue May 11, 2020 · 1 comment
Open

FAHControl not working on Fedora 32 due to Python 3 migration #20

ssb22 opened this issue May 11, 2020 · 1 comment

Comments

@ssb22
Copy link

ssb22 commented May 11, 2020

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.

@ffissore
Copy link

@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 FoldingAtHome/fah-control#70

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants