Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/socketio/client.py", line 514, in _handle_eio_message

self._handle_event(pkt.namespace, pkt.id, pkt.data)


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/socketio/client.py", line 413, in _handle_event

r = self._trigger_event(data[0], namespace, *data[1:])


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/socketio/client.py", line 455, in _trigger_event

return self.handlers[namespace][event](*args)


 "/Users/user/Documents/folderName/app/utils/socket_utils.py", line 10, in on_message

status_active = Status.query.filter_by(name='Active').first()


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py", line 514, in __get__

return type.query_class(mapper, session=self.sa.session())


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/sqlalchemy/orm/scoping.py", line 74, in __call__

return self.registry()


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/sqlalchemy/util/_collections.py", line 1001, in __call__

return self.registry.setdefault(key, self.createfunc())


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 2950, in __call__

return self.class_(**local_kw)


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py", line 141, in __init__

self.app = app = db.get_app()


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py", line 912, in get_app

'No application found. Either work inside a view function or push'
RuntimeError: No application found. Either work inside a view function or push an application context. See http://flask-sqlalchemy.pocoo.org/contexts/.

Traceback (most recent call last):


 "test_meters.py", line 329, in testmAPMeter

ap = mtr.value()


 "/Users/szagoruyko/anaconda3/lib/python3.6/site-packages/torchnet/meter/mapmeter.py", line 30, in value

return self.apmeter.value().mean()


 "/Users/szagoruyko/anaconda3/lib/python3.6/site-packages/torchnet/meter/apmeter.py", line 137, in value

ap[k] = precision[truth.byte()].sum() / max(truth.sum(), 1)
RuntimeError: Expected object of type torch.FloatTensor but found type torch.LongTensor for argument #2 'other'
