DB-GPT [Bug] TypeError: NullType() takes no arguments when running python ./dbgpt/app/dbgpt_server.py --host 0.0.0.0 --port 6006

guicsvcw  于 4个月前  发布在  Python
关注(0)|答案(1)|浏览(68)

报错信息

2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a5cc0>
2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2024-07-05 14:19:39 gptai chromadb.api.segment[3070178] INFO Collection langchain is not created.
2024-07-05 14:19:39 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/copilot_profile.vectordb
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name copilot_profile exist
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success...
2024-07-05 14:19:39 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO db summary embedding success
2024-07-05 14:19:39 gptai dbgpt.datasource.manages.connect_config_db[3070178] INFO Result: <sqlalchemy.engine.cursor.CursorResult object at 0x7f3e718a7e20>
2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.connector[3070178] INFO VectorStore:<class 'dbgpt.storage.vector_store.chroma_store.ChromaStore'>
2024-07-05 14:19:47 gptai dbgpt.storage.vector_store.chroma_store[3070178] INFO Check persist_dir: /media/data/xgp/repo/DB-GPT/pilot/data/sx_adc_f2_profile.vectordb
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO Vector store name sx_adc_f2_profile exist
2024-07-05 14:19:47 gptai dbgpt.rag.summary.db_summary_client[3070178] INFO initialize db summary profile success...
2024-07-05 14:19:47 gptai dbgpt.rag
这是一个Python程序中的错误信息,具体来说是在使用SQLAlchemy库时遇到了问题。错误类型为TypeError,提示"NullType() takes no arguments",意味着在创建一个NullType对象时传入了参数,但实际上这个类不接受任何参数。

要解决这个问题,你需要检查你的代码中涉及到NullType的部分,确保在创建对象时没有传入任何参数。如果你能提供更多关于你的代码的信息,我可以帮助你找到具体的解决方案。

相关问题