Jody
unread,Jan 25, 2012, 11:29:31 AM1/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)