Open DekieCheng opened 2 months ago
Windows
3.10
main
[X] Installation From Source
[ ] Docker Installation
[ ] Docker Compose Installation
[ ] Cluster Installation
[ ] AutoDL Image
[ ] Other
CPU memory 16 GB
LLM:tongyi_proxyllm EMBEDDING_MODEL=text2vec
in my side, I've tried in Python both 3.12 and 3.10, also facing the issue. in my environment, I tried it by below code, it works fine, but in DB-GPT side, it cannot work when i tried to create the MSSQL datasource under application manage model.
try:
connection = pymssql.connect(server=server, user=username, password=password, database=database) # 创建游标 cursor = connection.cursor() # 执行简单的查询以测试连接 cursor.execute('SELECT @@VERSION') # 查询 SQL Server 版本 row = cursor.fetchone() # 获取一行结果 print('SQL Server Version:', row[0]) # 打印版本信息 # 关闭游标和连接 cursor.close() connection.close()
except pymssql.Error as e: print("Error while connecting to SQL Server:", e)
No response
Search before asking
Operating system information
Windows
Python version information
3.10
DB-GPT version
main
Related scenes
Installation Information
[X] Installation From Source
[ ] Docker Installation
[ ] Docker Compose Installation
[ ] Cluster Installation
[ ] AutoDL Image
[ ] Other
Device information
CPU memory 16 GB
Models information
LLM:tongyi_proxyllm EMBEDDING_MODEL=text2vec
What happened
What you expected to happen
in my side, I've tried in Python both 3.12 and 3.10, also facing the issue. in my environment, I tried it by below code, it works fine, but in DB-GPT side, it cannot work when i tried to create the MSSQL datasource under application manage model.
try:
建立连接
except pymssql.Error as e: print("Error while connecting to SQL Server:", e)
How to reproduce
Additional context
No response
Are you willing to submit PR?