Traceback (most recent call last):


 "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmv_cmd", line 750, in run


 "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmv_cmd", line 625, in _restore


 "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault", line 901, in restore


 "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault", line 1145, in restore_emails


 "c:\Users\toto\Dev\gmvault\build\gmv_runner\out00-PYZ.pyz\gmv.gmvault", line 84, in handle_restore_imap_error
TypeError: sequence item 0: expected string or Unicode, int found

Traceback (most recent call last):


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1994, in __call__

return self.wsgi_app(environ, start_response)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app

response = self.handle_exception(e)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception

reraise(exc_type, exc_value, tb)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_debugtoolbar/__init__.py", line 125, in dispatch_request

return view_func(**req.view_args)


 "/usr/lib/python3.5/cProfile.py", line 109, in runcall

return func(*args, **kw)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/base.py", line 69, in inner

return self._run_view(f, *args, **kwargs)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/base.py", line 368, in _run_view

return fn(self, *args, **kwargs)


 "/home/cacampbell/PycharmProjects/coniferbook/app/auth/model_views.py", line 927, in create_view

return_url=return_url)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/base.py", line 308, in render

return render_template(template, **kwargs)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/templating.py", line 134, in render_template

context, ctx.app)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask/templating.py", line 116, in _render

rv = template.render(context)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render

return self.environment.handle_exception(exc_info, True)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception

reraise(exc_type, exc_value, tb)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise

raise value.with_traceback(tb)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/model/create.html", line 3, in top-level template code

{% from 'admin/lib.html' import extra with context %} {# backward compatible #}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/master.html", line 1, in top-level template code

{% extends admin_base_template %}


 "/home/cacampbell/PycharmProjects/coniferbook/app/templates/auth/base.html", line 148, in top-level template code

<img src="{{ url_for('static', filename='images/loading.gif') }}" />


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 37, in top-level template code

{% block page_body %}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 77, in block "page_body"

{% block body %}{% endblock %}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/model/create.html", line 22, in block "body"

{% block create_form %}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/model/create.html", line 23, in block "create_form"

{{ lib.render_form(form, return_url, extra(), form_opts) }}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/runtime.py", line 551, in _invoke

rv = self._func(*arguments)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/lib.html", line 202, in template

{% call form_tag(action=action) %}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/runtime.py", line 551, in _invoke

rv = self._func(*arguments)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/lib.html", line 182, in template

{{ caller() }}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/runtime.py", line 551, in _invoke

rv = self._func(*arguments)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/lib.html", line 203, in template

{{ render_form_fields(form, form_opts=form_opts) }}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/runtime.py", line 551, in _invoke

rv = self._func(*arguments)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/lib.html", line 175, in template

{{ render_field(form, f, kwargs) }}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/jinja2/runtime.py", line 551, in _invoke

rv = self._func(*arguments)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/templates/bootstrap3/admin/lib.html", line 130, in template

{{ field(**kwargs)|safe }}


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/wtforms/fields/core.py", line 153, in __call__

return self.meta.render_field(self, kwargs)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/wtforms/meta.py", line 56, in render_field

return field.widget(field, **render_kw)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/form/widgets.py", line 28, in __call__

return super(Select2Widget, self).__call__(field, **kwargs)


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/wtforms/widgets/core.py", line 287, in __call__

for val, label, selected in field.iter_choices():


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/contrib/sqla/fields.py", line 168, in iter_choices

for pk, obj in self._get_object_list():


 "/home/cacampbell/.virtualenvs/coniferbook/lib/python3.5/site-packages/flask_admin/contrib/sqla/fields.py", line 100, in _get_object_list

query = self.query or self.query_factory()
TypeError: 'CachingQuery' object is not callable
