Weird AttributeError With Imports

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Oct 29 02:20:49 EDT 2007


En Sun, 28 Oct 2007 14:50:24 -0300, Juha S. <jusa.sj at gmail.com> escribi�:

> Peter Otten wrote:
>> You probably have a time module that you wrote yourself and which is now
>> hiding the one in python's standard library. Was your mytime.py formerly
>> named time.py, and if so, did you remove the corresponding time.pyc?
>
> Yes, I did have mytime.py named as time.py previously. Now that I
> deleted the .pyc it seems to work fine. Thanks!

Wow! Most standard crystall balls would tell just about the time.py  
problem. Yours is certainly a very sophisticated one! It was even capable  
of detecting a rename and a forgotten .pyc file - that's far beyond the  
usual range! Congratulations!

-- 
Gabriel Genellina




More information about the Python-list mailing list