我使用的版本是1.30.0.12。下面的脚本无法识别streamTable和报表。这一错误。以前有人遇到过这种错误吗?
发布于 2022-01-27 06:01:20
您正在使用DolphinDB的Python。1.30.0.12是基于服务器的API版本.确保服务器是打开的。对于Python应用程序,您可以参考这个教程。
在python中创建流表有两种方法。
import dolphindb as ddb
s=ddb.session()
# connect to DolphinDB server
s.connect("localhost", 8848, "admin", "123456")
# first method, pass the parameters directly
s.run("""streamTable(100:10, ["Name", "Age"], ["string", "int"])""")
# second method, create a stream table after importing the varaibles
colName=["Name", "Age"]
colType=["string", "int"]
s.upload({'colName': colName})
s.upload({'colType': colType})
s.run("streamTable(100:10, colName, colType)")https://stackoverflow.com/questions/70844166
复制相似问题