NVFlare icon indicating copy to clipboard operation
NVFlare copied to clipboard

NVFlare python version not compatible with Google colab or Google Vertex AI Notebooks

Open filipmu opened this issue 4 years ago • 6 comments

NVFlare requires python 3.8.10 or higher per the pypi page, and both Google Colab and Google Vertex AI Notebooks currently run python 3.7.12 and 3.7.10 respectively. Upgrading these environments is relatively undocumented and complex.

For reference PyTorch 1.10 works with python 3.5 or greater.

Can the dependencies on python 3.8.10 be reduced so that python 3.7 will suffice?

filipmu avatar Dec 17 '21 18:12 filipmu

Unfortunately right now NVFlare does not work on python 3.7 and there are currently no plans to reduce the dependencies on python 3.8 although there are plans to make NVFlare compatible with python 3.9 in the future. Hopefully Google Colab and Google Vertex AI can be upgraded to run on python 3.8 soon.

nvkevlu avatar Dec 17 '21 19:12 nvkevlu

OK, that's too bad. Its going to be hard to influence Google's plans. Also, this makes it difficult to use nvflare on Jetson, since the NVIDIA L4T ML container on NGC is on python 3.6.

I tried building with 3.7 and found 12 files that had issues - walrus operators and fstring formatting were flagged as syntax errors. Are there other behind the scenes capabilities used from python 3.8?

filipmu avatar Dec 18 '21 12:12 filipmu

We will look into this and see what we can do about it.

nvkevlu avatar Dec 20 '21 23:12 nvkevlu

NVFlare now supports Python 3.7+.

Since Python 3.6 and lower have reached end of life, I think we don't need to support those versions.

YuanTingHsieh avatar Jan 05 '22 16:01 YuanTingHsieh

I forgot to mention, thanks for raising this good issue!

YuanTingHsieh avatar Jan 05 '22 23:01 YuanTingHsieh

Closing this issue as the original question "Can the dependencies on python 3.8.10 be reduced so that python 3.7 will suffice?" is resolved.

The answer is yes now.

YuanTingHsieh avatar Jan 26 '22 23:01 YuanTingHsieh