Jupyter Notebooks examples and tutorials to not work with docker-compose #543
Comments
Thanks for reporting this @KadKla! I'll check it. |
Ohh, wait! Could you check if your PySyft lib is the last version? Most of our errors on the serde package are incompatibility between Syft library versions on PyGrid instance/User environment |
Nice! Sure, here is my requirements.txt for the environment, from where I start my JupyterLab:
|
@IonesioJunior do you mean the latest release of PySyft (v0.2.4) or the latest changes so we should install it from source? |
I mean, the grid node docker images are out of date (they were built two weeks ago). It cause an incompatibility between versions of the library used by these images and your python environment. |
I'm trying to build the docker images locally but seems that the README instructions are a bit outdated. Not sure how to build the |
Hi all, I have the same problem. Recently, I tested with the example from https://github.com/OpenMined/PySyft/tree/master/examples/tutorials/grid/federated_learning/mnist and the latest grid-node and gatway image from dockerhub (4/21/2020). It resulted still in: "RuntimeError: Websocket connection closed and creation of new connection failed." Thanks in advance for any support! |
Yeah @santteegt ! Actually, to build the grid nodes you should use the GridNode's repository Dockerfile. I'm working on it right now. thank you, folks, for reporting this issue! The updated news should be announced soon. :) |
@KadKla , @santteegt , @thiessl
Related PR's: #549 Thank you in advance. |
Hi @IonesioJunior, Awesome! Looking forward to the next PRs. After reviewing and testing the changes you've introduced so far, here are some comments from my side:
|
Hi @IonesioJunior, After building the docker images based on the newest version and using pysyft 0.2.5, there is no runtime error anymore! thanks for fixing! However, currently grid.search(...) is not returning anything in the tutorials. I commented out the redis urls (env variables) in the docker compose file, as you suggested in the slack channel. |
I'm seeing this same issue. How do I update the Node container to PySyft 0.2.5? Ideally, I would still use docker-compose for simplicity |
Nevermind, it looks like the grid-node container was just updated 4 hours ago to include PySyft 0.2.5! For anyone else who has this problem, you'll need to make sure docker-compose is using this updated version. Run this to do so:
|
Hi @IonesioJunior, Thank you for your great efforts, after updating docker images and PySyft to the latest version, the PyGrid examples can now be executed successfully. However, like some of above comments had mentioned, I also failed to run the second and third grid examples in PySyft. The error messages I had encountered are the same as those in @santteegt's comment, but here I want to further provide the error messages shown in grid-node when running
Hope this helps, thanks for your effort again. |
It fixes the following error: AttributeError: 'State' object has no attribute 'state_ids' when trying to run a remote inference. refs #OpenMined/PyGrid-deprecated---see-PySyft-#543
Hi guys, thanks for your amazing work in OpenMined! I sent a commit with a proposed fix for this issue: https://github.com/OpenMined/GridNode/pull/14 |
commit 2093fcc Author: IonesioJunior <ionesiojr@gmail.com> Date: Wed May 27 22:36:13 2020 -0300 Update syft version checking commit 7bb4914 Author: Ionésio Junior <ionesiojr@gmail.com> Date: Wed May 27 21:23:19 2020 -0300 Update Dockerfile commit bf17b4f Author: Ionésio Junior <ionesiojr@gmail.com> Date: Wed May 27 17:20:56 2020 -0300 Update requirements.txt commit 73f40c9 Author: Ionésio Junior <ionesiojr@gmail.com> Date: Wed May 27 17:20:27 2020 -0300 Update Dockerfile commit ee3c9c3 Author: kurono <andresgomezram7@gmail.com> Date: Tue May 26 18:41:26 2020 +0000 fixes state_ids error when using PySyft v0.2.5. (#14) It fixes the following error: AttributeError: 'State' object has no attribute 'state_ids' when trying to run a remote inference. refs #OpenMined/PyGrid-deprecated---see-PySyft-#543 Co-authored-by: kurono <kurono@riseup.net>
Describe the bug
I launched the gateway and nodes with the provided docker-compose and tried to connect with a local running JupyterLab as well as with a JupyterLab running inside the docker-compose. In Both cases I cannot execute successfully the examples from two different examples: pygrid in pysyft (here Part 1 worked and the nodes seem to know each other) nor the pygrid examples
I changed optionally localhost to gateway, alice, bob, etc., however, this did not change anything. Before I launched the docker-compose I added all the hosts to the /etc/hosts file:
In the local as well as in the jupyterlab running in the docker-container I get the following error:
In the docker-compose look I get the following, however, not sure if the error occurs at the same time:
Here is the docker-compose file I used:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful execution of the jupyter notebooks
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context
In the future we want to transfer the whole docker-compose setup to Kubernetes
The text was updated successfully, but these errors were encountered: