I had a python script that passes a local file as a parameter that executes perfectly on a linux machine. The same script when ported over to Windows didn’t work, returning an error:
urllib2.URLError:
Eventually I had to substitute the relative path by the absolute path, and that too in a special format:
wsdl_file = 'file:///C:/Users/varun.verma/Work/Company_Enterprise_Sandbox.wsdl.xml'
I am sure there’s a better way to access a file using relative path, but just adding some notes here for now.
Advertisements