community icon indicating copy to clipboard operation
community copied to clipboard

Remove all Python2 dependencies and transition to Python3 completely

Open randybias opened this issue 1 year ago • 11 comments
trafficstars

randybias avatar Apr 25 '24 12:04 randybias

@Andrey-mp how do we know when this is 100% complete?

randybias avatar May 09 '24 07:05 randybias

  • moved to python3 all components which are not related to cassandra
  • switched default from thrift to CQL
  • removed pycassa/thrift libraries from build process

next step is to try to switch python definition to python globally and try to build. otherwise - switch it one by one for all components. @qblivion is working on it.

Andrey-mp avatar May 09 '24 16:05 Andrey-mp

Where are we at?

randybias avatar May 23 '24 10:05 randybias

@qblivion please provide current status.

Andrey-mp avatar May 23 '24 10:05 Andrey-mp

Greetings Randy @randybias,

Currently, we have two main tasks: updating the analytics package and codebase to Python 3 and migrating the config package to Python 3. Once these tasks are completed, we will be able to drop Python 2 for the entire project.

Right now, I am working on supporting the net-snmp package in the analytics-snmp-collector and refactoring the analytics Python code. I estimate this will take about a week, after which we can finalize the deprecation of Python 2 for the entire project.

qblivion avatar May 23 '24 13:05 qblivion

Status?

randybias avatar Jun 14 '24 07:06 randybias

Hello!

I have finished working on the analytics module. It took more time than I anticipated because of the net-snmp package, but it now works correctly with Python 3. I have two parts left: the kubemanager and config packages. The kubemanager is almost done, and I expect the config package to be more challenging. I will keep you updated.

qblivion avatar Jun 14 '24 13:06 qblivion

Any ETA?

randybias avatar Jul 04 '24 13:07 randybias

I would say - a week since now to switch to python3. and then ensure that python2 is not used - one more week

Andrey-mp avatar Jul 04 '24 14:07 Andrey-mp

Updates?

randybias avatar Jul 11 '24 09:07 randybias

Ready to merge. All packages should now work on Python 3. We are removing Python 2 dependencies.

qblivion avatar Jul 12 '24 11:07 qblivion

all deps are removed in release 1. next work will be done in https://github.com/OpenSDN-io/community/issues/63

Andrey-mp avatar Nov 06 '24 18:11 Andrey-mp