gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.41k stars 2.53k forks source link

missed setup.py when run "bash script/install_gradio.sh" #2912

Closed paulxiong closed 1 year ago

paulxiong commented 1 year ago

Describe the bug

I am trying to build Gradio from source code. Following the instruction of CONTRIBUTING.md,

_ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /mnt/gradio-3/gradio
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)_

Is there an existing issue for this?

Reproduction

git clone https://github.com/gradio-app/gradio.git cd gradio bash script/install_gradio.sh

Screenshot

image

Logs

_ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /mnt/gradio-3/gradio
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)_

System Info

Gradio version: 1.15.0
Ubuntu 20.04

Severity

serious, but I can work around it

abidlabs commented 1 year ago

Hi @paulxiong it looks like you might be using an older version of pip or setuptools. Can you upgrade both to the latest version and then try again?

See here: https://stackoverflow.com/a/69711730/5209347

paulxiong commented 1 year ago

problem solved after upgraded setuptools to 65.7.0. thanks.

abidlabs commented 1 year ago

Thanks for letting us know @paulxiong!

pangyuteng commented 10 months ago

@abidlabs been going through some gradio's github issues, kudos for being so responsive.

--

for those following custom-components-in-five-minutes, freshly installed node will likely also complain about not knowing what python is, SO ppl suggest installing python/create-alias and gcc.

python3 -m pip install --upgrade pip
pip install setuptools --upgrade
sudo apt install python3 python-is-python3 gcc