Re: [jToolkit-users] Problems with hello world
Brought to you by:
davidfraser,
friedelwolff
From: David F. <da...@sj...> - 2003-10-16 04:56:49
|
Greenbeard wrote: >Well I figured it out......Here is my log > >Removed ALL jtoolkit references >Downloaded the tar.gz this time >used winzip to place tar.gz file to >python\Lib\site-packages >renamed folder from jtoolkit-0.1 to jtoolkit >Restored httpd.conf as shown on webpage >created a folder called jtoolkit in my apache\htdocs >renamed __init__.py in \web to orig_init_.py >copied in the newer __init__.py I received from you >the other day >Restarted APACHE > > >ERROR> >Mod_python error: "PythonHandler jToolkit.web" > >Traceback (most recent call last): > > File "C:\Python22\Lib\mod_python\apache.py", line >335, in HandlerDispatch > result = object(req) > > File >"C:\Python22\Lib\site-packages\jToolkit\web\__init__.py", >line 93, in handler > server = getserver(modulename, instancename) > > File >"C:\Python22\Lib\site-packages\jToolkit\web\__init__.py", >line 71, in getserver > raise ImportError(errormessage) > >ImportError: Error importing module >'jToolkit.demo.helloworld': No module named DateTime >Python path is ['C:/Program Files/Apache >Group/Apache2/htdocs/jtoolkit/\\', 'C:/Program >Files/Apache Group/Apache2/htdocs/\\', >'C:\\Python22\\Lib\\site-packages\\Pythonwin', >'C:\\Python22\\Lib\\site-packages\\win32', >'C:\\Python22\\Lib\\site-packages\\win32\\lib', >'C:\\Python22\\Lib\\site-packages', >'C:\\Python22\\Lib', 'C:\\Python22\\DLLs', >'C:\\Python22\\Lib\\lib-tk', 'C:\\Program >Files\\Apache Group\\Apache2', 'C:\\Program >Files\\Apache Group\\Apache2\\bin', 'C:\\Python22'] > >============================================ >Ah HA! My mx.DateTime is under >c:\python22\Lib\site-packages\mx\DateTime - As is the >default when you install the mx base package on >Windos. So I copied the DateTime folder from the mx >package to the Site-Packages directory and BINGO > >Hello World > > > >Now I do not know why I did not get this error before >but it was definately user error I'm sure. Now we >will see what else I can figure out! > >Thanks for your help, I am sure I will be in touch ;-> > > >gb400 > > Thanks for the detailed feedback. I will look at addressing some of the issues you found in the next release... Let the list know if you need any more help as the docs from here on are very scarce! BTW, were you just trying jToolkit out or did you have a specific app in mind? Thanks David |