[Moin-user] AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'

Javier Lopez Cacheiro jlopez at cesga.es
Thu Nov 3 01:13:34 EST 2005


Hi,
I am trying to install MoinMoin 1.5.0beta1 but in the line:
"from MoinMoin.request import RequestCGI"
of the moin.cgi script I get the following error:
----
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/request.py", 
line 11, in ?
    from MoinMoin import config, wikiutil, user
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/user.py", 
line 17, in ?
    PICKLE_PROTOCOL = pickle.HIGHEST_PROTOCOL
AttributeError: 'module' object has no attribute 'HIGHEST_PROTOCOL'
----

During the installation I also got some warnings and a syntax error:
----
[moin at www2 moin-1.5.0beta1]$ python setup.py --quiet install 
--prefix=/home/moin/local/moin-1.5.0/  --record=install.log
<string>:45: Warning: 'yield' will become a reserved keyword in the future
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/lupy.py", 
line 45
    yield v
          ^
SyntaxError: invalid syntax
<string>:102: Warning: 'yield' will become a reserved keyword in the future
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/logfile/logfile.py", 
line 102
    yield result
               ^
SyntaxError: invalid syntax
<string>:17: Warning: 'yield' will become a reserved keyword in the future
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/support/lupy/index/documentwriter.py", 
line 17
    yield m.group().lower()
          ^
SyntaxError: invalid syntax
<string>:218: Warning: 'yield' will become a reserved keyword in the future
  File 
"/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/MoinMoin/support/lupy/index/segmentmerger.py", 
line 218
    yield self.position
             ^
SyntaxError: invalid syntax
warning: install: modules installed to 
'/home/moin/local/moin-1.5.0//lib/python2.2/site-packages/', which is 
not in Python's module search path (sys.path) -- you'll have to change 
the search path yourself
----

I am able to run versions 1.3.0 and 1.4.0 without problems. What could 
be the problem with version 1.5.0beta1?

Thanks,
Javier





More information about the Moin-user mailing list