Python write_stream sample returns AttributeError when run
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện lỗi bằng cách chạy write_stream.py với máy chủ được khởi động bằng lệnh Docker đã được tài liệu hóa, sau đó so sánh với list_streams.py. Kiểm tra việc tra cứu stream trong write_stream.py và xác minh thiết lập stream được mong đợi của sample. Được xem là hoàn tất khi sample hoạt động với một máy chủ mới hoặc tài liệu mô tả rõ thiết lập cần thiết mà không gặp AttributeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 9
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
infinispan/infinispan#18150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
opensearch-project/k-NN#3597 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100