Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open

encode_chunked=req.has_header('Transfer-encoding'))


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request

self._send_request(method, url, body, headers, encode_chunked)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output

self.send(msg)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send

self.connect()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect

server_hostname=server_hostname)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 407, in wrap_socket

_context=self, _session=session)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 814, in __init__

self.do_handshake()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1068, in do_handshake

self._sslobj.do_handshake()


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake

self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

Traceback (most recent call last):

 "/home/test/Desktop/sqlalbug.py", line 40, in <module>
print(session.query(MyTest).slice(0,int(2)).count())

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 3089, in count
return self.from_self(col).scalar()

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2843, in scalar
ret = self.one()

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2814, in one
ret = self.one_or_none()

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2784, in one_or_none
ret = list(self)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2855, in __iter__
return self._execute_and_instances(context)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/orm/query.py", line 2878, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)

 "/home/test/envs/vdbenv/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvaluesqlalchemy.exc.ProgrammingError: (_mysql_exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2') AS anon_1' at line 4") [SQL: u'SELECT count(*) AS count_1 \nFROM (SELECT mytest.id AS mytest_id, mytest.description AS mytest_description, mytest.quantity AS mytest_quantity \nFROM mytest \n LIMIT %s) AS anon_1'] [parameters: (2,)]