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

Closed
cjheath opened this Issue Oct 18, 2010 · 5 comments

Projects

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/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File ".../node/tools/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File ".../node/tools/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File ".../node/tools/wafadmin/Scripting.py", line 241, in configure
conf.sub_config([''])
File ".../node/tools/wafadmin/Configure.py", line 221, in sub_config
self.recurse(k, name='configure')
File ".../node/tools/wafadmin/Utils.py", line 634, in recurse
f(self)
File ".../node/wscript", line 146, in configure
conf.check(lib='dl', uselib_store='DL')
File ".../node/tools/wafadmin/Tools/config_c.py", line 444, in check
ret = self.run_c_code(_k, *_kw)
File ".../node/tools/wafadmin/Tools/config_c.py", line 530, in run_c_code
bld.compile()
File ".../node/tools/wafadmin/Build.py", line 255, in compile
self.flush()
File ".../node/tools/wafadmin/Build.py", line 717, in flush
tg.post()
File ".../node/tools/wafadmin/TaskGen.py", line 219, in post
self.apply()
File ".../node/tools/wafadmin/TaskGen.py", line 206, in apply
v()
File ".../node/tools/wafadmin/TaskGen.py", line 464, in apply_core
node = find_resource(filename)
File ".../node/tools/wafadmin/Node.py", 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