Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 2170, in _real_extract

doc = compat_etree_fromstring(webpage.encode('utf-8'))


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2539, in compat_etree_fromstring

doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/compat.py", line 2528, in _XML

parser.feed(text)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed

self._raiseerror(v)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror

raise err
ParseError: not well-formed (invalid token): line 19, column 26

Traceback (most recent call last):


 "/home/ilya/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker

result = (True, func(*args, **kwds))


 "/home/ilya/anaconda3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar

return list(map(*args))


 "<ipython-input-11-68b9f5f269e0>", line 3, in task

df:pd.DataFrame=pd.read_sql_query(select_query.format(pan=pan),connect_string)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/pandas/io/sql.py", line 332, in read_sql_query

chunksize=chunksize,


 "/home/ilya/anaconda3/lib/python3.7/site-packages/pandas/io/sql.py", line 1218, in read_query

result = self.execute(*args)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/pandas/io/sql.py", line 1087, in execute

return self.connectable.execute(*args, **kwargs)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2243, in execute

connection = self._contextual_connect(close_with_result=True)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2311, in _contextual_connect

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


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2349, in _wrap_pool_connect

e, dialect, self


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1591, in _handle_dbapi_exception_noconnection

sqlalchemy_exception, with_traceback=exc_info[2], from_=e


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_

raise exception


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2345, in _wrap_pool_connect

return fn()


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 364, in connect

return _ConnectionFairy._checkout(self)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 778, in _checkout

fairy = _ConnectionRecord.checkout(pool)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 495, in checkout

rec = pool._do_get()


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 140, in _do_get

self._dec_overflow()


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__

exc_value, with_traceback=exc_tb,


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_

raise exception


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 137, in _do_get

return self._create_connection()


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 309, in _create_connection

return _ConnectionRecord(self)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 440, in __init__

self.__connect(first_connect_check=True)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, in __connect

pool.logger.debug("Error on connect(): %s", e)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__

exc_value, with_traceback=exc_tb,


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_

raise exception


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 656, in __connect

connection = pool._invoke_creator(self)


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect

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


 "/home/ilya/anaconda3/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 490, in connect

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


 "/home/ilya/anaconda3/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in connect

conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:
sorry, too many clients already
