[Zope] ImportError: No module named parser

Sergei Barbarash sgt@russ.ru
Wed, 12 May 1999 22:44:26 +0400


Hello,

I can't make Zope run. It complains about not finding module names 'parser'. I 
searched for this bug on the bug-tracking page, and it says it's fixed.

My machine is running FreeBSD 3.1-STABLE with python 1.5.2

Same effect with both Zope 1.10.2 and 1.11.0pr1.

For those willing to help, I append the whole error message.

Thanks in advance,

-- Sergei

localhost.fep.ru - - [12/May/1999 21:47:00] "GET /manage HTTP/1.0" 401 -
localhost.fep.ru - - [12/May/1999 21:47:11] "GET /manage HTTP/1.0" 200 -
localhost.fep.ru - - [12/May/1999 21:47:11] "GET /manage_menu HTTP/1.0" 500 -
Traceback (innermost last):
  File "/usr/home/sgt/build/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", 
line 388, in handle_request
    self.process_request(request, client_address)
  File "/usr/local/lib/python1.5/SocketServer.py", line 239, in process_request
    self.finish_request(request, client_address)
  File "/usr/local/lib/python1.5/SocketServer.py", line 243, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python1.5/SocketServer.py", line 366, in __init__
    self.handle()
  File "/usr/local/lib/python1.5/BaseHTTPServer.py", line 258, in handle
    method()
  File "/usr/home/sgt/build/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", 
line 292, in do_GET
    self.publish_module()
  File "/usr/home/sgt/build/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", 
line 310, in publish_module
    environ=self.get_environment())
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py", 
line 878, in publish_module
    debug=debug)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py", 
line 590, in publish
    else:     result=apply(object,args)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/Globals.py", line 228, 
in __call__
    (self,)+args[1:],kw)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Stri
ng.py", line 454, in __call__
    self.cook()
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Stri
ng.py", line 376, in cook
    self.blocks=self.parse(self.read())
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Stri
ng.py", line 223, in parse
    tag, l, args, command)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Stri
ng.py", line 271, in parse_block
    section.blocks=self.parse(text[:l],sstart)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Stri
ng.py", line 226, in parse
    if command is Var: r=command(args, self.varExtra(tagre))
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Var.
py", line 223, in __init__
    name, expr = name_param(args,'var',1)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Util
.py", line 319, in name_param
    expr=Eval(name, expr_globals)
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/VSEval.
py", line 151, in __init__
    if gparse is None: import gparse
  File "/usr/home/sgt/build/Zope-1.10.2-src/lib/python/DocumentTemplate/gparse.
py", line 86, in ?
    import sys, parser, symbol, token
ImportError: No module named parser
localhost.fep.ru - - [12/May/1999 21:47:13] "GET /manage_main HTTP/1.0" 500 -
localhost.fep.ru - - [12/May/1999 21:47:19] "GET /manage_menu HTTP/1.0" 500 -
localhost.fep.ru - - [12/May/1999 21:47:21] "GET /manage_main HTTP/1.0" 500 -