Traceback (most recent call last):


 "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step

result = coro.throw(exc)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 368, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 198, in async_add_entity

yield from self.hass.async_add_job(entity.update)


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/sensor/usps.py", line 78, in update

for package in myusps.get_packages(self._session):


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/myusps/__init__.py", line 155, in wrapped

return function(*args)


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/myusps/__init__.py", line 188, in get_packages

'tracking_number': _get_tracking_number(row),


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/myusps/__init__.py", line 118, in _get_tracking_number

return row.find(TRACKING_NUMBER_TAG, TRACKING_NUMBER_ATTRS).string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

Traceback (most recent call last):


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1741, in <module>

main()


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1735, in main

globals = debugger.run(setup['file'], None, None, is_module)


 "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1135, in run

pydev_imports.execfile(file, globals, locals)
# execute the script


 "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "/Users/Sergey/Desktop/Projects/rush-sanic/main.py", line 46, in <module>

port=app.config.PORT


 "/Users/Sergey/Desktop/Projects/rush-sanic/venv/lib/python3.6/site-packages/sanic/app.py", line 1135, in run

serve(**server_settings)


 "/Users/Sergey/Desktop/Projects/rush-sanic/venv/lib/python3.6/site-packages/sanic/server.py", line 775, in serve

trigger_events(before_start, loop)


 "/Users/Sergey/Desktop/Projects/rush-sanic/venv/lib/python3.6/site-packages/sanic/server.py", line 633, in trigger_events

loop.run_until_complete(result)


 "uvloop/loop.pyx", line 1417, in uvloop.loop.Loop.run_until_complete


 "/Users/Sergey/Desktop/Projects/rush-sanic/venv/lib/python3.6/site-packages/tortoise/contrib/sanic/__init__.py", line 78, in init_orm

await Tortoise.init(config=config, config_file=config_file, db_url=db_url, modules=modules)
AttributeError: type object 'Tortoise' has no attribute 'init'
