[Zope] Import doesn't find module

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Wed, 28 May 2003 16:12:39 +0200


a) check for PYTHONPATH
b) check if every imported subdirectory is a package (means it must have a 
__init__.py)

-aj

--On Mittwoch, 28. Mai 2003 9:09 Uhr -0500 Stacy Roberts Ladnier 
<Stacy.Roberts@noaa.gov> wrote:

> I am attempting to import a class for use and Zope complains 'no module
> named extensions.DISTINFO'.
>
>
> My Product structure is:
>
> Products
>    - Resources
>       -FGDC
>       -BIO
>       -scripts
>          -script1.py
>       -dtml
>       -www
>       -extensions
>          -DISTINFO.py which contains a class of the same name
>
> In script1.py, I have an import statement like this:
>         from Products.Resources.extensions.DISTINFO import DISTINFO
>
> Can someone please tell me what I am doing wrong here??
>
> Thanks in advance,
> Stacy
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )