tablegpt / tablegpt-agent

A pre-built agent for TableGPT2.
https://tablegpt.github.io/tablegpt-agent/
Apache License 2.0
301 stars 19 forks source link

示例代码中,没有找到pybox和 DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR #131

Open wang4035wei opened 4 hours ago

wang4035wei commented 4 hours ago

Run python collect_script.py and paste or upload the resulting text file here.

If you are using TableGPT2 deployed with vLLM, please specify the vLLM version and include the command used to start the server.

If not, you may skip this section.

vLLM version

The version of the vLLM

The start command of the vLLM serve

Steps to reproduce

Actual behavior

Expected behavior

tablegpt 0.0.1 tablegpt-agent 0.2.15

from pybox import LocalPyBoxManager from tablegpt.agent import create_tablegpt_graph from tablegpt import DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR

通过上面命令导入LocalPyBoxManager和DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR时,报错找不到!

AngGaGim commented 3 hours ago

可以尝试手动指定 DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR=r'E:\tablegpt-agent.venv\share\ipykernel\profile\tablegpt'

wang4035wei commented 19 minutes ago

from pybox import LocalPyBoxManager

@AngGaGim 那请问上面的pybox是从哪来的

edwardzjl commented 7 minutes ago

pyboxtablegpt-agent 所依赖的代码执行器,默认安装不包含本地执行所需的依赖 (pybox[local])。

LocalPyBoxManagerpybox[local] 中包含的类,负责本地执行器的生命周期管理。

详见 https://tablegpt.github.io/tablegpt-agent/tutorials/quick-start/#installation

edwardzjl commented 4 minutes ago

DEFAULT_TABLEGPT_IPYKERNEL_PROFILE_DIR 找不到的具体报错信息是什么?