Re: Weird AttributeError With Imports

2007-10-28 Thread Gabriel Genellina
En Sun, 28 Oct 2007 14:50:24 -0300, Juha S. <[EMAIL PROTECTED]> 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 cor

Re: Weird AttributeError With Imports

2007-10-28 Thread Juha S.
Peter Otten wrote: > Juha S. wrote: > > >> I'm getting a "AttributeError: 'module' object has no attribute 'clock'" >> when importing a module from within two packages related to the line: >> "self.lastTime = time.clock()" in the __init__() of the class Time in >> the target module. >> >

Re: Weird AttributeError With Imports

2007-10-28 Thread Peter Otten
Juha S. wrote: > I'm getting a "AttributeError: 'module' object has no attribute 'clock'" > when importing a module from within two packages related to the line: > "self.lastTime = time.clock()" in the __init__() of the class Time in > the target module. You probably have a time module that yo

Weird AttributeError With Imports

2007-10-28 Thread Juha S.
I'm getting a "AttributeError: 'module' object has no attribute 'clock'" when importing a module from within two packages related to the line: "self.lastTime = time.clock()" in the __init__() of the class Time in the target module. The module (mytime.py) sits in a package hierarchy such as the