Clear Linux Project will remove python2 content entirely from the distro by the end of 2019

As many of you probably are aware of, python2 will no longer be fixed for any bug, no matter how severe, starting on January 1, 2020.

Because of that, the Clear Linux Project will remove python2 content entirely from the distro by the end of 2019.

We will be reducing the footprint of python2 down to just the python2 interpreter and pip by October 18th.

If you have feedback on applications you use that are provided by Clear Linux OS using python2 we’d like to hear about them and work to find a way forward so that things don’t suddenly break on you by surprise.

More info about sunsetting python2

7 Likes

Maybe change “not get new improvements” to “no longer be fixed for any bug, no matter how severe”. Since, that is really the reason we’re removing it.

2 Likes

After doing a last look through things, offlineimap is likely the most likely things people may have been using that will be going away. See my mailing list post

In case you didn’t see at the mailing list:

[koji python3] Manual intervention required for updating to 31150 or newer

Starting with 31150, koji has been packaged as a python3 application. This enables the distro to continue removing python2 components as we prepare for the sunset of python2.

This also required /usr/bin/mash to be removed. It was a python2 application that depended on the python2 APIs of koji.

As a part of this update, the following manual interventions are required in order for hosted koji/DevOps services to continue working:

  • If running the koji application, need to tell httpd to not try loading the python2 mod_wsgi module (it will load the python3 mod_wsgi module by default)

    • Edit /etc/httpd/conf.modules.d/wsgi.conf

    • Remove the line “LoadModule wsgi_module lib/python2.7/site-packages/mod_wsgi/server/mod_wsgi-py27.so”

    • systemctl restart httpd.service

  • If running the mash service

    • git clone GitHub - clearlinux/koji-setup-scripts

    • Edit parameters.sh as needed for your installation directory of mash.sh (if this was changed, otherwise can skip this step)

    • cd koji-setup

    • ./deploy-mash.sh

1 Like

https://pythonclock.org/ - under two months of python 2 remaining

1 Like

Hello; Is there a solution to using ansible and CL where ansible has a dependency on python2 ?
for example "The Python 2 bindings for rpm are needed for this module.… I’m using kubeSpray and well, it’s not :slight_smile:

Ansible would need fixing. If this is a Clear Linux component - please open a github ticket.