Voyz/databay

ImportError: cannot import name 'ASPlanner' from 'databay.planners'

Closed this issue · 2 comments

Describe the bug
After fixing importlib error per this issue, then I am getting the following error:

Traceback (most recent call last):
  File "blockchain_demo.py", line 6, in <module>
    from databay.planners import ASPlanner
ImportError: cannot import name 'ASPlanner' from 'databay.planners' (/home/pybokeh/envs/streaming_dev/lib/python3.8/site-packages/databay/planners/__init__.py)

To Reproduce
I executed the following code:

import datetime

from databay.inlets import HttpInlet
from databay.outlets import PrintOutlet
from databay import Link
from databay.planners import ASPlanner

stock_inlet = HttpInlet('https://blockchain.info/ticker')

print_outlet = PrintOutlet(True, True)

link = Link(stock_inlet, print_outlet, interval=datetime.timedelta(seconds=1))

planner = ASPlanner(link)

planner.start()

Environment
Databay version: 0.1.2
Python version: 3.8.2
OS: Ubuntu 20.04 and Windows 10

pip freeze output:

aiohttp==3.6.2
APScheduler==3.6.3
async-timeout==3.0.1
attrs==20.1.0
chardet==3.0.4
databay==0.1.2
idna==2.10
multidict==4.7.6
pytz==2020.1
schedule==0.6.0
six==1.15.0
tzlocal==2.1
yarl==1.5.1

Sorry, typo in module, it should have been APSPlanner, not ASPlanner! That is what I get for being in a rush and not using an IDE at the time. Please close this issue!

Voyz commented

Ha no worries! Even more so if you were in a rush I truly appreciate you giving Databay a shot!