instantiating a class

Jason Orendorff jason at jorendorff.com
Sat Mar 9 01:00:35 EST 2002


> I'm getting an AttributeError saying module lj_connect has no attribute
> lj_connect.

Probably Python isn't finding the correct lj_connect.py file.
In your script, right after you import lj_connect, try

print lj_connect.__file__

and see where the bogus module is coming from.  Then go move
or delete that file, and try again.

## Jason Orendorff    http://www.jorendorff.com/





More information about the Python-list mailing list