
Traceback (most recent call last):


 "/home/travis/build/hugovk/pypistats/.tox/py39/lib/python3.9/site-packages/setuptools/installer.py", line 128, in fetch_build_egg

subprocess.check_call(cmd)


 "/opt/python/3.9-dev/lib/python3.9/subprocess.py", line 372, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/home/travis/build/hugovk/pypistats/.tox/py39/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp5dnb6xs7', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

Traceback (most recent call last):


 "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path

module = self._get_module_from_name(name)


 "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name

__import__(name)


 "/home/ispardoa/ok/open-event-server/tests/unittests/api/validation/test_discount_codes.py", line 3, in <module>

from app import current_app as app


 "/home/ispardoa/ok/open-event-server/app/__init__.py", line 153, in <module>

current_app, manager, database, jwt = create_app()


 "/home/ispardoa/ok/open-event-server/app/__init__.py", line 71, in create_app

BlueprintsManager.register(app)


 "/home/ispardoa/ok/open-event-server/app/views/__init__.py", line 126, in register

admin.add_view(AdminModelView(model, db.session))


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/contrib/sqla/view.py", line 329, in __init__

menu_icon_value=menu_icon_value)


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/model/base.py", line 782, in __init__

self._refresh_cache()


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/model/base.py", line 859, in _refresh_cache

self._list_columns = self.get_list_columns()


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/model/base.py", line 993, in get_list_columns

only_columns=self.column_list or self.scaffold_list_columns(),


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/contrib/sqla/view.py", line 415, in scaffold_list_columns

for p in self._get_model_iterator():


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/flask_admin/contrib/sqla/view.py", line 351, in _get_model_iterator

return model._sa_class_manager.mapper.iterate_properties


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/sqlalchemy/orm/mapper.py", line 1875, in iterate_properties

configure_mappers()


 "/home/ispardoa/ok/open-event-server/lib/python3.5/site-packages/sqlalchemy/orm/mapper.py", line 2870, in configure_mappers

raise e
sqlalchemy.exc.InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: 'Mapper|Event|events'. Original exception was: When initializing mapper Mapper|Event|events, expression 'Track' failed to locate a name ("name 'Track' is not defined"). If this is a class name, consider adding this relationship() to the <class 'app.models.event.Event'> class after both dependent classes have been defined.
