NVIDIA / NVFlare

NVIDIA Federated Learning Application Runtime Environment
https://nvidia.github.io/NVFlare/
Apache License 2.0
645 stars 181 forks source link

[BUG] 2.5.1 nvflare dashboard --cloud aws fails #3045

Open dirkpetersen opened 1 month ago

dirkpetersen commented 1 month ago

I tried 5-6 configurations but it never runs, I see it is trying to use an old 20.04 AMI, would recommend (24.04, e.g. ami-04dd23e62ed049936)

dp@grammy:~/temp$ nvflare dashboard --cloud aws Dashboard launch script for cloud is written at /home/dp/temp/aws_start_dsb.sh. Now running it. This script requires aws (AWS CLI), sshpass, dig and jq. Now checking if they are installed. Checking if aws exists. => found Checking if sshpass exists. => found Checking if dig exists. => found Checking if jq exists. => found One initial user will be created when starting dashboard. Please enter the email address for this user. peterdir+prjadm@xxxxx.com Generating key pair for VM Checking if default VPC exists Default VPC found Security group id: sg-0704f949c22cf29b6 Creating VM at region us-west-2, may take a few minutes. VM created with IP address: 35.90.179.220 Installing docker engine in nvflare_dashboard, may take a few minutes. Warning: Permanently added '35.90.179.220' (ECDSA) to the list of known hosts. Connection to 35.90.179.220 closed. Warning: Permanently added '35.90.179.220' (ECDSA) to the list of known hosts. Connection to 35.90.179.220 closed. Installing nvflare in nvflare_dashboard, may take a few minutes. Warning: Permanently added '35.90.179.220' (ECDSA) to the list of known hosts. WARNING: Error parsing dependencies of distro-info: Invalid version: '0.23ubuntu1' WARNING: Error parsing dependencies of python-debian: Invalid version: '0.1.36ubuntu1' ERROR: Ignored the following yanked versions: 2.1.0 ERROR: Ignored the following versions that require a different python version: 2.5.1 Requires-Python <3.13,>=3.9; 2.5.1rc2 Requires-Python <3.13,>=3.9 ERROR: Could not find a version that satisfies the requirement nvflare==2.5.1 (from versions: 0.1.3, 0.9.0, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.0.16, 2.0.18, 2.0.19, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0rc1, 2.2.0, 2.2.1rc1, 2.2.1rc4, 2.2.1rc5, 2.2.1rc6, 2.2.1rc7, 2.2.1rc8, 2.2.1rc9, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0rc1, 2.3.0rc2, 2.3.0rc3, 2.3.0rc4, 2.3.0rc5, 2.3.0rc6, 2.3.0rc7, 2.3.0rc8, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.3.10, 2.3.11, 2.3.12, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0rc5, 2.4.0rc6, 2.4.0rc7, 2.4.0rc8, 2.4.0rc9, 2.4.0, 2.4.1rc1, 2.4.1rc2, 2.4.1rc3, 2.4.1rc4, 2.4.1rc5, 2.4.1rc6, 2.4.1rc7, 2.4.1rc8, 2.4.1, 2.4.2rc3, 2.4.2, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0rc4, 2.5.0rc5, 2.5.0rc6, 2.5.0rc7, 2.5.0rc8, 2.5.0rc9, 2.5.0rc10, 2.5.0rc11, 2.5.0rc12, 2.5.0, 2.5.1rc1) ERROR: No matching distribution found for nvflare==2.5.1 installing nvflare failed

Desktop (please complete the following information):

chesterxgchen commented 1 week ago

thanks for reporting, sorry for delayed response. We will take a look

IsaacYangSLA commented 1 week ago

@dirkpetersen , we found the original AMI is Ubuntu 20.04 and its Python version (3.8) is too old for nvflare 2.5.1. We switch the AMI to ami-04c7330a29e61bbca and the dashboard launch process finished without problem. The dashboard can be viewed at the AWS. We will update the script template.

chesterxgchen commented 3 days ago

@dirkpetersen should I close this ticket ? please let me know if the issue is addressed with the recent patch