[X] I have read the README and searched the existing issues.
System Info
Reproduction
Obtaining file:///u/nkp2mr/Songwei/LLaMA-Factory-main
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 transformers<=4.45.0,>=4.41.2 (from llamafactory==0.9.1.dev0)
Using cached transformers-4.44.2-py3-none-any.whl.metadata (43 kB)
Collecting datasets<=2.21.0,>=2.16.0 (from llamafactory==0.9.1.dev0)
Using cached datasets-2.21.0-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: accelerate<=0.34.2,>=0.30.1 in /u/nkp2mr/anaconda3/envs/llama-factory/lib/python3.11/site-packages (from llamafactory==0.9.1.dev0) (0.34.2)
Collecting peft<=0.12.0,>=0.11.1 (from llamafactory==0.9.1.dev0)
Using cached peft-0.12.0-py3-none-any.whl.metadata (13 kB)
Collecting trl<=0.9.6,>=0.8.6 (from llamafactory==0.9.1.dev0)
Using cached trl-0.9.6-py3-none-any.whl.metadata (12 kB)
Collecting gradio>=4.0.0 (from llamafactory==0.9.1.dev0)
Using cached gradio-4.44.0-py3-none-any.whl.metadata (15 kB)
Collecting pandas>=2.0.0 (from llamafactory==0.9.1.dev0)
Using cached pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting scipy (from llamafactory==0.9.1.dev0)
Using cached scipy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Collecting einops (from llamafactory==0.9.1.dev0)
Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting sentencepiece (from llamafactory==0.9.1.dev0)
Using cached sentencepiece-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB)
Collecting tiktoken (from llamafactory==0.9.1.dev0)
Using cached tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
Collecting protobuf (from llamafactory==0.9.1.dev0)
Using cached protobuf-5.28.1-cp38-abi3-manylinux2014_x86_64.whl.metadata (592 bytes)
Collecting uvicorn (from llamafactory==0.9.1.dev0)
Using cached uvicorn-0.30.6-py3-none-any.whl.metadata (6.6 kB)
Collecting pydantic (from llamafactory==0.9.1.dev0)
Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB)
Collecting fastapi (from llamafactory==0.9.1.dev0)
Using cached fastapi-0.115.0-py3-none-any.whl.metadata (27 kB)
Collecting sse-starlette (from llamafactory==0.9.1.dev0)
Using cached sse_starlette-2.1.3-py3-none-any.whl.metadata (5.8 kB)
Collecting matplotlib>=3.7.0 (from llamafactory==0.9.1.dev0)
Using cached matplotlib-3.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting fire (from llamafactory==0.9.1.dev0)
Using cached fire-0.6.0.tar.gz (88 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Reminder
System Info
Reproduction
Obtaining file:///u/nkp2mr/Songwei/LLaMA-Factory-main 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 transformers<=4.45.0,>=4.41.2 (from llamafactory==0.9.1.dev0) Using cached transformers-4.44.2-py3-none-any.whl.metadata (43 kB) Collecting datasets<=2.21.0,>=2.16.0 (from llamafactory==0.9.1.dev0) Using cached datasets-2.21.0-py3-none-any.whl.metadata (21 kB) Requirement already satisfied: accelerate<=0.34.2,>=0.30.1 in /u/nkp2mr/anaconda3/envs/llama-factory/lib/python3.11/site-packages (from llamafactory==0.9.1.dev0) (0.34.2) Collecting peft<=0.12.0,>=0.11.1 (from llamafactory==0.9.1.dev0) Using cached peft-0.12.0-py3-none-any.whl.metadata (13 kB) Collecting trl<=0.9.6,>=0.8.6 (from llamafactory==0.9.1.dev0) Using cached trl-0.9.6-py3-none-any.whl.metadata (12 kB) Collecting gradio>=4.0.0 (from llamafactory==0.9.1.dev0) Using cached gradio-4.44.0-py3-none-any.whl.metadata (15 kB) Collecting pandas>=2.0.0 (from llamafactory==0.9.1.dev0) Using cached pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB) Collecting scipy (from llamafactory==0.9.1.dev0) Using cached scipy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB) Collecting einops (from llamafactory==0.9.1.dev0) Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB) Collecting sentencepiece (from llamafactory==0.9.1.dev0) Using cached sentencepiece-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB) Collecting tiktoken (from llamafactory==0.9.1.dev0) Using cached tiktoken-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB) Collecting protobuf (from llamafactory==0.9.1.dev0) Using cached protobuf-5.28.1-cp38-abi3-manylinux2014_x86_64.whl.metadata (592 bytes) Collecting uvicorn (from llamafactory==0.9.1.dev0) Using cached uvicorn-0.30.6-py3-none-any.whl.metadata (6.6 kB) Collecting pydantic (from llamafactory==0.9.1.dev0) Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB) Collecting fastapi (from llamafactory==0.9.1.dev0) Using cached fastapi-0.115.0-py3-none-any.whl.metadata (27 kB) Collecting sse-starlette (from llamafactory==0.9.1.dev0) Using cached sse_starlette-2.1.3-py3-none-any.whl.metadata (5.8 kB) Collecting matplotlib>=3.7.0 (from llamafactory==0.9.1.dev0) Using cached matplotlib-3.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB) Collecting fire (from llamafactory==0.9.1.dev0) Using cached fire-0.6.0.tar.gz (88 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute
setup.py
since setuptools is not available in the build environment. [end of output]note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Expected behavior
No response
Others
No response