You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
@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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 doesfrom fah import FAHControl
wherefah
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 runFAHControl
will result in the error:To work around, I installed Python 2 locally (using
./configure --enable-optimizations --with-ensurepip=install
,make
andsudo make install
) and changed the first line of/usr/bin/FAHControl
to specifypython2
instead ofpython
.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.
The text was updated successfully, but these errors were encountered: