Hi. These will probably be simple ones, but I'd appreciate any help. My system is a Sun sparc server running Solaris7 and Python1.5.1. Installed Apache1.3.3 (first time for me) and ran the w_pcgi.py script, which seemed to work correctly. NEWBIE QUESTION I: Exactly where do you put the mod_rewrite config info? I tried putting it in the normal three .conf files and got errors. I DID compile the server with the mod_rewrite included. Decided to try out the system anyway, running the http://myservername:80/cgi-bin/Zope/manage command and got errors (Can't remember the exact one). I checked the pcgi.log file, and noticed that I was getting tracebacks indicating... "File "/export/home/pulintz/Zope-1.9b1-src/lib/python/BoboPOS/SimpleDB.py", line 227, in open except: raise IOError, 'could not open ' + file_name ImportError: (<class exceptions.IOError at ab3d8>, 'could not open /export/home/pulintz/Zope-1.9b1-src/var/Data.bbb.trans')" So I changed the permissions on the Data.* files /var directory (yes the var directory had full permissions), and got the following traceback error... File "/export/home/pulintz/Zope-1.9b1-src/lib/python/Products/sample/Product.py", line 24, in ? import OFS.SimpleItem, Persistence, Acquisition, AccessControl.Role ImportError: (<class exceptions.ImportError at ab540>, 'No module named Persistence') Went into the Product.py file and changed "Persistence" to "BoboPOS.Persistence", and tried to bring up zope in the browser again. I got the authentication window! But I couldn't authenticate, getting the error message concerning the authentication headers. Around that time, the email from Jeff Bauer came thru indicating that removing the pcgi.* files from the /var directory might be good, so I did that, and that's all I remember doing at that point. But the next time I tried to bring up Zope, I got the "!Temporarily Unavailable" message, with the message "(103) unable to verify if process is running" Drag... Guess I've gotta go and read those documents on Jeff's site about pcgi. Running the pcgifile.py from the /cgi-bin gives... Python 1.5.1 (#1, Oct 24 1998, 01:21:21) [GCC 2.8.1] Apache/1.3.3 (Unix) PCGI info file: /export/home/pulintz/Zope-1.9b1-src/Zope.cgi PCGI wrapper: /export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi-wrapper error attempting: 'from cgi_module_publisher import publish_module' status: FAILURE /export/home/pulintz/Zope-1.9b1-src/Zope.cgi #!/export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/export/home/pulintz/Zope-1.9b1-src/lib/python/Main.py PCGI_PUBLISHER=/export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_SOCKET_FILE=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.soc PCGI_PID_FILE=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.pid PCGI_ERROR_LOG=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/export/home/pulintz/Zope-1.9b1-src So this is apparently an import problem, but I haven't been able to figure out how to fix it... I'll be reading thru more of Jeff's documentation, but any advice in the meantime would be appreciated (besides "You're not worthy-- go back to Perl") --P _________________________________________________________________________ Peter Ulintz Systems Research Programmer Andrews Lab -- Biochemistry University of Michigan pulintz@umich.edu 734.936.1137
Peter J Ulintz wrote:
(snip)
File "/export/home/pulintz/Zope-1.9b1-src/lib/python/Products/sample/Product.py", line 24, in ? import OFS.SimpleItem, Persistence, Acquisition, AccessControl.Role ImportError: (<class exceptions.ImportError at ab540>, 'No module named Persistence')
Went into the Product.py file and changed "Persistence" to "BoboPOS.Persistence", and tried to bring up zope in the browser again. I got the authentication window!
How did you happen to have the sample product installed? It doesn't look like you started with a vanilla Zope source release. It looks like you found a bug in the sample product. The sample product was released prior to Zope and hasn't been updated to work with Zope. (In particular, Zope uses BoboPOS as a package, while Principia, for which the samp[le product was written, used BoboPOS as a collection of modules.) Your fix to it was correct. :) We'll update the sample product and release ir as soon as possible. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
"Jim" == Jim Fulton <jim.fulton@Digicool.com> writes:
Jim> Peter J Ulintz wrote: >> Went into the Product.py file and changed "Persistence" to >> "BoboPOS.Persistence", and tried to bring up zope in the browser again. >> I got the authentication window! Jim> (In particular, Zope uses BoboPOS as a package, while Principia, Jim> for which the samp[le product was written, used BoboPOS as a Jim> collection of modules.) Your fix to it was correct. :) We'll Jim> update the sample product and release ir as soon as possible. Jim, What is the difference between BoboPOS.Persistence.Persistent and Globals.Persistent? I made the later change to fix the sample product here. Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@calendar.com | Musi-Cal: http://concerts.calendar.com/ 518-372-5583
participants (3)
-
Jim Fulton -
Peter J Ulintz -
skip@calendar.com