PySyft won't work in Google Colab #291
Replies: 5 comments 5 replies
-
Although the relevant Github issue now appears closed, it leads to a different error when installing pysyft according to the course instructions: !pip install git+https://github.com/OpenMined/PySyft@dev#egg=syft
!git clone https://github.com/OpenMined/courses.git --branch foundations-of-private-computation --single-branch
import syft as sy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py in _dep_map(self)
3015 try:
-> 3016 return self.__dep_map
3017 except AttributeError:
14 frames
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py in _get(self, path)
1609
1610 def _get(self, path):
-> 1611 with open(path, 'rb') as stream:
1612 return stream.read()
1613
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/torchvision-0.9.0+cu101.dist-info/METADATA' |
Beta Was this translation helpful? Give feedback.
-
Hi @desertnaut there is a special script and prelude that's needed to install syft in Colab. You can give it a try. However, let me tell you that Colab is not still fully functional with syft at the moment. So even if you could install everything, you may still face some connection issue between the duet servers. |
Beta Was this translation helpful? Give feedback.
-
!pip install torchvision==0.8.2 this solved the issue for me and the code run on Colab just fine hope it helps |
Beta Was this translation helpful? Give feedback.
-
I got the error no module named syft when i tried to use it in google colab.How to fix it |
Beta Was this translation helpful? Give feedback.
-
NameError: name 'RequestMessage' is not defined Getting this error for syft==0.3.0 |
Beta Was this translation helpful? Give feedback.
-
I was hoping to follow the Foundations course using Google Colab, but unfortunately this seems impossible due to the version of Jupyter notebook in Google Colab being older than 6 (in my region, at least).
I successfully installed PySyft and the course materials according to the instructions:
but when trying to
I get
Indeed,
!jupyter --version
givesBut I am wondering, is this restriction on the notebook version really necessary?
And any ideas to overcome it? I have seen this Github issue, but it seems still open
Beta Was this translation helpful? Give feedback.
All reactions