OpenMined / courses

A place where our community can discuss OpenMined Courses, including posting questions, sharing feedback, or providing comments for discussion!
http://courses.openmined.org
167 stars 74 forks source link

ERROR: syft from git+http://github.com/OpenMined/PySyft@dev#egg=syft does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. #423

Open lepangdan opened 2 years ago

lepangdan commented 2 years ago

Description

when I run pip install git+http://github.com/OpenMined/PySyft@dev#egg=syft, I encounter an install bug: ERROR: syft from git+http://github.com/OpenMined/PySyft@dev#egg=syft does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Collecting syft
  Cloning http://github.com/OpenMined/PySyft (to revision dev) to /tmp/pip-install-bkn6q54r/syft_a4d7880d538546e6b1ae6e19c7bb0821
  Running command git clone --quiet http://github.com/OpenMined/PySyft /tmp/pip-install-bkn6q54r/syft_a4d7880d538546e6b1ae6e19c7bb0821
  Resolved http://github.com/OpenMined/PySyft to commit 51bb412427829dbd3babeb67cd28157540bd7467
ERROR: syft from git+http://github.com/OpenMined/PySyft@dev#egg=syft does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Any help is welcome!

Mobin-khorushi commented 2 years ago

Any fixes on this bug? im facing the same using python 3.8 and following your own tuts

Merna-Atef commented 1 year ago

Any fixes? I have the same bug and can't run the openmined course tutorials also using python 3.8

dbckz commented 1 year ago

Hit the same issue. Can instead just install syft from PyPI (I am guessing syft hadn't been packaged when the course was first released, hence the instruction to install from source), though bear in mind you need to install syft==0.5.x as duet (used in the tutorials) is deprecated from 0.6 onwards.

You'll probably still end up with a bunch of dependency version issues. I've managed to get things seemingly all working ok with the below conda config (I'm running on OSx with M2 processor):

name: openmined-courses
channels:
  - pytorch
  - conda-forge
  - defaults
dependencies:
  - cpuonly
  - dataclasses
  - flask>=1.1.2,<2.0.0
  - jupyter
  - loguru
  - matplotlib
  - nest-asyncio
  - numpy
  - pandas
  - pip
  - pynacl
  - pytorch<=1.8.0,>=1.4.0
  - python>=3.6
  - requests
  - scikit-learn
  - seaborn
  - setuptools
  - sqlitedict
  - statsmodels
  - torchvision<=0.9,>=0.5
  - typeguard
  - typing-extensions
  - websockets
  - pip:
    - aiortc
    - cryptography>=3.4.7
    - dpcontracts
    - forbiddenfruit>=0.1.3
    - protobuf==3.20
    - pydagogy
    - syft==0.5.1

Hope this helps!