Skip to content

Commit

Permalink
Support migrate to Python 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhwen committed Jul 23, 2024
1 parent be78ad9 commit 8c6965e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nvflare/private/fed/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,14 @@ def create_admin_server(fl_server: FederatedServer, server_conf=None, args=None,


def version_check():
if sys.version_info >= (3, 11):
raise RuntimeError("Python versions 3.11 and above are not yet supported. Please use Python 3.8, 3.9 or 3.10.")
if sys.version_info >= (3, 13):
raise RuntimeError(
"Python versions 3.13 and above are not yet supported. Please use Python version between 3.8 and 3.12."
)
if sys.version_info < (3, 8):
raise RuntimeError("Python versions 3.7 and below are not supported. Please use Python 3.8, 3.9 or 3.10")
raise RuntimeError(
"Python versions 3.7 and below are not supported. Please use Python version between 3.8 and 3.12."
)


def init_security_content_service(workspace_dir):
Expand Down

0 comments on commit 8c6965e

Please sign in to comment.