Python error

View: New views
2 Messages — Rating Filter:   Alert me  

Python error

by Seshadri T N :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Python error

by Florian Kulzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 16, 2008 at 11:41:12 -0700, Seshadri T N wrote:

> 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

I think these three files in /usr/lib/python2.5/site-packages/spambayes/
are not part of Debian and they appear to be buggy. Maybe you can remove
the files and/or whatever package put them their, or at least you could
try to hide them temporarily so that the installation script stops
trying to byte-compile them.

--
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...