Re: [Cheetahtemplate-discuss] can't import package?
Brought to you by:
rtyler,
tavis_rudd
From: Chuck E. <Chu...@ya...> - 2001-06-21 14:34:16
|
At 10:21 AM 6/21/2001 -0400, Jeff Johnson wrote: > from Cheetah.Templates.SkeletonPage import SkeletonPage >ImportError: cannot import name SkeletonPage try this: import Cheetah import Cheetah.Templates import Cheetah.Templates.SkeletonPage from Cheetah.Templates.SkeletonPage import SkeletonPage For whichever one breaks, print the dir() of the line above it. Also look for a __path__ or __file__ and print those to see where they come from. I have used Cheetah, but not directly for WebKit pages, so all I can give you is good Python debugging advice. -Chuck |