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

livin livin at
Sat Jan 7 11:37:29 EST 2006


I beleive so... I cannot know for sure becasue the models are not 
separate... they are in the python23.zlib file... I'm no sure how to check 
the file, it looks as if it is compiled (I'm new to python so forgive my 
ignorance)


"Kent Johnson" <kent at kentsjohnson.com> wrote in message 
news:43beeb5d$1_1 at newspeer2.tds.net...
> 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