From boost-users Wed Aug 26 15:46:06 2009 From: Philippe Fremy Date: Wed, 26 Aug 2009 15:46:06 +0000 To: boost-users Subject: Re: [Boost-users] Problem detecting python Message-Id: <4A9558BE.4010103 () freehackers ! org> X-MARC-Message: https://marc.info/?l=boost-users&m=125133456915303 Vladimir Prus wrote: > Philippe Fremy wrote: > >> Hi, >> >> bjam does not seem to pick my python installation on windows. >> >> This is running on Windows XP, toolset gcc, boost 1.39, compiling from >> source with no changes. >> >> D:\program\boost_1_39_0>bjam --debug-configuration -d+2 --debug-building >> [...] >> notice: [python-cfg] running command '"C:\Python25\python" -c "from sys >> import *; print >> 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % >> (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)" >> 2>&1'notice: [python-cfg] ...does not invoke a working interpreter >> >> notice: [python-cfg] No working Python interpreter found. >> >> The strange thing is that if I run the same command line, it works >> perfectly: >> D:\program\boost_1_39_0>"C:\Python25\python" -c "from sys import *; >> print >> 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % >> (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)" >> 2>&1 >> version=2.5 >> >> platform=win32 >> >> prefix=C:\Python25 >> >> exec_prefix=C:\Python25 >> >> executable=C:\Python25\python.exe >> >> >> Any idea what confuses bjam ? >> >> I could not find any log file to see more details of what is going wrong... > > Could you please try 1.40 alpha: > > http://boost.cowic.de/rc/ > > There are different next steps depending on whether it works or not. It works with 1.40 ! notice: [python-cfg] running command '"C:\Python25\python" -c "from sys import *; print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)" 2>&1'notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "C:\Python25\python" notice: [python-cfg] include path: "C:\Python25\Include" notice: [python-cfg] library path: "C:\Python25\libs" notice: [python-cfg] DLL search path: "C:\Python25" Now, I am seeing a big set of compilation errors: C:/Python25/Include/longobject.h:47: error: `__int64' does not name a type In file included from ./boost/python/converter/arg_to_python.hpp:17, from ./boost/python/call.hpp:15, from ./boost/python/object_core.hpp:12, from ./boost/python/object.hpp:9, from ./boost/python/list.hpp:10, from libs\python\src\list.cpp:5: ./boost/python/converter/builtin_converters.hpp:119: error: missing `>' to terminate the template argument list This is stock python 2.5 with mingw gcc 3.4.2 . Should I upgrade gcc ? Or is stock python incompatible with mingw ? cheers, Philippe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users