Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python] rule python-extension unknown
From: Robert MacHardy (Robert.MacHardy_at_[hidden])
Date: 2008-10-09 13:58:33


Boost Users,

        I put bjam.exe in "C:\Program Files\boost\boost_1_36_0\bin" and
added that to the PATH environment variable.
        I have been trying to execute (bjam --debug-configuration).
        The output is as follows:

C:\Program Files\boost\boost_1_36_0\libs\python\example\tutorial>bjam
--debug-co
nfiguration
notice: found boost-build.jam at C:/Program
Files/boost/boost_1_36_0/libs/python
/example/boost-build.jam
notice: loading Boost.Build from C:/Program
Files/boost/boost_1_36_0/tools/build
/v2
notice: Searching C:\WINDOWS C:\Documents and Settings\robert.machardy
C:\Docume
nts and Settings\robert.machardy C:\Program
Files\boost\boost_1_36_0\libs\python
\example\../../../tools/build/v2 C:/Program
Files/boost/boost_1_36_0/tools/build
/v2/kernel C:/Program Files/boost/boost_1_36_0/tools/build/v2/util
C:/Program Fi
les/boost/boost_1_36_0/tools/build/v2/build C:/Program
Files/boost/boost_1_36_0/
tools/build/v2/tools C:/Program
Files/boost/boost_1_36_0/tools/build/v2/contrib
C:/Program Files/boost/boost_1_36_0/tools/build/v2/. for site-config
configurati
on file site-config.jam .
notice: Loading site-config configuration file site-config.jam from
C:/Program F
iles/boost/boost_1_36_0/tools/build/v2/site-config.jam .
notice: Searching C:\Documents and Settings\robert.machardy C:\Documents
and Set
tings\robert.machardy C:\Program
Files\boost\boost_1_36_0\libs\python\example\..
/../../tools/build/v2 C:/Program
Files/boost/boost_1_36_0/tools/build/v2/kernel
C:/Program Files/boost/boost_1_36_0/tools/build/v2/util C:/Program
Files/boost/b
oost_1_36_0/tools/build/v2/build C:/Program
Files/boost/boost_1_36_0/tools/build
/v2/tools C:/Program Files/boost/boost_1_36_0/tools/build/v2/contrib
C:/Program
Files/boost/boost_1_36_0/tools/build/v2/. for user-config configuration
file use
r-config.jam .
notice: Loading user-config configuration file user-config.jam from
C:/Program F
iles/boost/boost_1_36_0/tools/build/v2/user-config.jam .
syntax error at EOF
Jamroot:18: in modules.load
rule python-extension unknown in module Jamfile</C:/Program
Files/boost/boost_1_
36_0/libs/python/example/tutorial>.
C:/Program
Files/boost/boost_1_36_0/tools/build/v2/build\project.jam:309: in loa
d-jamfile
C:/Program Files/boost/boost_1_36_0/tools/build/v2/build\project.jam:62:
in load

C:/Program
Files/boost/boost_1_36_0/tools/build/v2/build\project.jam:169: in pro
ject.find
C:/Program Files/boost/boost_1_36_0/tools/build/v2\build-system.jam:521:
in load

C:\Program
Files\boost\boost_1_36_0\libs\python\example\..\..\..\tools\build\v2/
kernel\modules.jam:281: in import
C:\Program
Files\boost\boost_1_36_0\libs\python\example\..\..\..\tools\build\v2/
kernel/bootstrap.jam:128: in boost-build
C:\Program
Files\boost\boost_1_36_0\libs\python\example\boost-build.jam:7: in mo
dule scope

Thank you,
Robert MacHardy

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Steven
Watanabe
Sent: Thursday, October 09, 2008 12:54 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [Python] rule python-extension unknown

AMDG

Robert MacHardy wrote:
> Boost Users,
>
> I am still getting the rule python-extension unknown error.
> Bjam is using the user-config.jam file in "C:\Program
> Files\boost\boost_1_36_0\tools\build\v2". I have the file configured
as
> follows:
>
> using msvc : 7.1 ;
> using python : 2.6 : "C:/Program Files/Python26";
>
> I have tried configuring the file like this with and without the
> quotation marks, forward slashes, backslashes, a trailing slash in the
> "using python" line. If I put a directory that doesn't even exist in
> the "using python" line, nothing changes, which I would hope to see a
> crash on that.
>

I presume that you are running bjam from
C:\Program Files\boost\boost_1_36_0\libs\python\example\tutorial
What exactly is the command that you are using?
Can you post the output with --debug-configuration?

The relevant line in my user-config.jam is
  using python : 2.5 : "C:/Program Files/Python25" ;
So your python initialization should work.

In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net