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

Install problems #1142

Closed
charlesreid1 opened this issue Dec 11, 2011 · 3 comments
Closed

Install problems #1142

charlesreid1 opened this issue Dec 11, 2011 · 3 comments
Milestone

Comments

@charlesreid1
Copy link
Contributor

Hi, I'm running into problems while installing. Using a stock Python.org Python 2.7 on Mac OS X snow leopard 10.6.8, I see problems with print() function syntax while running setup.py:

~/pkg/_sources/ipython-0.11 $ python setup.py build
File "setup.py", line 32
print(error, file=sys.stderr)
^
SyntaxError: invalid syntax

When I manually change these to remove the ", file=sys.stderr" part (from two print statements), I still run into errors:

~/pkg/_sources/ipython-0.11 $ python setup.py buildTraceback (most recent call last):
File "setup.py", line 54, in
from IPython.utils.path import target_update
File "/Users/charles/pkg/_sources/ipython-0.11/IPython/init.py", line 43, in
from .config.loader import Config
File "/Users/charles/pkg/_sources/ipython-0.11/IPython/config/loader.py", line 315
exec compile(open(self.full_filename).read(), self.full_filename, 'exec')
SyntaxError: unqualified exec is not allowed in function '_read_file_as_dict' it contains a nested function with free variables

I can't use the easy_installer, since obviously that uses an incorrect version of Python (2.6, not my Python.org version 2.7). Any help getting ipython working with Python version 2.7 would be appreciated.

@takluyver
Copy link
Member

What file did you download? It looks like you've got the Python 3 version of the 0.11 release. You need the main (Python 2) version.

@fperez
Copy link
Member

fperez commented Dec 11, 2011

You can find all of our downloads on our site.

@fperez
Copy link
Member

fperez commented Dec 11, 2011

I'm closing this as it's not really a bug with our code but rather that the OP ended up with an incorrect download for some reason. The source download on our site doesn't have that syntax.

@fperez fperez closed this as completed Dec 11, 2011
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

3 participants