Re: [Zope] Zope in Virtual Host on ISP
--deleted tons-o-relevance - Refer to thread for context-- Aargh! Seems like no matter what I do, I can't get past: --------- Mon Feb 1 17:42:43 1999 unable to import publish_module from ZPublisher Traceback (innermost last): File "/--directory-deleted--/Zope-1.9.0-src/pcgi/pcgi_publisher.py", line 166, in initPCGI ImportError: No module named cgi_module_publisher Mon Feb 1 17:42:56 1999 pcgi-wrapper: No such file or directory (102) failure during connect --------- Actually, it's more 'from cgi_module_publisher import publish_module'. I feel like if I see this one more time, I gonna jump off something. Fortunately, in Austin I'd have to drive somewhere for sufficient height to do any real damage. I guess the UT Tower would do. It's a good thing I'm in no mood to drive. <cha-grin> This is the farthest I seem to be able to get. As I mentioned before, I dream of the day I'm asked to authenticate. The pcgifile.py sanity checker, the pcgi.log file, the command-line pcgi output, everyhere this b*st*rd 'cgi_module_publisher' thumbs his nose at me. I realize I'm not giving much background here, but I'm kinda hoping this error is a known-problem/indicator-of-such. Any ideas? Thanks again for taking the time to help out, Chris
Mon Feb 1 17:42:43 1999 unable to import publish_module from ZPublisher Traceback (innermost last): File "/--directory-deleted--/Zope-1.9.0-src/pcgi/pcgi_publisher.py", line 166, in initPCGI
ImportError: No module named cgi_module_publisher
Chris, Zope is first attempting to find ZPublisher, and then (for backward compatibility with Bobo) trying to find cgi_module_publisher. Here's my suggestion. Drop pcgifile.py into your cgi-bin directory after: 1. modifying it's #!/usr/local/bin/python header, if necessary 2. applying the following patch attached below. Is there any possibility you have an old copy of Bobo or pcgi somewhere in your path? I realize how frustrating setting up pcgi can be, which is why I wrote pcgifile.py in the first place. For more info, see http://starship.skyport.net/crew/jbauer/persistcgi/ or email me privately. Good luck. Regards, Jeff Bauer Rubicon, Inc. --- *** old/pcgifile.py Mon Feb 1 18:17:04 1999 --- new/pcgifile.py Mon Feb 1 18:24:09 1999 *************** *** 43,63 **** def checkImports(self): try: ! from cgi_module_publisher import publish_module except ImportError: ! self.log.append("error attempting: 'from cgi_module_publisher import publish_module'") raise PcgiFileException try: ! import cgi_module_publisher, CGIResponse self.module_version.append("%-20s %-7s %s" % \ ! ('cgi_module_publisher', ! cgi_module_publisher.__version__, ! cgi_module_publisher.__file__) ) ! self.module_version.append("%-20s %-7s %s" % \ ! ('CGIResponse', ! CGIResponse.__version__, ! CGIResponse.__file__) ) self.module_version.append("%-20s %-7s %s" % ('pcgifile', __version__, --- 43,59 ---- def checkImports(self): try: ! from ZPublisher import publish_module except ImportError: ! self.log.append("error attempting: 'from ZPublisher import publish_module'") raise PcgiFileException try: ! import ZPublisher self.module_version.append("%-20s %-7s %s" % \ ! ('ZPublisher', ! ZPublisher.__version__, ! ZPublisher.__file__) ) self.module_version.append("%-20s %-7s %s" % ('pcgifile', __version__,
participants (2)
-
Chris Larson -
Jeff Bauer