Traceback (most recent call last):


 "pyrsistent_test.py", line 5, in <module>

class MyPRecord(PRecord):


 "pyrsistent_test.py", line 6, in MyPRecord

f = field(type=Mapping)


 "/home/aaron/workspace/pyrsistent/pyrsistent/_field_common.py", line 120, in field

types = set(maybe_parse_user_type(type))


 "/home/aaron/workspace/pyrsistent/pyrsistent/_checked_types.py", line 88, in maybe_parse_user_type

'Type specifications must be types or strings. Input: {}'.format(t)
TypeError: Type specifications must be types or strings. Input: typing.Mapping

Traceback (most recent call last):


 "caldera.py", line 24, in <module>

server.run(debug=debug)


 "/opt/caldera/caldera/app/server.py", line 111, in run

database.initialize(settings['database']['key'], settings['database']['host'], settings['database']['port'])


 "/opt/caldera/caldera/app/engine/database.py", line 51, in initialize

a = next(oplog.find().sort('$natural', pymongo.DESCENDING).limit(-1))['ts']


 "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1189, in next

if len(self.__data) or self._refresh():


 "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1087, in _refresh

self.__session = self.__collection.database.client._ensure_session()


 "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1558, in _ensure_session

return self.__start_session(True, causal_consistency=False)


 "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1511, in __start_session

server_session = self._get_server_session()


 "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1544, in _get_server_session

return self._topology.get_server_session()


 "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 427, in get_server_session

None)


 "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop

self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:27020: [Errno 111] Connection refused
