Python write_stream sample returns AttributeError when run
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il problema eseguendo write_stream.py sul server avviato con il comando Docker documentato, quindi confrontalo con list_streams.py. Esamina la ricerca dello stream in write_stream.py e verifica la configurazione dello stream prevista dall’esempio. Il lavoro è completato quando l’esempio funziona con un server appena avviato oppure documenta chiaramente la configurazione richiesta senza l’AttributeError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 9
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Aperta1.0.0-alpha2 Type/Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wso2/dpdp-accelerator#272 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100