MentatInnovations / datastream.io

An open-source framework for real-time anomaly detection using Python, ElasticSearch and Kibana
Apache License 2.0
897 stars 167 forks source link

Local First Run Results in AttributeError Exception #23

Open jnishiyama opened 6 years ago

jnishiyama commented 6 years ago

Hello when starting to test this out, I was immediately faced with the issue below.


Done.

data found from 2018-03-25 14:14:30 to 2018-03-26 05:49:05
Converting to milliseconds ...
Done
Adding time offset of 0.06 seconds
Setting speed to 1x
Done
Traceback (most recent call last):
  File ".../tryingdsio/dsio-env/bin/dsio", line 9, in <module>
    load_entry_point('dsio==0.1.0', 'console_scripts', 'dsio')()
  File ".../tryingdsio/dsio-env/src/dsio/dsio/main.py", line 155, in main
    cols=int(args.cols)
  File ".../tryingdsio/dsio-env/src/dsio/dsio/main.py", line 70, in restream_dataframe
    port=bokeh_port, update_queue=update_queue
  File ".../tryingdsio/dsio-env/src/dsio/dsio/dashboard/bokeh.py", line 74, in generate_dashboard
    if io_loop._running: # Assume we're in a Jupyter notebook
AttributeError: 'AsyncIOMainLoop' object has no attribute '_running'```

I'm not sure what the root cause of the issue is, but I have a non-breaking fix for myself that may also help other people. I will make a PR with the change.

Thank you!
HKby commented 6 years ago

I have got the same issue while running the ELK platform

jnishiyama commented 6 years ago

@HKby Hey, not sure if it helps, but I have this PR open which fixed it for me: https://github.com/MentatInnovations/datastream.io/pull/24

HKby commented 6 years ago

@jnishiyama Cool! The bugs gone. However, I went to another bunch of bugs. :) hahahaha. Gonna fix those first.

amkrous commented 6 years ago

I have the same issue.

robmarkcole commented 6 years ago

+1 having this issue

ffahri commented 6 years ago

https://github.com/MentatInnovations/datastream.io/issues/28#issuecomment-401280534 @robmarkcole @amkrous