Can't connect to HTTPS using sm_tool.py
haivu
Registered Users Posts: 1 Beginner grinner
First, I would like to thank John C. Ruttenberg, AKA rutt for a fantastic tool :thumb. I am new to both Python and Smugmug API and have some rusty coding experience which I am now sharpening up. When I run sm_tool.py version 1.10 under my Windows XP laptop, I get the following error:
Additional information:
I think the problem is in line 174:C:\bin\python>sm_tool create "funny pictures" --category="Other"
Traceback (most recent call last):
File "C:\bin\python\sm_tool.py", line 656, in ?
main()
File "C:\bin\python\sm_tool.py", line 641, in main
create_update(argv[2],Options(argv[3:]))
File "C:\bin\python\sm_tool.py", line 584, in create_update
smugmug = Smugmug(opts.login,opts.password)
File "C:\bin\python\sm_tool.py", line 178, in __init__
self.login()
File "C:\bin\python\sm_tool.py", line 184, in login
rep = self.sp.loginWithPassword(self.account,self.password,self.api_version)
File "C:\Python24\lib\xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "C:\Python24\lib\xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "C:\Python24\lib\xmlrpclib.py", line 1122, in request
h = self.make_connection(host)
File "C:\Python24\lib\xmlrpclib.py", line 1304, in make_connection
raise NotImplementedError(
NotImplementedError: your version of httplib doesn't support HTTPS
Exception exceptions.AttributeError: "Smugmug instance has no attribute 'session
'" in <BOUND 0x00BE5080 at instance <__main__.Smugmug of Smugmug.__del__ method>
> ignored
self.sp = ServerProxy("[URL="https://upload.smugmug.com/xmlrpc/"]https://upload.smugmug.com/xmlrpc/[/URL]")If I change the URI to "http://api.smugmug.com/hack/xmlrpc/" then the script seems to work. What do I have to do to make this work? Thank you for your help.
Additional information:
- Python version: 2.4.3
- OS: Windows XP with HOME environment variable set
- Valid format .smugmugrc file
- sm_tool.py version 1.10
0