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

No module named 'pt' #149

Closed
LSnyd opened this issue Jan 26, 2022 · 6 comments · Fixed by #175
Closed

No module named 'pt' #149

LSnyd opened this issue Jan 26, 2022 · 6 comments · Fixed by #175
Assignees
Labels
examples Label for all example related work

Comments

@LSnyd
Copy link

LSnyd commented Jan 26, 2022

Hi there,

I am trying to get the cifar10 example running with Federated Learning.

I followed all the steps mentioned here https://nvidia.github.io/NVFlare/quickstart.html and then uploaded and deployed the app from the admin terminal. When I am trying to start the app, I am getting the following error:

./run_1/app_server/config/config_fed_server.json in JSON element components.#5: No module named 'pt'

Event though, in the run_1 folder of the clients is a folder called pt with the specified learners. Do I have to configure the path to the custom folders somewhere?

@holgerroth
Copy link
Collaborator

holgerroth commented Jan 26, 2022

Hello, thank you for trying out the example. There are several ways to make custom code available to clients when using nvflare. Most hello-* examples follow the approach described in the getting started guide using a custom folder within your FL application. Note that using a custom folder in the app needs to be allowed when using secure provisioning. By default, this option is disabled in the secure mode. POC mode, however, will work with custom code by default.

In contrast, the CIFAR-10 example assumes that the learner code is already installed on the client's system and available in the PYTHONPATH. Hence, the app folders, don't include the custom code there. The PYTHONPATH is actually set in the run_poc.sh or run_secure.sh scripts of the example. Running these scripts as described in the README will make the learner code available to the clients.

@holgerroth holgerroth self-assigned this Jan 26, 2022
@holgerroth holgerroth added the examples Label for all example related work label Jan 26, 2022
@holgerroth
Copy link
Collaborator

Hi @LSnyd, were you able to resolve the issue?

@LSnyd
Copy link
Author

LSnyd commented Feb 3, 2022

Hi @holgerroth, thanks so much for the clarification and sorry for my late reply, I had to prioritize a different project. However, I got the FL Training running today. For now it just runs and does not perform well yet. Therfore I have more questions, but I will open different issues for those :)
Thanks for your help!

@harrypotter90
Copy link

Hi, I am facing the same problem.

And links described in above answers are expired.

Can you update the links here in the comment : #149 (comment)

@holgerroth
Copy link
Collaborator

@harrypotter90, links in the above comment have been updated. Hope that helps.

@harrypotter90
Copy link

This has worked for me, I just have to read the documentation deeply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Label for all example related work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants