ModuleNotFoundError: No module named 'syft.core.adp.entity'
Open
Nobody has claimed this yet.
Type: Bug :bug:
- Dominant language
- No language data
- Stars
- 169
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Description
Description
ModuleNotFoundError: No module named 'syft.core.adp.entity'
How to Reproduce
- run
import syft as sy
from syft.core.adp.entity import Entity
dataset = {}
for person_index, test_result in enumerate(raw_data):
data_owner = Entity(name=f'Patient #{person_index}')
dataset[person_index] = sy.Tensor(np.ones(1, dtype=np.int32) * test_result).private(min_val=0, max_val=1, entities=data_owner)
- output
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/data/mutakabbir/Lightning/federated-learning/notebooks/pysyft_demo_1.ipynb Cell 2 in <cell line: 2>()
[1](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224361726c65746f6e2d564d2d475055227d/data/mutakabbir/Lightning/federated-learning/notebooks/pysyft_demo_1.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0) import syft as sy
----> [2](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224361726c65746f6e2d564d2d475055227d/data/mutakabbir/Lightning/federated-learning/notebooks/pysyft_demo_1.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=1) from syft.core.adp.entity import Entity
[4](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224361726c65746f6e2d564d2d475055227d/data/mutakabbir/Lightning/federated-learning/notebooks/pysyft_demo_1.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3) dataset = {}
[6](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224361726c65746f6e2d564d2d475055227d/data/mutakabbir/Lightning/federated-learning/notebooks/pysyft_demo_1.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=5) for person_index, test_result in enumerate(raw_data):
ModuleNotFoundError: No module named 'syft.core.adp.entity'
Expected Behavior
Entity should exist!!!
System Information
- OS: Ubuntu
- Language Version: Python 3.8
- Package Manager Version: pip
Additional Context
packages
absl-py==1.4.0
alembic==1.8.1
ansible==6.7.0
ansible-core==2.13.7
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
ascii-magic==1.6
asttokens==2.0.5
async-timeout==4.0.2
attrs==22.1.0
backcall==0.2.0
bcrypt==4.0.1
beautifulsoup4==4.11.1
bleach==5.0.1
bokeh==2.4.3
boto3==1.26.51
botocore==1.29.69
branca==0.5.0
cachetools==5.3.0
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.1.0
chex==0.1.6
click==8.1.3
click-plugins==1.1.1
cligj==0.7.2
cloudpickle==2.2.0
colorama==0.4.6
colorcet==3.0.1
contourpy==1.0.7
cryptography==39.0.1
cycler==0.11.0
dask==2022.10.0
dask-geopandas==0.2.0
databricks-cli==0.17.3
debugpy==1.6.2
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.6
distributed==2022.10.2
dm-tree==0.1.8
dnspython==2.3.0
docker==6.0.1
email-validator==1.3.1
entrypoints==0.4
et-xmlfile==1.1.0
etils==1.0.0
executing==0.9.1
fastjsonschema==2.16.1
filelock==3.9.0
Fiona==1.8.21
Flask==2.2.2
flatbuffers==2.0.7
flax==0.5.3
folium==0.12.1.post1
fonttools==4.34.4
forbiddenfruit==0.1.4
fsspec==2022.8.2
GeoAlchemy2==0.12.5
geopandas==0.11.1
gevent==22.10.2
gitdb==4.0.9
GitPython==3.1.29
graphviz==0.20.1
greenlet==2.0.2
gunicorn==20.1.0
hagrid==0.2.129
HeapDict==1.0.1
holoviews==1.15.1
hvplot==0.8.1
idna==3.3
importlib-metadata==5.0.0
importlib-resources==5.9.0
ipykernel==6.15.1
ipython==8.4.0
ipython-genutils==0.2.0
ipywidgets==7.7.1
itsdangerous==2.1.2
jax==0.3.14
jaxlib==0.3.14
jedi==0.18.1
Jinja2==3.1.2
jmespath==1.0.1
joblib==1.1.0
jsonschema==4.8.0
jupyter==1.0.0
jupyter-client==7.3.4
jupyter-console==6.4.4
jupyter-core==4.11.1
jupyterlab-pygments==0.2.2
jupyterlab-widgets==1.1.1
kiwisolver==1.4.4
locket==1.0.0
loguru==0.6.0
Mako==1.2.3
mapclassify==2.4.3
Markdown==3.4.1
markdown-it-py==2.1.0
MarkupSafe==2.1.1
matplotlib==3.6.3
matplotlib-inline==0.1.3
mdurl==0.1.2
mistune==0.8.4
mlflow==1.30.0
msgpack==1.0.4
munch==2.5.0
names==0.3.0
nbclient==0.6.6
nbconvert==6.5.0
nbformat==5.4.0
nest-asyncio==1.5.5
networkx==2.8.5
notebook==6.4.12
numpy==1.23.1
nvidia-cublas-cu11==11.10.3.66
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
oauthlib==3.2.2
openpyxl==3.0.10
opt-einsum==3.3.0
optax==0.1.4
packaging==21.3
pandas==1.5.2
pandocfilters==1.5.0
panel==0.14.0
param==1.12.2
paramiko==3.0.0
parso==0.8.3
partd==1.3.0
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.2.0
platformdirs==3.0.0
plotly==5.9.0
prometheus-client==0.14.1
prometheus-flask-exporter==0.20.3
prompt-toolkit==3.0.30
protobuf==3.19.5
psutil==5.9.1
psycopg2-binary==2.9.5
ptyprocess==0.7.0
pure-eval==0.2.2
pyarrow==10.0.1
pycapnp==1.2.2
pycparser==2.21
pyct==0.4.8
pydantic==1.10.4
pygeos==0.12.0
Pygments==2.14.0
PyJWT==2.6.0
Pympler==1.0.1
PyNaCl==1.5.0
pyOpenSSL==23.0.0
pyparsing==3.0.9
pyproj==3.3.1
pyrsistent==0.18.1
python-dateutil==2.8.2
pytz==2022.1
pyviz-comms==2.2.1
PyYAML==6.0
pyzmq==23.2.0
qtconsole==5.3.1
QtPy==2.1.0
querystring-parser==1.2.4
redis==4.4.2
requests==2.28.2
requests-toolbelt==0.10.1
resolvelib==0.8.1
rich==13.3.1
Rtree==1.0.0
s3transfer==0.6.0
scikit-learn==1.1.1
scipy==1.9.0
seaborn==0.12.1
Send2Trash==1.8.0
Shapely==1.8.2
six==1.16.0
smmap==5.0.0
sortedcontainers==2.4.0
soupsieve==2.3.2.post1
SQLAlchemy==1.4.46
sqlparse==0.4.3
stack-data==0.3.0
syft==0.7.0
tabulate==0.9.0
tblib==1.7.0
tenacity==8.0.1
tensorstore==0.1.31
terminado==0.15.0
threadpoolctl==3.1.0
tinycss2==1.1.1
toolz==0.12.0
torch==1.13.0
torchvision==0.14.0
torchviz==0.0.2
tornado==6.1
tqdm==4.64.0
traitlets==5.3.0
typing-extensions==4.4.0
urllib3==1.26.11
virtualenv==20.19.0
virtualenv-api==2.1.18
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.4.2
Werkzeug==2.2.2
widgetsnbextension==3.6.1
zict==2.2.0
zipp==3.8.1
zope.event==4.6
zope.interface==5.5.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the syft 0.7.0 package layout and reproducing the import from the issue's Python snippet. Determine whether Entity exists under a different import path or is absent from this release; done means the documented snippet imports successfully or the issue is clarified with the supported path and version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100