Hi all, I hope I'm directing this to the right group. Please
excuse the
long winded explanation but in this case I think it is
warranted.
I am trying to build Boost.Python for embedded python
scripting (I'm
already familiar with other Boost utilities, though not with
lib based
ones). I initially tried downloading and running the boost
installer,
but despite being left to run overnight, it did not seem to
complete or
download any packages successfully-probably due to company
firewall
issues. I then downloaded the latest boost source version
(1.34.1) and
extracted that. I mistakenly understood from the
Boost.Python docs that
Python 2.2 was the preferred version, and downloaded and
installed that.
Running the following:
cd C:Workboost_1_34_1libspythonexamplequickstart
C:Workboost_1_34_1bjam toolset=msvc --verbose-test
--debug-configuration test
caused an error. After some re-reading I realized that 2.2
is the lowest
possible version, but that a newer version is probably
better. I
uninstalled Python 2.2 and installed 2.5.1 instead.
Running the following did not result in any errors:
cd C:Workboost_1_34_1
C:Workboost_1_34_1bjam toolset=msvc --with-python stage
However now when I try to run the quickstart, after the
line
"capture-output
bintest_ext.testmsvc-8.0debugthreading-multitest_ext&qu
ot; is output, a
missing dll error dialog appears with the message "This
application has
failed to start because python22.dll was not found.
Re-installing the
application may fix this problem". Filemon indicates
that Python.exe is
trying to link to this dll.
I have invoked python on the commandline, and this works
fine, so it
seems that this incorrect version linking is only happening
through
boost.build.
Does anyone have any suggestions as to what may be wrong? I
have scoured
the registry and files and can't figure out what is going on
here. Any
help would be greatly appreciated.
------------------------------------------------------------
------------------------------------------
For reference, the complete output of the later quickstart
attempt follows:
------------------------------------------------------------
------------------------------------------
C:Documents and SettingsmbenicMy Documents>cd
C:Workboost_1_34_1libspythonexamplequickstart
C:Workboost_1_34_1libspythonexamplequickstart>C:Wo
rkboost_1_34_1bjam
toolset=msvc --verbose-test --debug-configuration test
notice: found boost-build.jam at
C:Workboost_1_34_1libspythonexamplequickstartboost-bu
ild.jam
notice: loading Boost.Build from
C:Workboost_1_34_1libspythonexamplequickstart......
..toolsbuildv2
notice: searching "C:WINDOWS" "C:Documents
and Settingsmbenic"
"C:Documents and Settingsmbenic"
"C:Workboost_1_34_1libspythonexamplequickstart..
/../../../tools/build/v2"
"C:/Work/boost_1_34_1/tools/build/v2/kernel"
"C:/Work/boost_1_34_1/tools/build/v2/util"
"C:/Work/boost_1_34_1/tools/build/v2/build"
"C:/Work/boost_1_34_1/tools/build/v2/tools"
"C:/Work/boost_1_34_1/tools/build/v2/new"
"C:/Work/boost_1_34_1/tools/build/v2/." for
"site-config.jam"
notice: loading site-config.jam from
C:Workboost_1_34_1libspythonexamplequickstart......
..toolsbuildv2site-config.jam
notice: searching "C:Documents and
Settingsmbenic" "C:Documents and
Settingsmbenic"
"C:Workboost_1_34_1libspythonexamplequickstart..
/../../../tools/build/v2"
"C:/Work/boost_1_34_1/tools/build/v2/kernel"
"C:/Work/boost_1_34_1/tools/build/v2/util"
"C:/Work/boost_1_34_1/tools/build/v2/build"
"C:/Work/boost_1_34_1/tools/build/v2/tools"
"C:/Work/boost_1_34_1/tools/build/v2/new"
"C:/Work/boost_1_34_1/tools/build/v2/." for
"user-config.jam"
notice: loading user-config.jam from C:Documents and
Settingsmbenicuser-config.jam
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version:
"2.5"
notice: [python-cfg] user-specified cmd-or-prefix:
"C:WorkPython25python"
notice: [python-cfg] Checking interpreter command
"C:WorkPython25python"...
notice: [python-cfg] running command 'DIR /-C /A:S
C:WorkPython25python.exe 2>&1'
notice: [python-cfg] running command
'C:WorkPython25python -c "from
sys import *; print
'version=%d.%dnplatform=%snprefix=%snexec_prefix=%snexec
utable=%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:WorkPython25python"
notice: [python-cfg] include path:
"C:WorkPython25Include"
notice: [python-cfg] library path:
"C:WorkPython25libs"
notice: [python-cfg] DLL search path:
"C:WorkPython25"
notice: [cmdline-cfg] Detected command-line request for
msvc: toolset=
"msvc"
notice: [cmdline-cfg] toolset msvc not previously
configured;
configuring now
notice: msvc-8.0 detected, command: 'C:Program
FilesMicrosoft Visual
Studio 8VCbincl.exe'
msvc: condition:
'<toolset>msvc-8.0/<architecture>/<address-mo
del>',
msvc: condition:
'<toolset>msvc-8.0/<architecture>/<address-mo
del>32',
msvc: condition:
'<toolset>msvc-8.0/<architecture>x86/<address
-model>',
msvc: condition:
'<toolset>msvc-8.0/<architecture>x86/<address
-model>32', command: 'call
"C:Program FilesMicrosoft Visual Studio
8VCvcvarsall.bat" x86 >nul
'
msvc: condition:
'<toolset>msvc-8.0/<architecture>/<address-mo
del>64',
msvc: condition:
'<toolset>msvc-8.0/<architecture>x86/<address
-model>64', command: 'call
"C:Program FilesMicrosoft Visual Studio
8VCvcvarsall.bat" x86_amd64 >nul
'
msvc: condition:
'<toolset>msvc-8.0/<architecture>ia64/<addres
s-model>', msvc:
condition:
'<toolset>msvc-8.0/<architecture>ia64/<addres
s-model>64',
command: 'call "C:Program FilesMicrosoft Visual
Studio
8VCvcvarsall.bat" x86_iPF >nul
'
notice: iostreams: not using zlib compression
notice: iostreams: not using zlib compression
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
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).
...patience...
...found 1150 targets...
...using 1 temp target...
...updating 2 targets...
...using
<pbinmsvc-8.0debugthreading-multi>extending.pyd...
capture-output
bintest_ext.testmsvc-8.0debugthreading-multitest_ext
>>>>> MISSING DLL DIALOG ENCOUNTERED
HERE<<<<<<<<
====== BEGIN OUTPUT ======
Trying:
from extending import *
Expecting nothing
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 6, in test_extending
Failed example:
from extending import *
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[0]>",
line 1, in <module>
from extending import *
ImportError: DLL load failed: The specified module could
not be found.
Trying:
hi = hello('California')
Expecting nothing
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 7, in test_extending
Failed example:
hi = hello('California')
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[1]>",
line 1, in <module>
hi = hello('California')
NameError: name 'hello' is not defined
Trying:
hi.greet()
Expecting:
'Hello from California'
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 8, in test_extending
Failed example:
hi.greet()
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[2]>",
line 1, in <module>
hi.greet()
NameError: name 'hi' is not defined
Trying:
invite(hi)
Expecting:
'Hello from California! Please come soon!'
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 10, in test_extending
Failed example:
invite(hi)
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[3]>",
line 1, in <module>
invite(hi)
NameError: name 'invite' is not defined
Trying:
hi.invite()
Expecting:
'Hello from California! Please come soon!'
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 12, in test_extending
Failed example:
hi.invite()
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[4]>",
line 1, in <module>
hi.invite()
NameError: name 'hi' is not defined
Trying:
class wordy(hello):
def greet(self):
return hello.greet(self) + ', where the weather
is fine'
Expecting nothing
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 15, in test_extending
Failed example:
class wordy(hello):
def greet(self):
return hello.greet(self) + ', where the weather
is fine'
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[5]>",
line 1, in <module>
class wordy(hello):
NameError: name 'hello' is not defined
Trying:
hi2 = wordy('Florida')
Expecting nothing
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 19, in test_extending
Failed example:
hi2 = wordy('Florida')
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[6]>",
line 1, in <module>
hi2 = wordy('Florida')
NameError: name 'wordy' is not defined
Trying:
hi2.greet()
Expecting:
'Hello from Florida, where the weather is fine'
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 20, in test_extending
Failed example:
hi2.greet()
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[7]>",
line 1, in <module>
hi2.greet()
NameError: name 'hi2' is not defined
Trying:
invite(hi2)
Expecting:
'Hello from Florida! Please come soon!'
************************************************************
**********
File
"C:Workboost_1_34_1libspythonexamplequickstartte
st_extending.py",
line 22, in test_extending
Failed example:
invite(hi2)
Exception raised:
Traceback (most recent call last):
File "C:WorkPython25libdoctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest test_extending[8]>",
line 1, in <module>
invite(hi2)
NameError: name 'invite' is not defined
1 items had no tests:
test_extending.run
************************************************************
**********
1 items had failures:
9 of 9 in test_extending
9 tests in 2 items.
0 passed and 9 failed.
***Test Failed*** 9 failures.
EXIT STATUS: 9
====== END OUTPUT ======
set
Path=C:WorkPython25;C:WorkPython25libs;C:Workboost_1_
34_1bin.v2libspythonbuildmsvc-8.0debugthreading-multi
;C:Workboost_1_34_1libspythonexamplequickstartbinmsv
c-8.0debugthreading-multi;%Path%
set PYTHONPATH=binmsvc-8.0debugthreading-multi
C:WorkPython25python "test_extending.py"
>
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext.output"
2>&1
set status=%ERRORLEVEL%
echo. >>
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext.output"
echo EXIT STATUS: %status% >>
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext.output"
if %status% EQU 0 (
copy
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext.output"
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext"
)
set verbose=1
if %status% NEQ 0 (
set verbose=1
)
if %verbose% EQU 1 (
echo ====== BEGIN OUTPUT ======
type
"bintest_ext.testmsvc-8.0debugthreading-multitest_
ext.output"
echo ====== END OUTPUT ======
)
exit %status%
...failed capture-output
bintest_ext.testmsvc-8.0debugthreading-multitest_ext...
...failed updating 1 target...
...skipped 1 target...
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|