[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Python error



This is the error that I get on my lenny machine when updating. I have both python 2.4 and 2.5 currently installed.  It would be greatly appreciated if someone could give me pointers on rectifying this error.

<SNIP>

Setting up python (2.5.2-1) ...
running python rtupdate hooks for python2.5...
Compiling /usr/lib/python2.5/site-packages/spambayes/Corpus.py ...
  File "/usr/lib/python2.5/site-packages/spambayes/Corpus.py", line 82
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /usr/lib/python2.5/site-packages/spambayes/FileCorpus.py ...
  File "/usr/lib/python2.5/site-packages/spambayes/FileCorpus.py", line 85
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /usr/lib/python2.5/site-packages/spambayes/message.py ...
  File "/usr/lib/python2.5/site-packages/spambayes/message.py", line 78
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

pycentral: pycentral updatedefault: error byte-compiling files (49)
pycentral updatedefault: error byte-compiling files (49)
error running python rtupdate hook pycentral
Updating *.pc symlinks for python-gst0.10...
dpkg: error processing python (--configure):
 subprocess post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of hplip:
 hplip depends on python (>= 2.5); however:
  Package python is not configured yet.
 hplip depends on python (<< 2.6); however:
  Package python is not configured yet.
 hplip depends on python (>= 2.4.4~c1); however:
  Package python is not configured yet.
dpkg: error processing hplip (--configure):

<SNIP>


Thanks
Seshadri

Reply to: