Problem : ImportError: no module named calendar
Hi,
I was trying to get this tutorial(http://seanmcgrath.blogspot.com/JythonWebAppTutorialPart1.html) woking,
Even i have import the clalendar package as shown below, when trying to dsiplay the calendar like:
localhost:8080/JythonServlet3.py, i am getting the error:
Traceback (innermost last):
File “C:tomcatsjakarta-tomcat-5.0.28webappsjythondemoJythonServlet3.py”, line 1, in ?
ImportError: no module named calendar
Note: i was able to display without problem the calendar on command line
Solution: ImportError: no module named calendar
Did you copy the Jython ‘lib’ directory into your Tomcat environment? See the piece of the tutorial where it says “You should at this stage have the following directory structure”.