Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhel 5.4 Issue #8

Closed
promiseofcake opened this issue Aug 14, 2013 · 1 comment
Closed

Rhel 5.4 Issue #8

promiseofcake opened this issue Aug 14, 2013 · 1 comment

Comments

@promiseofcake
Copy link

I have installed via easy_install oh RHEL 5.4 and I am having an issue when I try to run cf:

Traceback (most recent call last):
File "/usr/bin/cf", line 5, in ?
pkg_resources.run_script('cf==0.40.1', 'cf')
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 407, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1090, in run_script
script_code = compile(script_text,script_filename,'exec')
File "/usr/lib/python2.4/site-packages/cf-0.40.1-py2.4.egg/EGG-INFO/scripts/cf", line 30
except ImportError as e:
^
SyntaxError: invalid syntax

Do you have any advice?

@angstwad
Copy link
Owner

Wow, I had no idea (yes, I'm that oblivious) that this issue existed.

The issue is that you're using Python 2.4, and the syntax of that bottom line:

except ImportError as e:

is not valid syntax in Python 2.4. cf requires Python 2.6/2.7, and is untested on Python 3.

cf is really old, and not maintained anymore. I highly recommend a newer, awesomer tool. See the cf readme for recommendations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants