[Problem] SyntaxError: future feature absolute_import is not defined

962 views
Skip to first unread message

Juanqui

unread,
Mar 1, 2010, 9:26:07 PM3/1/10
to TurboGears
Hey Guys,

I recently installed TurboGears 2 on my server and I am having an
issue when running the server. I get the following error when
attempting to setup:

SyntaxError: future feature absolute_import is not defined

It appears the errors is due to the Beaker package. I have updated all
the packages and I can't find the root of the problem.

TurboGears2 is installed on my CentOS 5.4 server.

Any suggestions?
Thanks!

Mike C. Fletcher

unread,
Mar 1, 2010, 10:54:43 PM3/1/10
to turbo...@googlegroups.com
absolute_import is only available on Python 2.5 or above. Your CentOS
server is likely running Python 2.4 (standard for the platform). The
syntax error should be part of a traceback that tells us which file is
doing this import, if you can tell us that, as well as what precise
version of TurboGears you are using, we should be able to track it
down. The code that is using it likely shouldn't be doing so if it's
part of TurboGears itself, as Python 2.4 is still supported. If you can
tell us *how* you installed that would likely also be useful; did you
use the RPM installer, or a virtualenv + easy_install installation?

HTH,
Mike

--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com

Reply all
Reply to author
Forward
0 new messages