Comments (13)
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/
As a consequence of this, all Linux distributions are gradually transitioning to dropping support for Python2, having Python3 be set default on install. Already Python2 is harder to find/install from some distribution repositories including Ubuntu & Mint which are seen as the more 'beginner friendly' and hence have a generally larger user base. The next LTS releases of all major distros will probably be Python2 depreciated and default to Python3 only. Whilst general transition from Python2 to Python3 has taken a while due to inertia by a large historical codebase, impetus to upgrade has now been accelerated this year by Python2 EOL status and the actions of the distribution maintainers.
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.
from fah-control.
@gloomytrousers while Python 3 is not ready, is it possible to release a quick fix for Fedora .rpm
s to explicitly depend on Python 2?
from fah-control.
Please try the Linux beta at https://foldingathome.org/beta/ and report back here if you are still having this difficulty.
Issue Support
from fah-control.
Tried the beta (fahclient-7.6.6-1.x86_64), same result.
from fah-control.
Tried the beta (fahclient-7.6.6-1.x86_64), same result.
Thanks, @gloomytrousers
Bug
from fah-control.
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?
from fah-control.
from fah-control.
@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.
from fah-control.
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 #!/usr/bin/env python2
is the way to go. This change should go into the code right now and stay there until the code is converted to Python 3. Any FAH developer reading this? It would be a very simple fix to include.
from fah-control.
Any FAH developer reading this? It would be a very simple fix to include.
from fah-control.
Interesting that FAHControl
in repository contains the right #!/usr/bin/env python2
shebang.
https://github.com/FoldingAtHome/fah-control/blob/master/FAHControl#L1
But inside .rpm it is already different.
$ mkdir files
$ rpm2cpio fahcontrol-7.6.9-1.noarch.rpm | cpio -D files/ -idmv
$ head files/usr/bin/FAHControl -n 1
#!/usr/bin/python
from fah-control.
@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.
https://github.com/cdberkstresser/fah-control/releases
from fah-control.
@stealth-swift @FoldingAtHome folks don't care and fail to increase their capacity.
from fah-control.
Related Issues (20)
- Monitoring API change or issue ? HOT 7
- an option associated with the FAHViewer button that allows the user to select an active WU/slot to provide real-time images.
- Hint on restart after changing network seetings
- Option to cancel workunit HOT 3
- FAHControl for Android HOT 2
- Selected slot log filter reset upon client switch HOT 2
- Encoding issue when displaying error messages (F@h 7.6.x) HOT 4
- Ubuntu 20.04 python2 problem HOT 4
- Which University? HOT 2
- Create a branch for FahControl python 2 and master gets python 3 HOT 2
- Finish button does not work in web control HOT 1
- fix PEP8 errors, move to python3 HOT 3
- Add option to schedule pause/stop after currently executing slots/packages have finished HOT 1
- FAHControl doesn't open on macOS 11 HOT 1
- Tagged Releases
- Project link problem with new stats site HOT 1
- FAHControl does not run on Debian Bullseye because it relies on Python 2. HOT 1
- how do i install this on archlinux? HOT 3
- Restore slots HOT 2
- We need Chinese
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fah-control.