【问题标题】:reported error when python-api connecting to DolphinDB serverpython-api连接DolphinDB服务器报错
【发布时间】:2021-06-28 03:16:45
【问题描述】:

查入数据库报错,代码如下

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

下面的错误信息

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)

为什么

【问题讨论】:

    标签: python dolphindb


    【解决方案1】:

    执行以下语句时会报此警告:

    x = s.loadTable(tableName="pt",dbPath="dfs://db1")
    

    警告是由高版本的numpy引起的。不影响正常功能,降级numpy版本即可取消。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-24
      • 2012-10-06
      • 2019-10-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多