Error while trying to import pysyft in lesson 1 Duet Basics (Foundations course) #273
-
Hi, I setup a virtual environment (tried both conda and venv), activated it and installed pip requirements per course instruction. When running the notebooks for the Duet Basics demo I get an error at the first statement in both notebooks while loading the pysyft library (same error). I am running on macOS 11.1 Big Sur. AttributeError Traceback (most recent call last) ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/init.py in ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/core/node/device/init.py in ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/core/node/device/client.py in ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/core/node/common/client.py in ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/lib/init.py in ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/lib/init.py in create_lib_ast() ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/lib/torch/init.py in create_torch_ast() ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/globals.py in add_path(self, path, index, return_type_name, framework_reference) ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/module.py in add_path(self, path, index, return_type_name, framework_reference) ~/opt/anaconda3/envs/conda-env/lib/python3.8/site-packages/syft/ast/callable.py in add_path(self, path, index, return_type_name) AttributeError: type object 'Tensor' has no attribute 'fft' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi there! Turns out the version of Syft on PyPI is a bit old. Can you install Syft with this:
You might need to uninstall Syft first, This should work, let me know if it doesn't. |
Beta Was this translation helpful? Give feedback.
Hi there! Turns out the version of Syft on PyPI is a bit old. Can you install Syft with this:
pip install git+https://github.com/OpenMined/PySyft@dev#egg=syft
You might need to uninstall Syft first,
pip uninstall syft
.This should work, let me know if it doesn't.