Traceback (most recent call last):


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_appbuilder/security/sqla/manager.py", line 99, in create_db

engine = self.get_session.get_bind(mapper=None, clause=None)


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/sqlalchemy/orm/scoping.py", line 163, in do

return getattr(self.registry(), name)(*args, **kwargs)


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/sqlalchemy/util/_collections.py", line 1022, in __call__

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


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 3286, in __call__

return self.class_(**local_kw)


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 138, in __init__

bind = options.pop('bind', None) or db.engine


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 943, in engine

return self.get_engine()


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 962, in get_engine

return connector.get_engine()


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 555, in get_engine

options = self.get_options(sa_url, echo)


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 570, in get_options

self._sa.apply_driver_hacks(self._app, sa_url, options)


 "/home/username/.virtualenvs/venv/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 883, in apply_driver_hacks

if sa_url.drivername.startswith('mysql'):
AttributeError: 'NoneType' object has no attribute 'drivername'


Traceback (most recent call last):


 "/opt/anaconda3/lib/python3.7/site.py", line 168, in addpackage

exec(line)


 "<string>", line 1, in <module>


 "<frozen importlib._bootstrap>", line 580, in module_from_spec

AttributeError: 'NoneType' object has no attribute 'loader'
