Python write_stream sample returns AttributeError when run

未关闭
#1 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, python
领域
databases

调研方向

通过使用文档中所述的 Docker 命令启动服务器后运行 write_stream.py 来复现故障,然后将其与 list_streams.py 进行比较。检查 write_stream.py 中的流查找,并验证示例所预期的流设置。完成的标准是:示例能够在全新的服务器上运行,或清楚记录所需的设置且不会出现 AttributeError。

由索引模型根据 Issue 内容生成。

描述

Hi,

I am running a local timebase server using docker using the following command:

docker run --rm -d -p 8011:8011 --name=timebase-server --ulimit nofile=65536:65536 finos/timebase-ce-server:6.1

This allows me to run the list_streams.py sample successfully.

However, when I run the write_stream.py sample I get the following error:

Connected to dxtick://localhost:8011
Connection dxtick://localhost:8011 closed.
Traceback (most recent call last):
  File "write_stream.py", line 28, in <module>
    loader = stream.createLoader(tbapi.LoadingOptions())
AttributeError: 'NoneType' object has no attribute 'createLoader'

A cursory look at the code leads me to believe that the bitfinex stream does not exist in the timebase server so the person who wrote this sample was probably pointing to a timebase server that had already been primed in some way. So this sample does not stand by itself and needs some unknown setup.

I have attempted to create a stream instead of opening it but I get further errors due to the stream not being setup correctly (as expected):

No message types defined for stream at DxApiImpl::TickLoaderImpl *DxApiImpl::TickLoaderImpl::open(

I hope that is enough info to reproduce.

主要语言
Java
星标
9
派生
0
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。