python is a complete amateur, but I've solved it, so make a note.
urlparse
AttributeError: 'tuple' object has no attribute 'scheme'
The script that was running in Python 2.6 does not work in 2.4 with the above error.
I found this diff when I googled it, and it worked with similar modifications.
http://code.google.com/p/pysimplesoap/issues/detail?id=53 http://code.google.com/p/pysimplesoap/source/diff?spec=svn80841894d88d2185751cbacd6eecea2e01e9daaa&name=80841894d88d&r=80841894d88d2185751cbacd6eecea2e01e9daaa&format=side&path=/pysimplesoap/client.py
Before correction
from urlparse import urlparse
...
o = urlparse(url)
if not o.scheme in ('http','https', 'file'):
...
if o.scheme == 'file':
Revised
from urlparse import urlsplit
...
url_scheme, netloc, path, query, fragment = urlsplit(url)
if not url_scheme in ('http','https', 'file'):
...
if url_scheme == 'file':
Recommended Posts