Help Please: 'module' object has no attribute 'compile'

Kent Johnson kent at kentsjohnson.com
Fri Jan 6 17:28:01 EST 2006


livin wrote:
> my log...
> 
> INFO urllib.urlopen('http://192.168.1.11/hact/kitchen.asp', 
> urllib.urlencode({'Action': 'hs.ExecX10ByName+Kitchen+Lights%2C+On 
> %2C+100&x=4&y=6'}))
> INFO
>  INFO   File "Q:\python\python23.zlib\urllib.py", line 78, in urlopen
> INFO   File "Q:\python\python23.zlib\urllib.py", line 159, in open
> INFO   File "Q:\python\python23.zlib\urllib.py", line 957, in splittype
> INFO AttributeError
> INFO :
> INFO 'module' object has no attribute 'compile'

That line reads
         _typeprog = re.compile('^([^/:]+):')

Do you have a module named 're' that is shadowing the library module of 
the same name?

Kent



More information about the Python-list mailing list