[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] boost testing uses non-existing location
From:       Alexey Akimov <alexey.akimov85 () gmail ! com>
Date:       2011-07-10 15:01:35
Message-ID: CACneQdNA_pkQj-C4zFd1B6PoO05A5zJkph+Upv9pb6xRKMo00g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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/releas \
e/address-model-64:/users/aa7/Soft/boost_1_39_0/bin.v2/libs/regex/build/gcc-4.1.2/rele \
ase/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...


[Attachment #5 (text/html)]

Dear all,<br><br>I encountered the following problem.<br>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.<br>As it follows from the output the \
testing suit tries to run this version of python --&gt;  \
/users/aa7/Python_m64/bin/python2.6, but before installing it there I had similar \
version<br> of python installed in here --&gt; /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:<br> \
&quot;/users/aa7/Python_m64/bin/python2.6&quot; &quot;/users/aa7/bin&quot; \
&quot;test.py&quot;   &gt; ...<br>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?<br> <br>So here is the most informative part of the \
output:<br><br>....<br>gcc.link.dll \
bin/gcc-4.1.2/release/address-model-64/myextension.so<br>capture-output \
bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext<br> ====== BEGIN OUTPUT \
======<br>/users/aa7/Python_m64/bin/python2.6: can&#39;t open file \
&#39;/users/aa7/bin&#39;: [Errno 2] No such file or directory<br><br>EXIT STATUS: \
2<br>====== END OUTPUT ======<br><br>    \
LD_LIBRARY_PATH=/users/aa7/Soft/boost_1_39_0/bin.v2/libs/python/build/gcc-4.1.2/releas \
e/address-model-64:/users/aa7/Soft/boost_1_39_0/bin.v2/libs/regex/build/gcc-4.1.2/rele \
ase/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<br>
 export LD_LIBRARY_PATH<br><br>    \
PYTHONPATH=bin/gcc-4.1.2/release/address-model-64<br>export PYTHONPATH<br> \
&quot;/users/aa7/Python_m64/bin/python2.6&quot; &quot;/users/aa7/bin&quot; \
&quot;test.py&quot;   &gt; \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output&quot; \
2&gt;&amp;1<br>  status=$?<br>    echo &gt;&gt; \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output&quot;<br>  \
echo EXIT STATUS: $status &gt;&gt; \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output&quot;<br>  \
if test $status -eq 0 ; then<br>        cp \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output&quot; \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext&quot;<br>    \
fi<br>    verbose=1<br>  if test $status -ne 0 ; then<br>        verbose=1<br>    \
fi<br>    if test $verbose -eq 1 ; then<br>        echo ====== BEGIN OUTPUT \
======<br>        cat \
&quot;bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext.output&quot;<br>  \
echo ====== END OUTPUT ======<br>    fi<br>    exit $status<br><br>...failed \
capture-output bin/test_ext.test/gcc-4.1.2/release/address-model-64/test_ext...<br>...failed \
                updating 1 target...<br>...skipped 1 target...<br>
...updated 147 targets...<br><br><br>



_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic