Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3210636
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:35:45+00:00 2026-05-17T14:35:45+00:00

I cloned the node git repo but the waf build tool that comes with

  • 0

I cloned the node git repo but the “waf” build tool that comes with node seems to not 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, that comma is an outdated syntax that doesn’t work on Python 3, right?

I’d rather not install an old version of Python just to do this. Ideally I’d like to be able to build and install the latest version, rather than depend on others to distribute .dmg files.

Rock and hard place? Recommendations?


[update] OK, so thanks to all who helped answer this question. Hopefully others will find this on Google. As it turns out I do have Python 2.x on my system (it comes installed by default on OS X) under /usr/bin. So the solution was to update my path (not permanently, just for this one bash session).

$ export PATH=/usr/bin:$PATH
$ ./configure
$ make
$ make install

Tada! Node is installed on my system.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T14:35:45+00:00Added an answer on May 17, 2026 at 2:35 pm

    Ithe waf project page says

    Compatibility from Python 2.3 to 3.1 is maintained (and Jython 2.5)

    I think it currently does this by running 2to3.py when unpacking so if you had run first with python2 then it might be wrong. The waf1.6 branch I think is python3 clean

    Reading the node.js code the node people expanded waf – which is not how you are meant to use waf. The idea is put the waf binary in the source code – this will expand using the correct version of python

    OSX does have python 2 so a way of running the build might be to edit the root makefile and replace the first line

    WAF=python tools/waf-light
    

    by

    WAF=/usr/bin/python tools/waf-light
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a repo (origin) on a USB key that I cloned on my
I have created a bare git repo (lets call it repo #1) and cloned
What happens when a cloned node is not attached to any DOM. Suppose I
I downloaded a trunk version of a codebase from git, and there are build
I have a file input element that needs to be cloned after the user
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost
I have a data object that is deep-cloned using a binary serialization. This data
I have a git repository which tracks an svn repository. I cloned it using
I used nvm (node version manager) to upgrade node form v0.4 to v0.6.9 I
Context I cloned a basic node-browserify boilerplate project and got it up. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.