eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.69k stars 1.84k forks source link

[Bug] [Module Name] Source deployment, install dependency times error: metadata-generation-failed #1722

Closed 0sengseng0 closed 2 months ago

0sengseng0 commented 3 months ago

Search before asking

Operating system information

Linux

Python version information

3.10

DB-GPT version

main

Related scenes

Installation Information

Device information

GPU

Models information

LLM

What happened

Using pip 24.0 from /data/miniconda/dbgpt059/lib/python3.10/site-packages/pip (python 3.10) Looking in indexes: https://mirrors.huaweicloud.com/repository/pypi/simple Obtaining file:///data/git/dbgpt/DB-GPT Running command python setup.py egg_info error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: -11 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. full command: /data/miniconda/dbgpt059/bin/python -c ' exec(compile('"'"''"'"''"'"'

This is -- a caller that pip uses to run setup.py

#

- It imports setuptools before invoking setup.py, to enable projects that directly

import from distutils.core to work with newer packaging standards.

- It provides a clear error message when setuptools is not installed.

- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so

setuptools doesn'"'"'t think the script is -c. This avoids the following warning:

manifest_maker: standard file '"'"'-c'"'"' not found".

- It generates a shim setup.py, for handling setup.cfg-only projects.

import os, sys, tokenize

try: import setuptools except ImportError as error: print( "ERROR: Can not execute setup.py since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1)

file = %r sys.argv[0] = file

if os.path.exists(file): filename = file with tokenize.open(file) as f: setup_py_code = f.read() else: filename = "" setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'/data/git/dbgpt/DB-GPT/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-269ggoy6 cwd: /data/git/dbgpt/DB-GPT/ Preparing metadata (setup.py) ... error 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.

What you expected to happen

Dependencies can be installed normally

How to reproduce

conda create -n dbgpt059 python=3.10 pip install -v -e ".[default]" -i https://mirrors.huaweicloud.com/repository/pypi/simple

Additional context

No response

Are you willing to submit PR?

github-actions[bot] commented 2 months ago

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] commented 2 months ago

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.