dolphindb - 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)
解决方案
推荐阅读
- tensorflow-federated - TFF 加载预训练的 Keras 模型
- symfony - symfony - 我可以使用特征来实例化序列化程序吗
- php - Composer 自动加载器未在 CentOS 7 上注册 Twig
- javascript - UnhandledPromiseRejectionWarning,discord.js javascrpt
- javascript - 在本机反应中使用 FlatList 组件显示多个图像
- pandas - 当你想替换'Ã?'时,pandas 的 str.replace() 函数不起作用 通过另一个字符串,如何解决问题?
- oracle - sqlplus :: ORA-01078: 处理系统参数失败
- python - 通电与列表一起生成,但不会重生
- r - 将excel工作表导入列表并将工作表名称添加到列表中的功能
- reactjs - 如何在 TypeScript 中为 css 模块设置汇总