
Traceback (most recent call last):

 "threading.py", line 442, in __bootstrap
self.run()

 "./camper.py", line 258, in run
stuff = session.query(Path).select_from(f_table.join(u_table)).filter(User.c.username==user).first()

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/query.py", line 590, in first
ret = list(self[0:1](0:1))

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/query.py", line 619, in __iter__
return self._execute_and_instances(context)

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/query.py", line 624, in _execute_and_instances
return iter(self.instances(result, querycontext=querycontext))

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/query.py", line 680, in instances
self.select_mapper._instance(context, row, result)

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/mapper.py", line 1425, in _instance
instance = attribute_manager.new_instance(self.class_)

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/attributes.py", line 1001, in new_instance
s._state = InstanceState(s)

 "/usr/lib/python2.4/site-packages/sqlalchemy/orm/attributes.py", line 547, in __init__
self.obj = weakref.ref(obj, self.__cleanup)
TypeError: cannot create weak reference to 'Path' object
Traceback (most recent call last):


 "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step

result = coro.send(None)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity

yield from entity.async_update_ha_state()


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in async_update_ha_state

self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 323, in _attr_setter

value = getattr(self, name)


 "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py", line 712, in entity_picture

return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)


 "/usr/lib/python3.6/re.py", line 191, in sub

return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
