Re: Python Modules

Anthony Eden <[email protected]> Fri, 04 Apr 2003 5:22:02 EST
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
I believe I have figured out how to do this.  From what I understand you
a.) need to have the Python/Lib directory somewhere on your system and
b.) you need to put a file called registry in the same directory as the
jython.jar (i.e. in the WEB-INF/lib directory) and inside you need to
specify the full path to the Python libs.  One other possible option is
to copy all Python libs into /WEB-INF/lib/Lib .  I think Jython will use
that as the default Python lib path.

Sincerely,
Anthony Eden

On Thu, 03 Apr 2003 22:09:51 -0800 Darrin Eden wrote:

> Hello JPublish Developers,
> 
> I'm getting this exception:
> 
> javax.servlet.ServletException: exception from JPython: Traceback 
> (innermost last):
>    File " ", line 1, in ?
> ImportError: no module named smtplib
> 
>          at 
> org.jpublish.servlet.JPublishServlet.doPost(JPublishServlet.java:418)
> 
> I was wondering how I install python modules?
> 
> Thanks,
> 
> -Darrin
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb: 
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/