Traceback (most recent call last):

 "/usr/local/bin/airflow", line 10, in <module>
args.func(args)

 "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 324, in initdb
utils.initdb()

 "/usr/local/lib/python2.7/dist-packages/airflow/utils.py", line 215, in initdb
models.DagBag(sync_to_db=True)

 "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 121, in __init__
self.deactivate_inactive_dags()

 "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 272, in deactivate_inactive_dags
DagModel).filter(~DagModel.dag_id.in_(active_dag_ids)).all():

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2399, in all
return list(self)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2516, in __iter__
return self._execute_and_instances(context)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2529, in _execute_and_instances
close_with_result=True)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2520, in _connection_from_session
**kw)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 882, in connection
execution_options=execution_options)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 887, in _connection_for_bind
engine, execution_options)

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 313, in _connection_for_bind
self._assert_active()

 "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 214, in _assert_active
% self._rollback_exceptionsqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (mysql.connector.errors.ProgrammingError) Failed processing pyformat-parameters; Python 'newstr' cannot be converted to a MySQL type [SQL: u'INSERT INTO dag (dag_id, is_pau
Traceback (most recent call last):


 "/home/dash/programs/Real-Time-Voice-Cloning/toolbox/__init__.py", line 81, in <lambda>

func = lambda: self.ui.play(self.ui.selected_utterance.wav, Synthesizer.sample_rate)


 "/home/dash/programs/Real-Time-Voice-Cloning/toolbox/ui.py", line 142, in play

sd.play(wav, sample_rate)


 "/usr/lib/python3.7/site-packages/sounddevice.py", line 154, in play

**kwargs)


 "/usr/lib/python3.7/site-packages/sounddevice.py", line 2417, in start_stream

**kwargs)


 "/usr/lib/python3.7/site-packages/sounddevice.py", line 1374, in __init__

**_remove_self(locals()))


 "/usr/lib/python3.7/site-packages/sounddevice.py", line 780, in __init__

'Error opening {0}'.format(self.__class__.__name__))


 "/usr/lib/python3.7/site-packages/sounddevice.py", line 2572, in _check

raise PortAudioError(errormsg, err)
sounddevice.PortAudioError: Error opening OutputStream: Invalid sample rate [PaErrorCode -9997]
