[Product-Developers] Problem importing modules within a Product
Markus Bleicher
plone-products at markusbleicher.de
Fri Feb 15 23:31:27 UTC 2008
Ryan Smith wrote:
> I have a seperate .py file that contains a set of modules I am using. I have
> imported these modules without a problem in my PAS Plugin, and my modified
> version of CMFPlone/CatalogTool.py. I also want to use these modules in an
> archetype product I am creating, however I am having trouble importing. Is
> there something that would make this product different?
>
> This is the line causing me problems
> from Products.MyFolder.MyFile import myModule
Usually modules are files in python, so this looks strange.
Maybe it should read
from Products.MyFolder.MyModule import myClass?
Markus
>
> This gives the following error message -
> ImportError: cannot import name myModule
>
> Like I said, this is only a problem in this product. Any suggestions would
> be a great help.
More information about the Product-Developers
mailing list