
First I posted basically this message to boost-user list on Monday 5/21 and have yet to receive any replies. If re-posting this message to a different list is inappropriate please forgive me. I do have some additional information. I installed boost 1.34.0 on a Window XP machine using mcvs 8.0 and was again able to successfully build all the boost libraries and received the same errors as on my Mac when I tried to build the boost python example. I was able to discover a rule called python-extension in the file boost_1_34_0/tools/build/v2/python.jam rule python-extension ( name : sources * : requirements * : default- build * : usage-requirements * ) { .... } IMPORT python : python-extension : : python-extension ; I am on a Mac with OS X 10.4 and trying to compile the boost/Python examples in tutorial or quickstart using Bjam v3.1.14 OS=MACOSX. I issue the following command in the boost_1_34_0/libs/python/libs/ example directory bjam --toolset=darwin test I receive the following errors: Jamroot:18: in modules.load rule python-extension unknown in module Jamfile</Users/arthurcoleman/ Boost/boost_1_34_0/libs/python/example>. /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:312: in load-jamfile /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:68: in load /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:170: in project.find /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build- system.jam:237: in load /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/modules.jam:261: in import /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/bootstrap.jam:132: in boost-build /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/boost- build.jam:7: in module scope Can someone help me since I can't figure out what I'm doing wrong. By the way, I have tried as a superuser and get the same errors. It seemed that I was able to successfully install boost from the boost.../build director with the ./configure --toolset=darwin --show- libraries ect. Thanks in advance, Arthur

on Wed May 23 2007, Arthur Coleman <banslug-AT-covad.net> wrote:
bjam --toolset=darwin test
I receive the following errors:
Jamroot:18: in modules.load rule python-extension unknown in module Jamfile</Users/arthurcoleman/ Boost/boost_1_34_0/libs/python/example>. /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:312: in load-jamfile /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:68: in load /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:170: in project.find /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build- system.jam:237: in load /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/modules.jam:261: in import /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/bootstrap.jam:132: in boost-build /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/boost- build.jam:7: in module scope
Can someone help me since I can't figure out what I'm doing wrong. By the way, I have tried as a superuser and get the same errors. It seemed that I was able to successfully install boost from the boost.../build director with the ./configure --toolset=darwin --show- libraries ect.
Thanks in advance,
On line 16 of Jamroot please insert the line import python ; and see if it then works. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Thank you Dave, I inserted "import python ;" in Jamroot in libs/python/exampe libs/ python/quickstart and libs/python/tutorial and I am now able to successfully compile the projects. I really do appreciate your help! Arthur On May 26, 2007, at 7:32 AM, David Abrahams wrote:
on Wed May 23 2007, Arthur Coleman <banslug-AT-covad.net> wrote:
bjam --toolset=darwin test
I receive the following errors:
Jamroot:18: in modules.load rule python-extension unknown in module Jamfile</Users/arthurcoleman/ Boost/boost_1_34_0/libs/python/example>. /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:312: in load-jamfile /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:68: in load /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/ project.jam:170: in project.find /Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build- system.jam:237: in load /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/modules.jam:261: in import /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../ tools/build/v2/kernel/bootstrap.jam:132: in boost-build /Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/boost- build.jam:7: in module scope
Can someone help me since I can't figure out what I'm doing wrong. By the way, I have tried as a superuser and get the same errors. It seemed that I was able to successfully install boost from the boost.../build director with the ./configure --toolset=darwin --show- libraries ect.
Thanks in advance,
On line 16 of Jamroot please insert the line
import python ;
and see if it then works.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/ listinfo.cgi/boost

on Sat May 26 2007, Arthur Coleman <banslug-AT-covad.net> wrote:
Thanks in advance,
On line 16 of Jamroot please insert the line
import python ;
and see if it then works.
I inserted "import python ;" in Jamroot in libs/python/exampe libs/ python/quickstart and libs/python/tutorial and I am now able to successfully compile the projects. I really do appreciate your help!
You're welcome! Would you mind entering a ticket for me at http://svn.boost.org? on Sat May 26 2007, Beman Dawes <bdawes-AT-acm.org> wrote:
David Abrahams wrote:
Out of idle curiosity I then ran with:
bjam toolset=msvc --verbose-test
Everything seemed to work fine and both tests reported **passed**
Sheesh. Would you mind entering a ticket for me at http://svn.boost.org?
I was a little surprised that neither test_embed nor test_ext produced .dll's.
test_ext produced a .dll with a .pyd extension.
Does that mean it is OK to static link?
Yes, depending on your needs, it may be. See http://www.boost.org/libs/python/doc/building.html#choosing-a-boost-python-l... -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

David Abrahams wrote:
On line 16 of Jamroot please insert the line
import python ;
and see if it then works.
I was getting similar errors to those reported by the OP. Adding the "import python ;" line reduced the errors, but still produced:
bjam toolset=msvc --verbose-test test Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). notice: could not find main target test notice: assuming it's a name of file to create don't know how to make <e>test ...found 1 target... ...can't find 1 target...
This is on Windows XP with VC++ 8.0 SP1. Out of idle curiosity I then ran with: bjam toolset=msvc --verbose-test Everything seemed to work fine and both tests reported **passed** I was a little surprised that neither test_embed nor test_ext produced .dll's. Does that mean it is OK to static link? --Beman
participants (3)
-
Arthur Coleman
-
Beman Dawes
-
David Abrahams