Python26 is required, but not checked; causes mysterious build failures #354

cjheath opened this Issue Oct 18, 2010 · 5 comments


None yet

3 participants

cjheath commented Oct 18, 2010

The configure script fails with python25. It should check you have 26 first, or at least the build instructions should be updated.

ry commented Oct 18, 2010

how does it fail?

cjheath commented Oct 18, 2010

$ ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : Traceback (most recent call last):
File ".../node/tools/waf-light", line 158, in <lt;module>gt;
Scripting.prepare(t, cwd, VERSION, wafdir)
File ".../node/tools/wafadmin/", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File ".../node/tools/wafadmin/", line 135, in prepare_impl
File ".../node/tools/wafadmin/", line 188, in main
File ".../node/tools/wafadmin/", line 241, in configure
File ".../node/tools/wafadmin/", line 221, in sub_config
self.recurse(k, name='configure')
File ".../node/tools/wafadmin/", line 634, in recurse
File ".../node/wscript", line 146, in configure
conf.check(lib='dl', uselib_store='DL')
File ".../node/tools/wafadmin/Tools/", line 444, in check
ret = self.run_c_code(_k, *_kw)
File ".../node/tools/wafadmin/Tools/", line 530, in run_c_code
File ".../node/tools/wafadmin/", line 255, in compile
File ".../node/tools/wafadmin/", line 717, in flush
File ".../node/tools/wafadmin/", line 219, in post
File ".../node/tools/wafadmin/", line 206, in apply
File ".../node/tools/wafadmin/", line 464, in apply_core
node = find_resource(filename)
File ".../node/tools/wafadmin/", line 183, in find_resource
st = Utils.h_file(path)
AttributeError: 'module' object has no attribute 'h_file'

ry commented Oct 18, 2010

I can't repeat...

cjheath commented Oct 18, 2010

If you use "sudo python_select python25" first, to ensure you're using Python 2.5? It works for me when I select python 2.6. If it makes a difference, I'm on OSX.

If you still can't reproduce it, perhaps just add a note that OSX users might need to be using Python 2.6, to help others avoid having to diagnose the problem.

@bnoordhuis bnoordhuis closed this in b66d225 Sep 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment