alibaba / FederatedScope

An easy-to-use federated learning platform
https://www.federatedscope.io
Apache License 2.0
1.3k stars 210 forks source link

TypeError: call_file_data() missing 1 required positional argument: 'client_cfgs' #755

Open tntstation opened 9 months ago

tntstation commented 9 months ago

ImportError: DLL load failed while importing specfun,This happened after I installed the HDBSCAN package. I tried reinstalling Fs but it didn't work. How should I solve this problem?

tntstation commented 9 months ago

The problem was solved after I reinstalled scipy,however a new problem appeared, "TypeError: call_file_data() missing 1 required positional argument: 'client_cfgs'”, I was pretty sure something was broken. image

rayrayraykk commented 9 months ago

def call_file_data(config, client_cfgs): should be right.

How do you modify the function? data_data_config = func(config) should be data_data_config = func(config, client_cfgs)

tntstation commented 9 months ago

Actually,all the code I write is marked with a "#".So I think the problem lies in the environment. When installing the hdbscan package, numpy automatically upgraded. I no longer expect to fix the environment. I am currently reinstalling the environment, but what surprises me is why after following the instructions on the official website, PyCharm will prompt me that I did not install such an important package of yacs. Which step did I take wrong? image

tntstation commented 8 months ago

It looks like I still need to run python setup.py install after following the instructions, and backdoor bench doesn't seem to support running with pyyaml.

tntstation commented 8 months ago

Another question, I can't install networkX, will it have any effect?

rayrayraykk commented 8 months ago

Another question, I can't install networkX, will it have any effect?

If you are not planning to use the graph module, it won't have any effect.