Thomasbehan / LesNet

LesNet (Lesion Net) is an open-source project for AI-based skin lesion detection. It aims to create a reliable tool and foster community involvement in critical AI problems. Contributions are welcome!
Mozilla Public License 2.0
12 stars 2 forks source link

#10 - :bug: :arrow_up: Update requirements handling in setup.py #11

Closed Thomasbehan closed 1 year ago

Thomasbehan commented 1 year ago

This commit improves the way requirements.txt is read and merged with other dependencies in setup.py. Now, the contents of the requirements.txt file are read into a list and combined with additional dependencies for better package management.

This should then be picked up when running:

 pip install -e ".[testing]"
JoaoMosmann commented 1 year ago

Now when running env/bin/pip install -e ".[testing]"

I get the following error

Obtaining file://projects/SkinVestigatorAI
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting Pillow==9.5.0 (from skinvestigatorai==0.0.4)
  Using cached Pillow-9.5.0-cp311-cp311-macosx_11_0_arm64.whl (3.1 MB)
Collecting requests==2.28.2 (from skinvestigatorai==0.0.4)
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting scipy==1.10.1 (from skinvestigatorai==0.0.4)
  Using cached scipy-1.10.1-cp311-cp311-macosx_12_0_arm64.whl (28.7 MB)
Collecting sympy==1.11.1 (from skinvestigatorai==0.0.4)
  Using cached sympy-1.11.1-py3-none-any.whl (6.5 MB)
Collecting tensorboard==2.12.2 (from skinvestigatorai==0.0.4)
  Using cached tensorboard-2.12.2-py3-none-any.whl (5.6 MB)
INFO: pip is looking at multiple versions of skinvestigatorai[testing] to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.0rc1 Requires-Python >=3.7,<3.10; 1.7.0rc2 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11
ERROR: Could not find a version that satisfies the requirement tensorflow==2.12.0 (from skinvestigatorai[testing]) (from versions: none)
ERROR: No matching distribution found for tensorflow==2.12.0
JoaoMosmann commented 1 year ago

Still getting a similar error. Although we can find here that 2.12.0 is the latest version https://pypi.org/project/tensorflow-macos/

ERROR: Could not find a version that satisfies the requirement tensorflow-macos==2.12.0 (from skinvestigatorai[testing]) (from versions: none)
ERROR: No matching distribution found for tensorflow-macos==2.12.0
Thomasbehan commented 1 year ago

Looks like macos arm64 processors are not supported officially by tensorflow, you can try the new install steps in the readme if that doesnt work you will have to compile your own tensorflow from source https://www.tensorflow.org/install/source#macos