datastream.io icon indicating copy to clipboard operation
datastream.io copied to clipboard

Local First Run Results in AttributeError Exception

Open jnishiyama opened this issue 6 years ago • 6 comments

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!

jnishiyama avatar Mar 25 '18 11:03 jnishiyama

I have got the same issue while running the ELK platform

HKby avatar May 18 '18 08:05 HKby

@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

jnishiyama avatar May 18 '18 09:05 jnishiyama

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

HKby avatar May 18 '18 09:05 HKby

I have the same issue.

amkrous avatar May 25 '18 11:05 amkrous

+1 having this issue

robmarkcole avatar Jun 27 '18 06:06 robmarkcole

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

ffahri avatar Jun 29 '18 08:06 ffahri