[Tutor] import'ing problems (path)

Tim Johnson tim at johnsons-web.com
Tue Oct 5 01:24:48 CEST 2004


* Tim Johnson <tim at johnsons-web.com> [041004 15:23]:
> Hello Pythonists:
>     I have installed a python package called webware
> at the following path:
> /home/tim/downloads/python/Webware-0.8.1
> 
> I have the following python code:
> sys.path.append('/home/tim/downloads/python/Webware-0.8.1')
> print sys.path   ## shows '/home/tim/downloads/python/Webware-0.8.1'.
>                  ##   as a member of sys.path
> I need class Path which resides in
OOPS! typo here. Should be
I need class Page which resides in
/home/tim/downloads/python/Webware-0.8.1/WebKit/Page.py(pyc)
(coffee, I need coffee!)
> to import it, I use the following statement:
> from WebKit.Page import Page
> 
> and I get the following error message:
> "No module named WebKit.Page"
> 
> What am I doing wrong and what needs to be done t
> correct it?
> 
> thanks
> tim
> -- 
> Tim Johnson <tim at johnsons-web.com>
>       http://www.alaska-internet-solutions.com
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

-- 
Tim Johnson <tim at johnsons-web.com>
      http://www.alaska-internet-solutions.com


More information about the Tutor mailing list