You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not found a way to run the examples inside the examples/ folder, as the package is installed in the p2pfl folder inside the root directory, and therefore when trying to run, for example, mnist.py, you get an import error ModuleNotFoundError: No module named 'test.utils.
Perhaps it would be good to add to the documentation more clearly how to run the examples. The easiest way I have found without changing the repository organization is to use python -m examples.mnist.py
The text was updated successfully, but these errors were encountered:
Hello @kirle !, putting the examples in src folder might be a good idea, I'll think about it. Also, as for the documentation, we are working on it, to make it as easy as possible for the user (dockers, CLI...).
Finally, the way I have to run the example code is using python3 -m poetry run python examples/mnist.py from the root folder. Did it work for you?
I have not found a way to run the examples inside the
examples/
folder, as the package is installed in the p2pfl folder inside the root directory, and therefore when trying to run, for example,mnist.py
, you get an import errorModuleNotFoundError: No module named 'test.utils
.Perhaps it would be good to add to the documentation more clearly how to run the examples. The easiest way I have found without changing the repository organization is to use
python -m examples.mnist.py
The text was updated successfully, but these errors were encountered: