* Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python
@ 2013-06-19 2:05 Mark Hatle
2013-06-19 7:56 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2013-06-19 2:05 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
My host system's python version is too old due to the recent changes. So I
built a temporary python 2.7.3 version. Built the 'buildtools-tarball' and then
installed it. When I switch to the included python it no longer works.
I did some digging, the problem in the end is related to ncurses within the
nativesdk.
Running the following:
py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,3)'`
which python
echo "$py_v26_check" | od -c
if [ "$py_v26_check" != "True" ]; then
echo "BitBake requires Python 2.7.3 or later"
exit 1
fi
You can see the difference in behavior:
TERM=xterm
/home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
0000000 033 [ ? 1 0 3 4 h T r u e \n
0000015
BitBake requires Python 2.7.3 or later
-----
TERM=vt100
/home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
0000000 T r u e \n
0000005
-----
So as you can see specifying a different terminal type is happily changing the
output of python. When I use my locally built version, I don't get the same
behavior. I always get the second version.
So is there a problem with the nativesdk python, nativesdk ncurses or???
(I've not yet filed a bug on this, but I will if I can't figure it out soon.)
--Mark
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python
2013-06-19 2:05 Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python Mark Hatle
@ 2013-06-19 7:56 ` Richard Purdie
2013-06-19 15:27 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2013-06-19 7:56 UTC (permalink / raw)
To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer
On Tue, 2013-06-18 at 21:05 -0500, Mark Hatle wrote:
> My host system's python version is too old due to the recent changes. So I
> built a temporary python 2.7.3 version. Built the 'buildtools-tarball' and then
> installed it. When I switch to the included python it no longer works.
>
> I did some digging, the problem in the end is related to ncurses within the
> nativesdk.
>
> Running the following:
> py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,3)'`
> which python
> echo "$py_v26_check" | od -c
> if [ "$py_v26_check" != "True" ]; then
> echo "BitBake requires Python 2.7.3 or later"
> exit 1
> fi
>
> You can see the difference in behavior:
>
> TERM=xterm
>
> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
> 0000000 033 [ ? 1 0 3 4 h T r u e \n
> 0000015
> BitBake requires Python 2.7.3 or later
>
> -----
>
> TERM=vt100
>
> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
> 0000000 T r u e \n
> 0000005
>
> -----
>
> So as you can see specifying a different terminal type is happily changing the
> output of python. When I use my locally built version, I don't get the same
> behavior. I always get the second version.
>
> So is there a problem with the nativesdk python, nativesdk ncurses or???
>
> (I've not yet filed a bug on this, but I will if I can't figure it out soon.)
We've seen this issue but I thought we'd fixed it.
Which version of master did you do this with? This was supposed to be
fixed by
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c281cd149bdbce29fc69cb34c65c4295cfed2060 and http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=534c4d0f1e287d0ac82504b273a5497d3457582a
If you're still having problems, please strace the above python command
and see where its looking for terminfo...
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python
2013-06-19 7:56 ` Richard Purdie
@ 2013-06-19 15:27 ` Mark Hatle
2013-06-19 16:47 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2013-06-19 15:27 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
On 6/19/13 2:56 AM, Richard Purdie wrote:
> On Tue, 2013-06-18 at 21:05 -0500, Mark Hatle wrote:
>> My host system's python version is too old due to the recent changes. So I
>> built a temporary python 2.7.3 version. Built the 'buildtools-tarball' and then
>> installed it. When I switch to the included python it no longer works.
>>
>> I did some digging, the problem in the end is related to ncurses within the
>> nativesdk.
>>
>> Running the following:
>> py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,3)'`
>> which python
>> echo "$py_v26_check" | od -c
>> if [ "$py_v26_check" != "True" ]; then
>> echo "BitBake requires Python 2.7.3 or later"
>> exit 1
>> fi
>>
>> You can see the difference in behavior:
>>
>> TERM=xterm
>>
>> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
>> 0000000 033 [ ? 1 0 3 4 h T r u e \n
>> 0000015
>> BitBake requires Python 2.7.3 or later
>>
>> -----
>>
>> TERM=vt100
>>
>> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
>> 0000000 T r u e \n
>> 0000005
>>
>> -----
>>
>> So as you can see specifying a different terminal type is happily changing the
>> output of python. When I use my locally built version, I don't get the same
>> behavior. I always get the second version.
>>
>> So is there a problem with the nativesdk python, nativesdk ncurses or???
>>
>> (I've not yet filed a bug on this, but I will if I can't figure it out soon.)
>
> We've seen this issue but I thought we'd fixed it.
>
> Which version of master did you do this with? This was supposed to be
> fixed by
> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c281cd149bdbce29fc69cb34c65c4295cfed2060 and http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=534c4d0f1e287d0ac82504b273a5497d3457582a
I have verified that I have both patches applied. I will continue debugging and
work on the strace next...
FYI this is a x86_64 - CentOS 6.4 machine if it matters..
> If you're still having problems, please strace the above python command
> and see where its looking for terminfo...
>
> Cheers,
>
> Richard
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python
2013-06-19 15:27 ` Mark Hatle
@ 2013-06-19 16:47 ` Mark Hatle
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2013-06-19 16:47 UTC (permalink / raw)
To: openembedded-core
On 6/19/13 10:27 AM, Mark Hatle wrote:
> On 6/19/13 2:56 AM, Richard Purdie wrote:
>> On Tue, 2013-06-18 at 21:05 -0500, Mark Hatle wrote:
>>> My host system's python version is too old due to the recent changes. So I
>>> built a temporary python 2.7.3 version. Built the 'buildtools-tarball' and then
>>> installed it. When I switch to the included python it no longer works.
>>>
>>> I did some digging, the problem in the end is related to ncurses within the
>>> nativesdk.
>>>
>>> Running the following:
>>> py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,3)'`
>>> which python
>>> echo "$py_v26_check" | od -c
>>> if [ "$py_v26_check" != "True" ]; then
>>> echo "BitBake requires Python 2.7.3 or later"
>>> exit 1
>>> fi
>>>
>>> You can see the difference in behavior:
>>>
>>> TERM=xterm
>>>
>>> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
>>> 0000000 033 [ ? 1 0 3 4 h T r u e \n
>>> 0000015
>>> BitBake requires Python 2.7.3 or later
>>>
>>> -----
>>>
>>> TERM=vt100
>>>
>>> /home/lmhatle/build-qemux86_64-2/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python
>>> 0000000 T r u e \n
>>> 0000005
>>>
>>> -----
>>>
>>> So as you can see specifying a different terminal type is happily changing the
>>> output of python. When I use my locally built version, I don't get the same
>>> behavior. I always get the second version.
>>>
>>> So is there a problem with the nativesdk python, nativesdk ncurses or???
>>>
>>> (I've not yet filed a bug on this, but I will if I can't figure it out soon.)
>>
>> We've seen this issue but I thought we'd fixed it.
>>
>> Which version of master did you do this with? This was supposed to be
>> fixed by
>> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c281cd149bdbce29fc69cb34c65c4295cfed2060 and http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=534c4d0f1e287d0ac82504b273a5497d3457582a
>
> I have verified that I have both patches applied. I will continue debugging and
> work on the strace next...
>
> FYI this is a x86_64 - CentOS 6.4 machine if it matters..
I reverified, I had the patch in my -git tree-, but it wasn't in my master
branch. I must have checked out when it was somewhere, but not yet in master.
I'm currently rechecking everything.
--Mark
>> If you're still having problems, please strace the above python command
>> and see where its looking for terminfo...
>>
>> Cheers,
>>
>> Richard
>>
>>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-19 16:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19 2:05 Problem with buildtools-tarball / nativesdk-ncurses / nativesdk-python Mark Hatle
2013-06-19 7:56 ` Richard Purdie
2013-06-19 15:27 ` Mark Hatle
2013-06-19 16:47 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox