[python] boost 1.44 using python 3.1.2 build problem

Hi, i am under the impression boost.python supported python 3 for a while now. But trying to compile it using python 3.1.2 gives me the old errors: .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found my user-config.jam: using python : 3.1 : "C:\\Program Files\\python31\\python" : "C:\\Program Files\\python31\\include" : "C:\\Program Files\\python31\\libs" : #condition : #ext suffix ; Regards -chris

On Tue, Aug 17, 2010 at 1:39 AM, Christopher Lux <christopherlux@gmail.com> wrote:
Hi, i am under the impression boost.python supported python 3 for a while now. But trying to compile it using python 3.1.2 gives me the old errors:
I don't know much about the Py3K support, but I think the person responsible hangs out on the C++-sig; you might ask there. -- Dave Abrahams BoostPro Computing http://www.boostpro.com

On Tue, Aug 17, 2010 at 10:39 AM, Dave Abrahams <dave@boostpro.com> wrote:
On Tue, Aug 17, 2010 at 1:39 AM, Christopher Lux <christopherlux@gmail.com> wrote:
Hi, i am under the impression boost.python supported python 3 for a while now. But trying to compile it using python 3.1.2 gives me the old errors:
I don't know much about the Py3K support, but I think the person responsible hangs out on the C++-sig; you might ask there.
I do not actually think that Boost.Python support version 3, just 2.x series. I believe it was bjam that was updated to support Python 3 as it can use Python in some of its processes. I am not certain though.

OvermindDL1 wrote:
On Tue, Aug 17, 2010 at 10:39 AM, Dave Abrahams <dave@boostpro.com> wrote:
On Tue, Aug 17, 2010 at 1:39 AM, Christopher Lux <christopherlux@gmail.com> wrote:
Hi, i am under the impression boost.python supported python 3 for a while now. But trying to compile it using python 3.1.2 gives me the old errors:
I don't know much about the Py3K support, but I think the person responsible hangs out on the C++-sig; you might ask there.
I do not actually think that Boost.Python support version 3, just 2.x series.
There was GSOS project to than end; I believe it was finished successfully.
I believe it was bjam that was updated to support Python 3 as it can use Python in some of its processes. I am not certain though.
Boost.Build/Python is using 2.*, there are no plans to target 3.* at present. - Volodya

On Wed, Aug 18, 2010 at 6:29 AM, Vladimir Prus <vladimir@codesourcery.com> wrote:
I do not actually think that Boost.Python support version 3, just 2.x series.
There was GSOS project to than end; I believe it was finished successfully.
Looking at the SVN history the GSOC project was merges 11 months ago into boost.python. Now, 6 weeks ago a change was committed that seems to break the python 3 compatibility. Could someone responsible please look at the boost\python\converter\builtin_converters.hpp file to restore the compatibility? Regards -chris

Hi Christopher, Could you work out a patch for this and send it to me? I don't use Python 3 myself. If your patch doesn't break my Python 2 builds I'll check it in. Ralf ----- Original Message ---- From: Christopher Lux <christopherlux@gmail.com> To: boost@lists.boost.org Sent: Tue, August 17, 2010 2:39:58 AM Subject: [boost] [python] boost 1.44 using python 3.1.2 build problem Hi, i am under the impression boost.python supported python 3 for a while now. But trying to compile it using python 3.1.2 gives me the old errors: .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found .\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier .\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' .\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found my user-config.jam: using python : 3.1 : "C:\\Program Files\\python31\\python" : "C:\\Program Files\\python31\\include" : "C:\\Program Files\\python31\\libs" : #condition : #ext suffix ; Regards -chris _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (5)
-
Christopher Lux
-
Dave Abrahams
-
OvermindDL1
-
Ralf W. Grosse-Kunstleve
-
Vladimir Prus