Replies: 1 comment 6 replies
-
I think you need to set the PYTHONPATH to include pt directory in order for python to find the pt. @ZiyueXu77 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Python version (
python3 -V
)3.8
NVFlare version
2.3
Operating system
Ubuntu 20.04
Please describe your question
I am trying to submit a job using 2 clients and a server. I managed to run the simulations from this example: https://github.com/NVIDIA/NVFlare/tree/main/examples/advanced/prostate/prostate_2D.
At the moment, I am trying to run this in a real-world setting. But when I submit the job (c61e73ed-080a-4353-ae55-ba49d41e414b) to the clients and server, some of the paths are not found:
For the clients:
nvflare.fuel.common.excepts.ConfigError: Error processing ['/home/ubuntu/run_5/site_1/startup/../c61e73ed-080a-4353-ae55-ba49d41e414b/app_site_1/config/config_fed_client.json'] in JSON element {'id': 'learner', 'path': 'pt.learners.supervised_monai_learner.SupervisedMonaiLearner', 'args': {'train_config_filename': 'config_train.json', 'aggregation_epochs': 1}}: path: components.#1, exception: No module named 'pt'
and for the server:
nvflare.fuel.common.excepts.ConfigError: Config error in ['/home/ubuntu/run_5/server/startup/../c61e73ed-080a-4353-ae55-ba49d41e414b/app_server/config/config_fed_server.json']: Error processing ['/home/ubuntu/run_5/server/startup/../c61e73ed-080a-4353-ae55-ba49d41e414b/app_server/config/config_fed_server.json'] in JSON element {'id': 'persistor', 'name': 'PTFileModelPersistor', 'args': {'model': {'path': 'monai.networks.nets.unet.UNet', 'args': {'spatial_dims': 2, 'in_channels': 1, 'out_channels': 1, 'channels': [16, 32, 64, 128, 256], 'strides': [2, 2, 2, 2], 'num_res_units': 2}}}}: path: components.#1, exception: failed to instantiate class: No module named 'monai'
The job folder is located in the transfer folder from the admin:
Does anyone know how to set the correct python paths for the clients and server?
Beta Was this translation helpful? Give feedback.
All reactions