/ Published in: Python
Hello,
I am just new to Python, I have failed to resolve this Windows (Python Idle). The doc's point to this format, but I continually get the following error:
urlencode missing attribute
Traceback (most recent call last):
File "C:\Documents and Settings\My Documents\Python-dir\TEST-P1.py", line 15, in
data = headers + urllib.urlencode(body)
AttributeError: 'module' object has no attribute 'urlencode'
Checked for modules with the same name and Cygwin does not generate this error.
I am just new to Python, I have failed to resolve this Windows (Python Idle). The doc's point to this format, but I continually get the following error:
urlencode missing attribute
Traceback (most recent call last):
File "C:\Documents and Settings\My Documents\Python-dir\TEST-P1.py", line 15, in
data = headers + urllib.urlencode(body)
AttributeError: 'module' object has no attribute 'urlencode'
Checked for modules with the same name and Cygwin does not generate this error.