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

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

livin wrote:
> my log...
> INFO urllib.urlopen('', 
> urllib.urlencode({'Action': 'hs.ExecX10ByName+Kitchen+Lights%2C+On 
> %2C+100&x=4&y=6'}))
>  INFO   File "Q:\python\python23.zlib\", line 78, in urlopen
> INFO   File "Q:\python\python23.zlib\", line 159, in open
> INFO   File "Q:\python\python23.zlib\", 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?


More information about the Python-list mailing list