-
Notifications
You must be signed in to change notification settings - Fork 44
FAHControl won't start on Fedora 31 (Python 3 by default) [workaround] #61
Comments
Please try the Linux beta at https://foldingathome.org/beta/ and report back here if you are still having this difficulty. |
Tried the beta (fahclient-7.6.6-1.x86_64), same result. |
|
I do not have Fedora 31, but from the description of this bug, seams that /usr/bin/python is a symlink to Python 3. That would explain the syntax error. Can you please check this out? |
Can try two things.
Change first line of FAHcontrol script
#!/usr/bin/python2
Or preferably:
#!/usr/bin/env python2
The newer versions should have the fix.
…On Fri, Apr 17, 2020, 7:32 PM Hans Deragon ***@***.***> wrote:
I do not have Fedora 31, but from the description of this bug, seams that
/usr/bin/python is a symlink to Python 3. That would explain the syntax
error. Can you please check this out?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANWV7K3R4CERE3XTHGA3FYLRNDRHNANCNFSM4LU2A5MQ>
.
|
@deragon Yes /usr/bin/python is indeed a symlink to python3. @jwesterdale-rh Yes I changed the script as indicated (see original report), which makes it work. What do you mean by "newer versions"? I've just upgraded to the latest beta (fahcontrol-7.6.10-1.noarch) and the problem still exists. |
I have the latest version of FAH and I confirmed that it is still coded for Python 2. @jwesterdale-rh, solution to replace the first line of the scripts with |
|
Interesting that $ mkdir files
$ rpm2cpio fahcontrol-7.6.9-1.noarch.rpm | cpio -D files/ -idmv
$ head files/usr/bin/FAHControl -n 1
#!/usr/bin/python |
This might fix broken `FAHControl` on Fedora (FoldingAtHome#61)
@gloomytrousers We do have rpms and debs for PR #70, which is definitely a work in progress. It is what I've used to do the beta testing for FAHClient from Ubuntu 20.04 and Fedora 31 when I needed FAHControl to see what was going on. |
@gloomytrousers while Python 3 is not ready, is it possible to release a quick fix for Fedora |
Python2 support is now End Of Life as of January 1st 2020 and should be depreciated ref: https://www.python.org/doc/sunset-python-2/ I suggest 'workaround' options be limited in scope as much as possible so as to concentrate developer focus towards bringing all FAH components to depreciate requirement of Python2 and instead upgrade to mainline for Python3. There will be a lot of variance in knowledge of the Linux user base and this issue is already causing FAH installation issues on newer distros as a consequence. Anything that hinders potential adoption of FAH or the continuation of it's use when a supporter upgrades their core OS should be mitigated against, and a current continuing requirement of Python2 has general security implications going forward. |
@stealth-swift @FoldingAtHome folks don't care and fail to increase their capacity. |
Installed fahcontrol-7.5.1-1.noarch on Fedora 31 x86_64. It won't start:
This appears to be because Fedora defaults to Python 3 and FAH needs Python 2.
Workaround: run this from a terminal:
Or edit the first line of /usr/bin/FAHControl to:
(add the
2
)This is the same as #50 which was opened and then immediately closed. See also #39, #53, #56.
The text was updated successfully, but these errors were encountered: