woadiestyol
06-06-2009, 11:26 PM
Hey all,
I've recently been learning the fundamentals of Python, and thought I was at the point where I might try to do something other than storing poses and renaming things :) I've been reading through Dive Into Python, which has been a great resource, and was inspired by some of the HTML processing stuff to see if I could come up with something cool for Maya.
So I've been reading up on the Google Documents Data API in the hopes of creating a script to save and get Maya ASCII files directly to a user's Google Documents folder. All was going well in my testing of the API while I was using an external editor, but when I try to run some of the same pieces of code in Maya, I get this nice little error:
# Error: 'module' object has no attribute 'ssl'
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\gdata\service.py", line 843, in ClientLogin
# self.ProgrammaticLogin(captcha_token, captcha_response)
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\gdata\service.py", line 780, in ProgrammaticLogin
# headers={'Content-Type':'application/x-www-form-urlencoded'})
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\atom\http.py", line 152, in request
# connection.endheaders()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 860, in endheaders
# self._send_output()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 732, in _send_output
# self.send(msg)
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 699, in send
# self.connect()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 1135, in connect
# ssl = socket.ssl(sock, self.key_file, self.cert_file)
# AttributeError: 'module' object has no attribute 'ssl' #
I know this might be a little off the beaten path here, but I thought maybe someone around here has some experience using Python with the httplib or socket modules. The main error (I think) is that http is trying to call the ssl() function in the socket module, but it doesn't exist.
I noticed that socket itself imports _socket, and I'm guessing that's where the problem lies, because in the doc string of socket, it mentions:
ssl() -- secure socket layer support (only available if configured)
However, this is about where I'm running out of ideas. If anyone has any thoughts about this or ideas of other folks to ask, I'd appreciate it!!
I've recently been learning the fundamentals of Python, and thought I was at the point where I might try to do something other than storing poses and renaming things :) I've been reading through Dive Into Python, which has been a great resource, and was inspired by some of the HTML processing stuff to see if I could come up with something cool for Maya.
So I've been reading up on the Google Documents Data API in the hopes of creating a script to save and get Maya ASCII files directly to a user's Google Documents folder. All was going well in my testing of the API while I was using an external editor, but when I try to run some of the same pieces of code in Maya, I get this nice little error:
# Error: 'module' object has no attribute 'ssl'
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\gdata\service.py", line 843, in ClientLogin
# self.ProgrammaticLogin(captcha_token, captcha_response)
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\gdata\service.py", line 780, in ProgrammaticLogin
# headers={'Content-Type':'application/x-www-form-urlencoded'})
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\atom\http.py", line 152, in request
# connection.endheaders()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 860, in endheaders
# self._send_output()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 732, in _send_output
# self.send(msg)
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 699, in send
# self.connect()
# File "C:\Users\John\Documents\maya\scripts\googleDocSaver\httplib.py", line 1135, in connect
# ssl = socket.ssl(sock, self.key_file, self.cert_file)
# AttributeError: 'module' object has no attribute 'ssl' #
I know this might be a little off the beaten path here, but I thought maybe someone around here has some experience using Python with the httplib or socket modules. The main error (I think) is that http is trying to call the ssl() function in the socket module, but it doesn't exist.
I noticed that socket itself imports _socket, and I'm guessing that's where the problem lies, because in the doc string of socket, it mentions:
ssl() -- secure socket layer support (only available if configured)
However, this is about where I'm running out of ideas. If anyone has any thoughts about this or ideas of other folks to ask, I'd appreciate it!!
