Traceback (most recent call last):


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 401, in execute

exit_code = self._wrap_coverage(self._wrap_profiling, self._execute)


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 333, in _wrap_coverage

return runner(*args)


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 364, in _wrap_profiling

return runner(*args)


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 452, in _execute

return self.execute_entry(self._pex_info.entry_point)


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 549, in execute_entry

return runner(entry_point)


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 553, in execute_module

cls.demote_bootstrap()


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/pex.py", line 474, in demote_bootstrap

for module in bootstrap.demote():


 "/Users/eborgstrom/.pex/pip.pex/6bd62cbe8c9f1ae82b35f976967538908799cbd6/.bootstrap/pex/bootstrap.py", line 42, in demote

import sys
# Grab a hold of `sys` early since we'll be un-importing our module in this process.


 "/Users/eborgstrom/scratch/pex-repro/venv/lib/python2.7/site-packages/_virtualenv.py", line 97, in find_module

if fullname in _DISTUTILS_PATCH:
TypeError: argument of type 'NoneType' is not iterable

Traceback (most recent call last):


 "C:/Users/neilpei/PycharmProjects/neil-test/sql-port.py", line 22, in <module>

db.create_all()


 "D:\Tools\Anaconda2\lib\site-packages\flask_sqlalchemy\__init__.py", line 963, in create_all

self._execute_for_all_tables(app, bind, 'create_all')


 "D:\Tools\Anaconda2\lib\site-packages\flask_sqlalchemy\__init__.py", line 955, in _execute_for_all_tables

op(bind=self.get_engine(app, bind), **extra)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\sql\schema.py", line 3949, in create_all

tables=tables)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\base.py", line 1928, in _run_visitor

with self._optional_conn_ctx_manager(connection) as conn:


 "D:\Tools\Anaconda2\lib\contextlib.py", line 17, in __enter__

return self.gen.next()


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\base.py", line 1921, in _optional_conn_ctx_manager

with self.contextual_connect() as conn:


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\base.py", line 2112, in contextual_connect

self._wrap_pool_connect(self.pool.connect, None),


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\base.py", line 2147, in _wrap_pool_connect

return fn()


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 387, in connect

return _ConnectionFairy._checkout(self)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 766, in _checkout

fairy = _ConnectionRecord.checkout(pool)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 516, in checkout

rec = pool._do_get()


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 1138, in _do_get

self._dec_overflow()


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\util\langhelpers.py", line 66, in __exit__

compat.reraise(exc_type, exc_value, exc_tb)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 1135, in _do_get

return self._create_connection()


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 333, in _create_connection

return _ConnectionRecord(self)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 461, in __init__

self.__connect(first_connect_check=True)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\pool.py", line 651, in __connect

connection = pool._invoke_creator(self)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\strategies.py", line 105, in connect

return dialect.connect(*cargs, **cparams)


 "D:\Tools\Anaconda2\lib\site-packages\sqlalchemy\engine\default.py", line 393, in connect

return self.dbapi.connect(*cargs, **cparams)


 "D:\Tools\Anaconda2\lib\site-packages\MySQLdb\__init__.py", line 81, in Connect

return Connection(*args, **kwargs)


 "D:\Tools\Anaconda2\lib\site-packages\MySQLdb\connections.py", line 193, in __init__

super(Connection, self).__init__(*args, **kwargs2)
TypeError: an integer is required
