[Zope] no module named medusa, ZServer working on Win32 for anyone?

bkc@MurkWorks.com bkc@MurkWorks.com
Mon, 22 Feb 1999 22:32:33 -0500


I know this has been hashed around in the mailing list before and I've
looked at EVERY post about it. Unfortunately what has been said
"appears" to be for unix, and although I've tried my best to get my
start.py setup correctly, it's NO GO for me.

I've checked my PYTHONPATH, even Forced it to use various directories,
including "<base>\ZServer", etc. I've tried using the supplied python in
interactive mode and typed in various commands, I just can't get it to
grok the "from medusa import" statement.

If anyone has a working start.py and start.bat for WIN32 port of
ZServer, I'd like to see it.

I had zope .9, then installed 1.10.0pr1, then ZServer 1.0a2

Here's bin directory partial list

12/16/98  03:02p                 5,120 python.exe
12/07/98  07:12p               414,720 python15.dll


Here's my start.bat

"E:\Program Files\ZopeOne\bin\python.exe" "E:\Program
Files\ZopeOne\ZServer\start.py" %1 %2 %3 %4 %5 %6 %7 %8 %9

---

Here's the top part of my start.py, parts stolen from my existing
serve.py which seems to work ok.

#!/usr/local/bin/python1.5.1

"""Sample ZServer start script"""
import sys, os

# Have to fiddle the path for binary dist. to
# ensure the bundled python libs are used.
swhome=r'E:/Program Files/ZopeOne'
sys.path.insert(1, '%s/lib/python' % swhome)
sys.path.insert(2, '%s/lib/python1.5' % swhome)
sys.path.insert(3, '%s/lib/python1.5/plat-win' % swhome)
sys.path.insert(4, '%s' % swhome)

print 'path is ' 
print  sys.path

# configuration variables
#
IP_ADDRESS='128.153.43.10'
HOST='pit.murkworks.com'
DNS_IP='128.153.43.1'
HTTP_PORT=9673
FTP_PORT=8021
PCGI_PORT=88189
PID_FILE='Zope.pid'
MODULE='Main'
LOG_FILE='ZServer.log'

from medusa import resolver,logger,http_server,asyncore

---

Here's the output

E:\PROGRA~1\ZopeOne>"start"

E:\PROGRA~1\ZopeOne>"E:\Program Files\ZopeOne\bin\python.exe"
"E:\Program Files\
ZopeOne\ZServer\start.py"
path is
['E:\\Program Files\\ZopeOne\\ZServer', 'E:/Program
Files/ZopeOne/lib/python', '
E:/Program Files/ZopeOne/lib/python1.5', 'E:/Program
Files/ZopeOne/lib/python1.5
/plat-win', 'E:/Program Files/ZopeOne', 'E:\\Program
Files\\ZopeOne\\lib\\python
', 'E:\\Program Files\\ZopeOne\\lib\\python1.5', 'E:\\Program
Files\\ZopeOne\\li
b\\python1.5\\plat-win', 'E:\\Program
Files\\Python\\LLNLDistribution\\NUMERICAL
\\LIB', 'E:\\Program Files\\Python\\LLNLDistribution\\NUMERICAL\\PYDS',
'E:\\Pro
gram Files\\Python\\Pythonwin', 'E:\\Program Files\\Python\\win32',
'E:\\Program
 Files\\Python\\win32\\lib', 'E:\\Program Files\\Python', 'E:\\Program
Files\\Py
thon\\Lib\\plat-win', 'E:\\Program Files\\Python\\Lib', 'E:\\Program
Files\\Pyth
on\\DLLs', 'f:\\dislin\\python', '.\\DLLs', '.\\lib',
'.\\lib\\plat-win', '.\\li
b\\lib-tk', 'E:\\Program Files\\ZopeOne\\bin']
Traceback (innermost last):
  File "E:\Program Files\ZopeOne\ZServer\start.py", line 29, in ?
    from medusa import resolver,logger,http_server,asyncore
ImportError: No module named medusa

Note that ZServer is right there in the front of the list, so medusa
should be found in that directory, it's not.

Any suggestions?

Thanks...

Brad Clements
MurkWorks, Inc.
PO Box 610
Potsdam, NY 13676

315-268-1000

http://www.murkworks.com
ils://ils.murkworks.com