-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Failed to import syft #5370
Comments
Did you install syft with?
|
thank u soooooooooooooooooooooo much!!! |
Hello, I had the same issue and your proposition worked @madhavajay, thanks! |
Maybe it is because the packge installed by pip is an old version which is different from https://github.com/OpenMined/PySyft@dev#egg=syft |
It is mos
It is mostly because of the torch version! |
I also had to deal with this problem. OS: windows 10 I tried to downgrade torch==1.7.0 and torchvision==0.8.1 an installation with CUDA an installation without CUDA And it works. |
I get above error when i try to install using |
pip install git+https://github.com/OpenMined/PySyft@dev#egg=syft ERROR: File "setup.py" not found for legacy project syft from git+https://github.com/OpenMined/PySyft@dev#egg=syft. |
I was also getting the same error as @mkeshav and @phenomenal-manish . I tried installing an earlier version using pip and it worked for me.
|
When I tried using ! pip install git+https://github.com/OpenMined/PySyft@dev#egg=syft in colab. The error: |
Below worked for me.
|
Question
File "D:/PycharmProjects/HDFED/main.py", line 2, in
import syft as sy
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft_init_.py", line 61, in
from syft.core.node.device.device import Device # noqa: F401
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\core\node\device_init_.py", line 2, in
from .client import DeviceClient
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\core\node\device\client.py", line 16, in
from ..common.client import Client
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\core\node\common\client.py", line 20, in
from ....lib import lib_ast
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\lib_init_.py", line 26, in
lib_ast = create_lib_ast()
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\lib_init_.py", line 12, in create_lib_ast
torch_ast = create_torch_ast()
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\lib\torch_init_.py", line 53, in create_torch_ast
ast.add_path(
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\ast\globals.py", line 65, in add_path
attr.add_path( # type: ignore
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\ast\module.py", line 120, in add_path
attr.add_path( # type: ignore
File "C:\Users\xd_69\AppData\Roaming\Python\Python38\site-packages\syft\ast\callable.py", line 82, in add_path
attr_ref = getattr(self.ref, path[index])
AttributeError: type object 'Tensor' has no attribute 'fft'
System Information
I followed the README to install the syft, but I can not import it successfully. Please tell me what else I need to do to make the environment correct. Thanks!
The text was updated successfully, but these errors were encountered: