首页 > 解决方案 > python-api 和 DolphinDB 服务器之间的连接错误

问题描述

python-api 和 DolphinDB 服务器之间的连接错误

我使用 python-api 连接 dolphindb。读取数据库时出错。我的代码如下:

import dolphindb as ddb
s = ddb.session()
s.connect("localhost", 24115,"admin", "123456")
x = s.loadTable(tableName="pt",dbPath="dfs://db1")

数据库和表都存在,可以在 DolphinDB 的 GUI 中进行研究。错误是:

C:\Users\test\anaconda3\lib\site-packages\dolphindb\session.py:69: VisibleDeprecationWarning: 
Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples- 
or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must 
specify 'dtype=object' when creating the ndarray
return self.cpp.run(script, *args)

标签: dolphindb

解决方案


推荐阅读