SyntaxError: future feature print_function is not defined on Python 2.5

1,629 views
Skip to first unread message

Michał Łowicki

unread,
Sep 22, 2011, 3:36:55 PM9/22/11
to who...@googlegroups.com
Hi!

I'm using Whoosh-2.2.2 with Python 2.5 and I get such error:

File "/home/mlowicki/apps/moneciarze/eggs/Whoosh-2.2.2-py2.5.egg/whoosh/writing.py", line 28[edytujfotke.pl:59184] out: [edytujfotke.pl:59184] out: File "/home/mlowicki/apps/moneciarze/eggs/Whoosh-2.2.2-py2.5.egg/whoosh/writing.py", line 98[edytujfotke.pl:59184] out: [edytujfotke.pl:59184] out: File "/home/mlowicki/apps/moneciarze/eggs/Whoosh-2.2.2-py2.5.egg/whoosh/searching.py", line [edytujfotke.pl:59184] out: [edytujfotke.pl:59184] out: File "/home/mlowicki/apps/moneciarze/eggs/Whoosh-2.2.2-py2.5.egg/whoosh/scoring.py", line 32 [edytujfotke.pl:59184] out: SyntaxError: future feature print_function is not defined

is there any way to fix it without upgrading python ?

--
Pozdrawiam,
Michał Łowicki

Matt Chaput

unread,
Sep 22, 2011, 5:04:08 PM9/22/11
to who...@googlegroups.com
> [edytujfotke.pl:59184] out: SyntaxError: future feature print_function is not defined
>
> is there any way to fix it without upgrading python ?

Yes, sorry, you can remove the "from __future__ import print_statement" line, or use the version of Whoosh in the repository instead of the release. The import was left over from a debug print and isn't used.

Matt

Michał Łowicki

unread,
Oct 2, 2011, 12:37:05 PM10/2/11
to who...@googlegroups.com


2011/9/22 Matt Chaput <ma...@whoosh.ca>

> [edytujfotke.pl:59184] out: SyntaxError: future feature print_function is not defined
>
> is there any way to fix it without upgrading python ?

Yes, sorry, you can remove the "from __future__ import print_statement" line, or use the version of Whoosh in the repository instead of the release. The import was left over from a debug print and isn't used.


When do you plan to release the next version? I'm using buildout for setup the project and editing Whoosh sources on production servers is a little bit problematic. Thanks in advance
 

Matt

--
You received this message because you are subscribed to the Google Groups "Whoosh" group.
To post to this group, send email to who...@googlegroups.com.
To unsubscribe from this group, send email to whoosh+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/whoosh?hl=en.




--
Pozdrawiam,
Michał Łowicki

Reply all
Reply to author
Forward
0 new messages