Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2008-06-26 10:59:22


Tony May wrote:
> Hi Jurko,
>
> Thanks for the help. It said it passed the test:
>
> ...patience...
> ...found 1202 targets...
> ...updating 3 targets...
> msvc.link.dll bin\msvc-8.0express\debug\threading-multi\hello_ext.pyd
> Creating library
> bin\msvc-8.0express\debug\threading-multi\hello_ext.lib and
> object bin\msvc-8.0express\debug\threading-multi\hello_ext.exp
> capture-output bin\hello.test\msvc-8.0express\debug\threading-multi\hello
> 1 file(s) copied.
> **passed** bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test
> ...updated 3 targets...
>
> but when I tried to import in the python script:
>
> import hello_ext
>
> it says:
>
> Traceback (most recent call last):
> File "hello.py", line 6, in <module>
> import hello_ext
> ImportError: No module named hello_ext
>
> Is there supposed to be a hello_ext.dll in
> C:\Program
> Files\boost\boost_1_35_0\libs\python\example\tutorial\bin\msvc-8.0express\debug\threading-multi
> or
> C:\Program
> Files\boost\boost_1_35_0\libs\python\example\tutorial\bin\hello.test\msvc-8.0express\debug\threading-multi
>

By default Boost.Build deletes some binaries used in testing when the
test passes.

try deleting
bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test, adding
"-d+2" and "--preserve-test-targets" to your bjam command line, and
running the test again. Then you can see what it's doing.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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