OpenBB icon indicating copy to clipboard operation
OpenBB copied to clipboard

[Bug] /crypto/ $ price -s BTC

Open Chavithra opened this issue 2 years ago • 5 comments

Describe the bug Although the price is displayed, this command generate error messages in my setup:

/crypto/ $ price -s BTC

Here is the error

Traceback (most recent call last):
  File "...\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "...\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "...\lib\asyncio\base_events.py", line 751, in call_soon
    self._check_closed()
  File "...\lib\asyncio\base_events.py", line 515, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
BTC-USD = 16613.702500710002 ± 12.49750071

Chavithra avatar Nov 14 '22 14:11 Chavithra

:(

2022 Nov 14, 14:35 (🦋) /crypto/ $ price BTC

If it takes too long, you can use 'Ctrl + C' to cancel.

^CC-USD = 16495.96764226 ± 9.9049188789276001

Stopped watching BTC-USD price and confidence interval


2022 Nov 14, 14:35 (🦋) /crypto/ $ price BTC

If it takes too long, you can use 'Ctrl + C' to cancel.

^CC-USD = 16479.615 ± 4.12513.26491887

Stopped watching BTC-USD price and confidence interval


2022 Nov 14, 14:35 (🦋) /crypto/ $ price DOGE

If it takes too long, you can use 'Ctrl + C' to cancel.

^CGE-USD = 0.08507573 ± 3.862e-052.946e-05e-0500002e-05

Stopped watching DOGE-USD price and confidence interval

jmaslek avatar Nov 14 '22 19:11 jmaslek

Can't reproduce either:

image

hjoaquim avatar Nov 16 '22 15:11 hjoaquim

@andrewkenreich also sees this.

Must be a windows thing

jmaslek avatar Nov 18 '22 15:11 jmaslek

noted, will dig into that OS specific bug

Chavithra avatar Nov 18 '22 16:11 Chavithra

https://stackoverflow.com/questions/45600579/asyncio-event-loop-is-closed-when-getting-loop

looks like this could fix it

andrewkenreich avatar Nov 20 '22 04:11 andrewkenreich