AttributeError: module object has no attribute

abhilash pp afilash+python at gmail.com
Tue May 20 13:52:01 EDT 2008


hai nikhil,
please check your __init__ file if you had any

cheers,
abhilash

On Tue, May 20, 2008 at 11:00 PM, Nikhil <mnikhil at gmail.com> wrote:

> I have recently written a small module. When I import the module, I always
> get the error
>
>
> only when I do
>
> >>> from local.my.module import *
>
> --
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute '/xyz/py/file'
> ---
>
>
> but when I do the below, I do not get any error.
>
> --
> >> import local.my.module
> >>
> --
>
> Any ideas on what could be wrong?
>
>
> Thanks in advance.
>
> Nikhil
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080520/d2e8af6c/attachment-0001.html>


More information about the Python-list mailing list