Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行fedml.run_simulation()时就会出现TypeError: bind_simulation_device() takes 2 positional arguments but 3 were given #1777

Open
buaaYYC opened this issue Dec 21, 2023 · 4 comments

Comments

@buaaYYC
Copy link

buaaYYC commented Dec 21, 2023

image

fedml.run_simulation()

File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/launch_simulation.py", line 16, in run_simulation
args = fedml.init()
File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/init.py", line 156, in init
mlops.init(args, should_init_logs=should_init_logs)
File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/mlops/init.py", line 15, in init
mlops.init(args, should_init_logs=should_init_logs)
File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/core/mlops/init.py", line 126, in init
MLOpsStore.mlops_bind_result = bind_simulation_device(args, api_key, args.config_version)
TypeError: bind_simulation_device() takes 2 positional arguments but 3 were given

请问该怎么解决

@Norsen-Miles
Copy link

Norsen-Miles commented Dec 22, 2023

Hi pal! This error might be related to the "fedml_config.yaml" in your current folder, you can check for more precise content from Single process example for FedML . However, due to the absence of details, no further suggestions can be given. You'd better provide more information about your under-testing procedure.

BTW, did you get the source-code from csdn? The older fedml version from csdn platform is not approprite for the latest package.

@buaaYYC
Copy link
Author

buaaYYC commented Dec 25, 2023

Tanks,https://doc.fedml.ai/federate/simulation/examples/sp_fedavg_mnist_lr_exampleThere is no file in this path anymore.The latest code I pulled directly from github
image

@Norsen-Miles
Copy link

Norsen-Miles commented Dec 25, 2023

Oh! You may copy the link to a newpage, the URL from github won't direct it to the correct address.

Update: The link is available now, my fault.

@xuwGnbo
Copy link

xuwGnbo commented Mar 16, 2024

FedML/python/fedml/core/mlops/init.py#L128 The parameters passed by the function call here is inconsistent with the actual parameters defined at FedML/python/fedml/core/mlops/init.py#L1235
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants