Re: [Zope] - Stupid questions
Did you use Python 1.5.1 to run wo_pcgi? The Python used to run this script must be the Python used to run the app. Jim Mike Pelletier wrote:
I've got a problem installing Zope. I think it's related to my python installation rather than a Zope specific problem, but I've never run into this before. The install (wo_pcgi) works fine, but when I try to serve, I get an ImportError on the .so's (Bad magic number!) like so:
File "serve.py", line 92, in ? ZopeHTTPServer.main(args) File "/usr/home/mike/Zope-1.9b1-src/ZopeHTTPServer/ZopeHTTPServer.py", line 454, in main start(module_file,host,port,threading,env) File "/usr/home/mike/Zope-1.9b1-src/ZopeHTTPServer/ZopeHTTPServer.py", line 405, in start set_published_module(module_file,BoboRequestHandler,env) File "/usr/home/mike/Zope-1.9b1-src/ZopeHTTPServer/ZopeHTTPServer.py", line 401, in set_published _module __import__(name) # to catch problem modules right away File "/usr/home/mike/Zope-1.9b1-src/lib/python/Main.py", line 90, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/usr/home/mike/Zope-1.9b1-src/lib/python/BoboPOS/__init__.py", line 91, in ? import SingleThreadedTransaction, Persistence, PickleDictionary File "/usr/home/mike/Zope-1.9b1-src/lib/python/BoboPOS/SingleThreadedTransaction.py", line 110, i n ? from PickleDictionary import PickleDictionary File "/usr/home/mike/Zope-1.9b1-src/lib/python/BoboPOS/PickleDictionary.py", line 91, in ? import marshal,time,Persistence,SimpleDB, PickleJar File "/usr/home/mike/Zope-1.9b1-src/lib/python/BoboPOS/SimpleDB.py", line 104, in ? from cPickle import Pickler, Unpickler ImportError: bad magic number in "/usr/home/mike/Zope-1.9b1-src/lib/python/cPickle.so"
I have got cPickle in my python libraries, so I just removed that .so, and it died on importing Aquisition.so, which I haven't already got. Anyone know what's wrong?
-- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 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.
On Tue, 8 Dec 1998, Jim Fulton wrote:
Did you use Python 1.5.1 to run wo_pcgi? The Python used to run this script must be the Python used to run the app.
Yes. The problem turned out to be that the new extentions were compiled in ELF format while my interpreter was still in a.out. I upgraded my interpreter and leapt that little hurdle. Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations
participants (2)
-
Jim Fulton -
Mike Pelletier