ssl error with v0.5

81 views
Skip to first unread message

Jody

unread,
Jan 25, 2012, 11:29:31 AM1/25/12
to PyMySQL Users
pymysql v 0.5
python version - 2.7.2
Issue occurs on both windows 7 and ubuntu server (not sure the version
- but using heroku)

I'm getting this error while trying to connect via ssl. This error
doesn't occur in v0.4.

File "build\bdist.win32\egg\pymysql\__init__.py", line 93, in
Connect
return Connection(*args, **kwargs)
File "build\bdist.win32\egg\pymysql\connections.py", line 510, in
__init__
self._connect()
File "build\bdist.win32\egg\pymysql\connections.py", line 677, in
_connect
self._request_authentication()
File "build\bdist.win32\egg\pymysql\connections.py", line 719, in
_request_authentication
self._send_authentication()
File "build\bdist.win32\egg\pymysql\connections.py", line 745, in
_send_authentication
self.socket = ssl.wrap_self.socketet(self.socket,
keyfile=self.key,
AttributeError: 'module' object has no attribute 'wrap_self'


Code snippet I'm running is here:

mysql_ssl_dict = {'key':CERT_PATH}
conn = pymysql.connect(host='<mysql host>', port=3306,
user='username', passwd=MYSQL_PW, db='dbname', ssl=mysql_ssl_dict)



Any thoughts/ideas? Thanks. (For the time being I've downgraded to
v0.4 as a workaround)

Naoki INADA

unread,
Aug 28, 2013, 11:33:26 PM8/28/13
to pymysq...@googlegroups.com
    self.socket = ssl.wrap_self.socketet(self.socket, 
keyfile=self.key,
AttributeError: 'module' object has no attribute 'wrap_self'



This should be typo of wrap_socket.
Reply all
Reply to author
Forward
0 new messages