Hello Zope Developers, Based on Arpad's experience with the error that I am having, I checked my environment variables, but found that no PYTHONPATH or PYTHONHOME variables were defined. Perhaps this is the problem, and given a different system configuration from mine when PYTHONPATH is deleted, the system defaults to a different path that works. So my question is now -- what should PYTHONPATH and PYTHONHOME be set to in order for me to publish an individual module? As always, much thanks, Adrian
Hi! Yesterday I got exactly the same errormessage. I found that, I had a PYTHONPATH env. variable that caused this. Yesterday I had no time to examin the contents of it, but after I deleted this variable it was ok. Arpad ----- Original Message ----- From: Adrian Graham <aag@stanford.edu> To: <zope-dev@zope.org> Sent: Wednesday, July 07, 1999 10:08 PM Subject: Re: [Zope-dev] Making objects publishable
Much thanks for all of the suggestions regarding simple object publishing. Unfortunately I continue to have problems.
It was suggested that the easiest way to publish an object was using the ZopeHTTPServer as follows:
ZopeHTTPServer.py [-p <port>] [-t] [-h <host address>] <path to module> var=value,]
This makes sense to me, but for some reason the ZopeHTTPServer.py was not given executable permission in my installation -- I don't know if this is typical or not. If it is then perhaps am I not supposed to run the ZopeHTTPServer.py directly? Anyway, after giving this file executable permission, I tried publishing the Hello.py file, but received the following error message:
(the current directory is: [zope root]/lib/python/) bash-2.02# ../../bin/python ../../ZopeHTTPServer/ZopeHTTPServer.py -p 9673 ../../Hello.py Traceback (innermost last): File "../../ZopeHTTPServer/ZopeHTTPServer.py", line 500, in ? if __name__=="__main__": main() File "../../ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "../../ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "../../ZopeHTTPServer/ZopeHTTPServer.py", line 429, in set_published_module import cgi_module_publisher ImportError: No module named cgi_module_publisher
This seems like some sort of configuration error to me, but I'm not really sure what I'm doing wrong. It can't seem to find the cgi_module_publisher module and neither can I.
Any suggestions would be greatly appreciated.
Adrian