boost testing uses non-existing location

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

boost testing uses non-existing location

Alexey Akimov
Dear all,

I encountered the following problem.
When I compile and try to run the python extension with bjam and boost.testing suite the latter tries to use the previous location of my python installation.
As it follows from the output the testing suit tries to run this version of python -->  /users/aa7/Python_m64/bin/python2.6, but before installing it there I had similar version
of python installed in here --> /users/aa7/bin. The last location was then completely removed, so now I am trying to use the former one. However, it looks like boost have remembered the previous location and tries to invoke the python executable from there too. This is obvious from the following line of the output:
"/users/aa7/Python_m64/bin/python2.6" "/users/aa7/bin" "test.py"   > ...
I do not have and /users/aa7/bin directory at all. What should I change to get rid of referencing to that directory? Or how should I fix the problem?

So here is the most informative part of the output:

....
gcc.link.dll bin/gcc-4.1.2/release/address-model-64/myextension.so
capture-output bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext
====== BEGIN OUTPUT ======
/users/aa7/Python_m64/bin/python2.6: can't open file '/users/aa7/bin': [Errno 2] No such file or directory

EXIT STATUS: 2
====== END OUTPUT ======

    LD_LIBRARY_PATH=/users/aa7/Soft/boost_1_39_0/bin.v2/libs/python/build/gcc-4.1.2/release/address-model-64:/users/aa7/Soft/boost_1_39_0/bin.v2/libs/regex/build/gcc-4.1.2/release/address-model-64:/users/aa7/Soft/boost_1_39_0/libs/python/example/MyExtension/bin/gcc-4.1.2/release/address-model-64:/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

    PYTHONPATH=bin/gcc-4.1.2/release/address-model-64
export PYTHONPATH
 "/users/aa7/Python_m64/bin/python2.6" "/users/aa7/bin" "test.py"   > "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output" 2>&1
    status=$?
    echo >> "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output"
    echo EXIT STATUS: $status >> "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output"
    if test $status -eq 0 ; then
        cp "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output" "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext"
    fi
    verbose=1
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat "bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed capture-output bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext...
...failed updating 1 target...
...skipped 1 target...
...updated 147 targets...



_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig