I cloned a node git repo, but the waf build tool that comes with node does not seem to work with the latest version of Python.
$ ./configure Traceback (most recent call last): File "/Users/greim/nodestuff/node/tools/waf-light", line 157, in <module> import Scripting File "/Users/greim/nodestuff/node/tools/wafadmin/Scripting.py", line 146 except Utils.WafError, e: ^ SyntaxError: invalid syntax $ which python /Library/Frameworks/Python.framework/Versions/3.0/bin/python
If I understand this comma is an obsolete syntax that doesn't work in Python 3, right?
I would prefer not to install the old version of Python just for this. Ideally, I would like to be able to create and install the latest version, and not depend on others to distribute .dmg files.
Scala and a difficult place? Recommendations?
[update] OK, so thanks to everyone who helped answer this question. Hope others find this on Google. As it turns out, I have Python 2.x on my system (it is installed by default in OS X) in / usr / bin. So the solution was to update my path (not always, just for this bash session).
$ export PATH=/usr/bin:$PATH $ ./configure $ make $ make install
TA-dah! node is installed on my system.
source share