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

ModuleNotFoundError: No module named 'requests' while importing pate #21

Open
jfraj opened this issue Jan 28, 2020 · 1 comment
Open

Comments

@jfraj
Copy link

jfraj commented Jan 28, 2020

The following line in the notebook Section 1 - Differential Privacy.ipynb :
from syft.frameworks.torch.differential_privacy import pate

Leads to the following error

`---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from syft.frameworks.torch.differential_privacy import pate

~/opt/anaconda3/envs/pysyft/lib/python3.7/site-packages/syft/init.py in
42 # Import grids
43 from syft.grid.private_grid import PrivateGridNetwork
---> 44 from syft.grid.public_grid import PublicGridNetwork
45
46 # Import sandbox

~/opt/anaconda3/envs/pysyft/lib/python3.7/site-packages/syft/grid/public_grid.py in
1 import torch
----> 2 import requests
3 import json
4
5 from typing import Union

ModuleNotFoundError: No module named 'requests'`

My environment:

Python 3.7.6

macOS Catalina 10.15.1

@jfraj
Copy link
Author

jfraj commented Jan 28, 2020

fixed by pip install requests

... but then another error is raised:

ModuleNotFoundError: No module named 'syft.frameworks.torch.differential_privacy'

this is fixed by changind differential_privacy by dp:

from syft.frameworks.torch.dp import pate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant