Giter Site home page Giter Site logo

Comments (13)

stealth-swift avatar stealth-swift commented on August 24, 2024 3

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.

abitrolly avatar abitrolly commented on August 24, 2024 1

@gloomytrousers while Python 3 is not ready, is it possible to release a quick fix for Fedora .rpms to explicitly depend on Python 2?

from fah-control.

shorttack avatar shorttack commented on August 24, 2024

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.

gloomytrousers avatar gloomytrousers commented on August 24, 2024

Tried the beta (fahclient-7.6.6-1.x86_64), same result.

from fah-control.

shorttack avatar shorttack commented on August 24, 2024

Tried the beta (fahclient-7.6.6-1.x86_64), same result.
Thanks, @gloomytrousers
Bug

from fah-control.

deragon avatar deragon commented on August 24, 2024

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.

jwesterd-redhat avatar jwesterd-redhat commented on August 24, 2024

from fah-control.

gloomytrousers avatar gloomytrousers commented on August 24, 2024

@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.

deragon avatar deragon commented on August 24, 2024

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.

shorttack avatar shorttack commented on August 24, 2024

Any FAH developer reading this? It would be a very simple fix to include.

from fah-control.

abitrolly avatar abitrolly commented on August 24, 2024

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.

cdberkstresser avatar cdberkstresser commented on August 24, 2024

@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.

abitrolly avatar abitrolly commented on August 24, 2024

@stealth-swift @FoldingAtHome folks don't care and fail to increase their capacity.

from fah-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.