First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 232461
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matt McHenry <gentoo@matt.mchenryfamily.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.info emerge --info text/plain Matt McHenry 2008-07-20 11:49 0000 4.00 KB Details
spambayes-1.0.4.ebuild.patch Patch to fix from __future__ imports in mail-filter/spambayes-1.0.4.ebuild patch Jesus Rivero 2008-07-21 05:35 0000 653 bytes Details | Diff
spambayes-1.0.4_import_errors_232461.patch Patch used in mail-filter/spambayes-1.0.4.ebuild new ebuild patch Jesus Rivero 2008-07-21 05:37 0000 2.41 KB Details | Diff
spambayes-1.0.4_import_errors_232461.patch Patch for mail-filter/spambayes-1.0.4 fixing 'from __future import' patch Jesus Rivero 2008-07-26 02:16 0000 2.96 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 232461 depends on: Show dependency tree
Show dependency graph
Bug 232461 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-07-20 11:44 0000
After upgrading to python 2.5, I get the following error:

$ sb_imapfilter.py
  File "/usr/bin/sb_imapfilter.py", line 93
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

Re-emerging does not help, but instead produces more similar errors:

 * Byte compiling python modules for python-2.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

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
                                                                          [ ok
]
>>> mail-filter/spambayes-1.0.4 merged.

Reproducible: Always

Steps to Reproduce:




Upstream bug is here:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1758473&group_id=61702.
 But they haven't made a release (other than alphas) that includes these
changes.  Can we get a patch and include it with the 1.0.4 ebuild?

------- Comment #1 From Matt McHenry 2008-07-20 11:49:11 0000 -------
Created an attachment (id=160912) [edit]
emerge --info

------- Comment #2 From Jesus Rivero 2008-07-21 05:35:51 0000 -------
Created an attachment (id=160977) [edit]
Patch to fix from __future__ imports in mail-filter/spambayes-1.0.4.ebuild

Ebuild patch for mail-filter/spambayes-1.0.4

Some ebuilds are going to suffer from this in Python2.5. At least is an easy,
painless fix ;D

------- Comment #3 From Jesus Rivero 2008-07-21 05:37:05 0000 -------
Created an attachment (id=160979) [edit]
Patch used in mail-filter/spambayes-1.0.4.ebuild new ebuild

Moves from __future__ import lines to a suitable place

Best regards, 

------- Comment #4 From Jesus Rivero 2008-07-26 02:16:14 0000 -------
Created an attachment (id=161383) [edit]
Patch for mail-filter/spambayes-1.0.4 fixing 'from __future import' 

I have missed scripts/sb_imapfilter.py from the list.

------- Comment #5 From Rob Cakebread 2008-07-26 02:31:41 0000 -------
Thanks for the report, Matt, added fix to CVS.
Thanks for the patches, Jesus.

First Last Prev Next    No search results available      Search page      Enter new bug