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

python3 install syntax errors (OS X 10.8.4) #3900

Closed
adamkovics opened this issue Aug 4, 2013 · 4 comments
Closed

python3 install syntax errors (OS X 10.8.4) #3900

adamkovics opened this issue Aug 4, 2013 · 4 comments
Milestone

Comments

@adamkovics
Copy link

I've did a completely fresh install on OS X 10.8.4, starting with easy_install-3.3 of the following: readline, pyzmq, jinja2, and tornado

I got the most recent matplotlib from github and did a few other things to get matplotlib to work with python3, which works fine. It's python version

Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)

On install with, $ sudo python3 setup.py install, I got syntax errors for print and eval statements (the ones that all work with python2.7). Like the following:

SyntaxError: invalid syntax

File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/ipython-1.0.0_dev-py3.3.egg/IPython/utils/pickleshare.py", line 141
print "Corrupt",f,"deleted - hset is not threadsafe!"
^
SyntaxError: invalid syntax

File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/ipython-1.0.0_dev-py3.3.egg/IPython/utils/py3compat.py", line 100
exec compile(f.read(), fname, 'exec') in glob, loc
^
SyntaxError: invalid syntax

File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/ipython-1.0.0_dev-py3.3.egg/IPython/utils/traitlets.py", line 904
default_value = 0L
^
SyntaxError: invalid syntax

File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/ipython-1.0.0_dev-py3.3.egg/IPython/utils/tests/test_text.py", line 48
print "Columnize displayed something lager than displaywidth : %s " % longer_line
^
SyntaxError: invalid syntax

File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/ipython-1.0.0_dev-py3.3.egg/IPython/utils/tests/test_traitlets.py", line 683
_bad_values.extend([10L, -10L, 10_sys.maxint, -10_sys.maxint])
^
SyntaxError: invalid syntax

Is there something I'm missing for back-compatibility with this syntax? I can dump my stdout if that helps with the specifics.

Thanks for any help.

@minrk
Copy link
Member

minrk commented Aug 4, 2013

How did you easy_install IPython dev?

@minrk
Copy link
Member

minrk commented Aug 4, 2013

ignore that, just re-read. Make sure the build directory is empty before doing setup.py install with Python 3, and try again.

@adamkovics
Copy link
Author

That worked. Thank you for the fast response!

@ivanov
Copy link
Member

ivanov commented Aug 5, 2013

sounds like all is peachy, closing!

@ivanov ivanov closed this as completed Aug 5, 2013
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