This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Problem while setting up federated learning in single node #86
Unanswered
sameerthahir
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi ,
I am trying to setup federated learning on my pc using the setup guide. I have ran into the following problem.
(venv) sneha@debian-sneha:~/federated-learning-lib$ python -m ibmfl.aggregator.aggregator examples/configs/iter_avg/keras/config_agg.yml -c rabbitmq
2021-11-05 11:54:37.720 ERROR root :: Please provide yaml configuration
2021-11-05 11:54:37,728 | 1.0.6 | INFO | ibmfl.util.config | Getting details from config file.
/home/sneha/venv/lib/python3.7/site-packages/pandas/compat/init.py:124: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
warnings.warn(msg)
2021-11-05 11:54:38,215 | 1.0.6 | INFO | ibmfl.util.config | No metrics recorder config provided for this setup.
2021-11-05 11:54:38,215 | 1.0.6 | INFO | ibmfl.util.config | No model config provided for this setup.
2021-11-05 11:54:38,304 | 1.0.6 | INFO | ibmfl.util.config | No metrics config provided for this setup.
2021-11-05 11:54:38,305 | 1.0.6 | INFO | ibmfl.util.config | No evidencia recordeer config provided for this setup.
2021-11-05 11:54:38,305 | 1.0.6 | INFO | ibmfl.util.data_handlers.mnist_keras_data_handler | Loaded training data from examples/datasets/mnist.npz
2021-11-05 11:54:38,741 | 1.0.6 | INFO | main | Error occurred while loading aggregator configuration
2021-11-05 11:54:38,742 | 1.0.6 | ERROR | main | broker_vhost is missing from RabbitContext initialisation.
Traceback (most recent call last):
File "/home/sneha/venv/lib/python3.7/site-packages/ibmfl/aggregator/aggregator.py", line 92, in init
self.connection = connection_cls_ref(connection_info)
File "/home/sneha/venv/lib/python3.7/site-packages/ibmfl/connection/rabbitmq_connection.py", line 56, in init
dispatch_threshold = 0
File "/home/sneha/venv/lib/python3.7/site-packages/pycloudmessenger/ffl/abstractions.py", line 351, in context
context = target(config, *args, **kwargs)
File "/home/sneha/venv/lib/python3.7/site-packages/pycloudmessenger/ffl/fflapi.py", line 89, in init
super().init(args, user, password, user_dispatch)
File "/home/sneha/venv/lib/python3.7/site-packages/pycloudmessenger/rabbitmq.py", line 78, in init
raise Exception(f'{key} is missing from RabbitContext initialisation.')
Exception: broker_vhost is missing from RabbitContext initialisation.
^CTraceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/sneha/venv/lib/python3.7/site-packages/ibmfl/aggregator/aggregator.py", line 256, in
msg = sys.stdin.readline()
I ran into this error while executing the following
python -m ibmfl.aggregator.aggregator examples/configs/iter_avg/keras/config_agg.yml
Hope someone can help.
My env variable is
export IBMFL_BROKER= "{'aggregator': {'name': 'flagg', 'password': 'flagg'}, 'party0' : {'name': 'node1', 'password': 'node1'}, 'party1': {'name': 'node2', 'password': 'node2'}, 'rabbit' : {from the IBM team}}"
Thanks
Sameer
All reactions