nagyistge / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

‘object_base_initializer’ was not declared in this scope #176

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sudo python setup.py build

What is the expected output? What do you see instead?
It should build the PyV8 lib. Instead, I'm getting the following error:

/usr/include/boost/preprocessor/iteration/detail/local.hpp:79:   instantiated 
from here
/usr/include/boost/python/detail/make_tuple.hpp:25: error: 
‘PyTuple_SET_ITEM’ was not declared in this scope
In file included from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from src/Utils.h:46,
                 from src/Utils.cpp:5:
/usr/include/boost/python/object_core.hpp: In constructor 
‘boost::python::api::object::object(const T&) [with T = 
boost::python::tuple]’:
/usr/include/boost/python/numeric.hpp:121:   instantiated from ‘void 
boost::python::numeric::array::resize(const Sequence&) [with Sequence = 
boost::python::tuple]’
/usr/include/boost/preprocessor/iteration/detail/local.hpp:37:   instantiated 
from here
/usr/include/boost/python/object_core.hpp:326: error: 
‘object_base_initializer’ was not declared in this scope
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?
Ubuntu 10.04, but with Python2.7 as default Python interpreter.

Please provide any additional information below.

To replace the Python version I followed these steps but with 2.7:
http://tareqalam.wordpress.com/2008/11/28/change-the-default-python-version-in-u
buntu/
(I don't think it has anything to do with the error.)

Original issue reported on code.google.com by RonenN...@gmail.com on 18 May 2013 at 1:32

GoogleCodeExporter commented 8 years ago
Which boost version that you are using? It seems boost is not suitable

Original comment by flier...@gmail.com on 20 May 2013 at 12:43

GoogleCodeExporter commented 8 years ago
You are right, my libboost was for python 2.6..
My bad :)

Original comment by RonenN...@gmail.com on 20 May 2013 at 2:09

GoogleCodeExporter commented 8 years ago
:)

Original comment by flier...@gmail.com on 20 May 2013 at 2:19

GoogleCodeExporter commented 8 years ago
Hi
I have the same problem, but I don't know how to get liboost for python 2.7
any help

Original comment by waelhamd...@gmail.com on 18 Mar 2015 at 12:35