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__,