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

List:       gnuradio-discuss
Subject:    Re: [Discuss-gnuradio] Python errors running flowgraph - first attempt
From:       Larry Van Der Jagt <vandel () gmail ! com>
Date:       2015-02-27 20:06:50
Message-ID: CAFXTe4we1JQZBD1Wb_q+cNamzR1F4rk=11YO5=f2y15TYZVcOA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi ...

If you run GRC on the E310 with:

LD_PRELOAD="/usr/lib/libQtDeclarative.so.4.8.6 /usr/lib/libQtSvg.so.4.8.6
/usr/lib/libQtXml.so.4.8.6 /usr/lib/libQtWebKit.so.4.9.4" gnuradio-companion

You are able to get to the point where the problem is an unavailablity of
PYQty4.Qwt5 as Qwt
ImportError: no module named Qwt5 ....

As we speak I am trying to examine if I can cross compile The missing
module and install it on the target device to get things to proceed further.

Thanks for your interest.

LVDJ

On Fri, Feb 27, 2015 at 12:11 PM, Tom Rondeau <tom@trondeau.com> wrote:

> Sorry that I have no insight into this right now, but I wanted to follow
> up and see if there was any progress made on this problem?
>
> Tom
>
>
> On Mon, Feb 9, 2015 at 11:28 AM, Larry Van Der Jagt <vandel@gmail.com>
> wrote:
>
>> Thanks:
>>
>> The info Chris sent along has helped to move this along although at this
>> point I still don't have a solution or a root cause.
>>
>> The library that issues the error message is
>> /usr/lib/python2.7/site-packages/PyQt4/QtDeclarative.so and the symbol it
>> complains about is _ZTI16QDeclarativeView
>>
>> When you Readelf this file you find:
>>
>> Dynamic section at offset 0x40728 contains 29 entries:
>>   Tag        Type                         Name/Value
>>  0x00000001 (NEEDED)                     Shared library: [libQtGui.so.4]
>>  0x00000001 (NEEDED)                     Shared library: [libQtCore.so.4]
>>  0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
>>  0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
>>  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
>>  0x0000000e (SONAME)                     Library soname:
>> [libQtDeclarative.so.1]
>>
>> and
>>
>> 00040128  0000b202 R_ARM_ABS32       00000000   _ZTI16QDeclarativeView
>>
>> and
>>
>>    178: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _ZTI16QDeclarativeView
>>
>> There is also a library in /usr/lib that is libQtDeclarative.so.4.8.6
>> that has symbolic links to it named libQtDeclarative.so, .so.4 and
>> .so.4.8.  I though that if I added one for libQtDeclarative.so.1 this might
>> fix the issue, but it did not.
>>
>> When you readelf libQtDeclarative.so.4.8.6 you find:
>>
>> Dynamic section at offset 0x2ce040 contains 34 entries:
>>   Tag        Type                         Name/Value
>> 0x00000001 (NEEDED)                     Shared library: [libQtScript.so.4]
>> 0x00000001 (NEEDED)                     Shared library: [libQtSql.so.4]
>> 0x00000001 (NEEDED)                     Shared library:
>> [libQtXmlPatterns.so.4]
>> 0x00000001 (NEEDED)                     Shared library: [libQtGui.so.4]
>> 0x00000001 (NEEDED)                     Shared library:
>> [libQtNetwork.so.4]
>> 0x00000001 (NEEDED)                     Shared library: [libQtCore.so.4]
>> 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
>> 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
>> 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
>> 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
>> 0x0000000e (SONAME)                     Library soname:
>> [libQtDeclarative.so.4]
>>
>> and
>>
>> 002d0c94  0009ef02 R_ARM_ABS32       002d0c80   _ZTI16QDeclarativeView
>> 002d0d8c  0009ef02 R_ARM_ABS32       002d0c80   _ZTI16QDeclarativeView
>>
>> and
>>
>> 2543: 002d0c80    12 OBJECT  GLOBAL DEFAULT   20 _ZTI16QDeclarativeView
>>
>> I also tried copying /usr/lib/libQtDeclarative.so.4.8.6 to the
>> /usr/lib/python2.7/site-packages/pyQt4 directory as libQtDeclarative.so.1
>> to no avail.
>>
>> I tried calling gnuradio-companion with LD_PRELOAD=/usr/lib/libQtDeclarative.so.4.8.6
>> gnuradio-companion and this let the process proceed a little further this
>> time the undefined symbol is in line 11 of QT.py in QTSvg.so and is
>> _ZTI10QSvgWidget.
>>
>> I will keep drilling down on this, but thought I might post first just in
>> case someone recognizes the real issue and perhaps it can be fixed with a
>> simple adjustment to the environment.
>>
>> With respect to the concept that GRC is not really something to run on
>> the embedded processor, that's surely valid, but unless I do not understand
>> how these pieces work, if the QT GUI can run you can't get graphical
>> elements to work even in the produced Python code and that seriously
>> reduces the utility of the embedded device.
>>
>> All comments and direction are appreciated.
>>
>> LVDJ
>>
>>
>> --
>> Larry Van Der Jagt
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi ...<div><br></div><div>If you run GRC on the E310 \
with:</div><div><br></div><div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">LD_PRELOAD=&quot;/usr/lib/libQtDeclarative.so.4.8.6 \
/usr/lib/libQtSvg.so.4.8.6 /usr/lib/libQtXml.so.4.8.6 \
/usr/lib/libQtWebKit.so.4.9.4&quot; gnuradio-companion</span></div></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">You \
are able to get to the point where the problem is an unavailablity of PYQty4.Qwt5 as \
Qwt</span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">ImportError: \
no module named Qwt5 ....</span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">As \
we speak I am trying to examine if I can cross compile The missing module and install \
it on the target device to get things to proceed further.</span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">Thanks \
for your interest.</span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></span></div><div><span \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">LVDJ</span></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 12:11 PM, \
Tom Rondeau <span dir="ltr">&lt;<a href="mailto:tom@trondeau.com" \
target="_blank">tom@trondeau.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Sorry that I have no insight into this right \
now, but I wanted to follow up and see if there was any progress made on this \
problem?<div><br></div><div>Tom</div><div><br><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div class="h5">On Mon, Feb 9, 2015 at 11:28 AM, Larry Van \
Der Jagt <span dir="ltr">&lt;<a href="mailto:vandel@gmail.com" \
target="_blank">vandel@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div class="h5"><div \
dir="ltr">Thanks:<div><br></div><div>The info Chris sent along has helped to move \
this along although at this point I still don&#39;t have a solution or a root \
cause.</div><div><br></div><div>The library that issues the error message is \
/usr/lib/python2.7/site-packages/PyQt4/QtDeclarative.so and the symbol it complains \
about is _ZTI16QDeclarativeView</div><div><br></div><div>When you Readelf this file \
you find:</div><div><br></div><div><div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">Dynamic \
section at offset 0x40728 contains 29 entries:</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
Tag            Type                                     Name/Value</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x00000001 (NEEDED)                               Shared library: \
[libQtGui.so.4]</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x00000001 (NEEDED)                               Shared library: \
[libQtCore.so.4]</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x00000001 (NEEDED)                               Shared library: \
[libstdc++.so.6]</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x00000001 (NEEDED)                               Shared library: \
[libgcc_s.so.1]</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x00000001 (NEEDED)                               Shared library: \
[libc.so.6]</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"> \
0x0000000e (SONAME)                               Library soname: \
[libQtDeclarative.so.1]</div></div></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium">and</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;font-size:medium"><br></div><div \
style="text-align:-webkit-auto"><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">00040128   0000b202 R_ARM_ABS32          00000000    \
_ZTI16QDeclarativeView</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">and</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><div><span \
style="text-align:-webkit-auto">     178: 00000000       0 NOTYPE   GLOBAL DEFAULT   \
UND _ZTI16QDeclarativeView</span></div></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">There is also a library in /usr/lib that is \
libQtDeclarative.so.4.8.6 that has symbolic links to it named libQtDeclarative.so, \
.so.4 and .so.4.8.   I though that if I added one for libQtDeclarative.so.1 this \
might fix the issue, but it did not.</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">When you readelf libQtDeclarative.so.4.8.6 you \
find:</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><div><span \
style="text-align:-webkit-auto">Dynamic section at offset 0x2ce040 contains 34 \
entries:</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">   Tag               Type                             \
Name/Value</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libQtScript.so.4]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libQtSql.so.4]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libQtXmlPatterns.so.4]</span><br \
style="text-align:-webkit-auto"><span style="text-align:-webkit-auto">0x00000001 \
(NEEDED)                                         Shared library: \
[libQtGui.so.4]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libQtNetwork.so.4]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libQtCore.so.4]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libstdc++.so.6]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libm.so.6]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libgcc_s.so.1]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x00000001 (NEEDED)                                   \
Shared library: [libc.so.6]</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">0x0000000e (SONAME)                                   \
Library soname: [libQtDeclarative.so.4]</span></div></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">and</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><div><span \
style="text-align:-webkit-auto">002d0c94   0009ef02 R_ARM_ABS32             002d0c80  \
_ZTI16QDeclarativeView</span><br style="text-align:-webkit-auto"><span \
style="text-align:-webkit-auto">002d0d8c   0009ef02 R_ARM_ABS32             002d0c80  \
_ZTI16QDeclarativeView</span></div></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto">and</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><div><span \
style="text-align:-webkit-auto">2543: 002d0c80       12 OBJECT   GLOBAL DEFAULT     \
20 _ZTI16QDeclarativeView</span></div></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium">I also tried copying \
/usr/lib/libQtDeclarative.so.4.8.6 to the /usr/lib/python2.7/site-packages/pyQt4 \
directory as libQtDeclarative.so.1 to no avail.</div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><br></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium">I tried calling \
gnuradio-companion with LD_PRELOAD=<span \
style="text-align:-webkit-auto">/usr/lib/libQtDeclarative.so.4.8.6 gnuradio-companion \
and this let the process proceed a little further this time the undefined symbol is \
in line 11 of QT.py in QTSvg.so and is _ZTI10QSvgWidget.</span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div><span \
style="text-align:-webkit-auto"><font color="#000000" face="Tahoma" size="3">I will \
keep drilling down on this, but thought I might post first  just  in case someone \
recognizes the real issue and perhaps it can be fixed with a simple adjustment to  \
the  environment.</font></span></div><div><span style="text-align:-webkit-auto"><font \
color="#000000" face="Tahoma" size="3"><br></font></span></div><div><span \
style="text-align:-webkit-auto"><font color="#000000" face="Tahoma" size="3">With \
respect to the concept that GRC is not really something to run on the embedded \
processor, that&#39;s surely valid, but unless I do not understand how these pieces \
work, if the QT GUI can run you can&#39;t get graphical elements to work even in the \
produced Python code and that seriously reduces the utility of the embedded \
device.</font></span></div><div><span style="text-align:-webkit-auto"><font \
color="#000000" face="Tahoma" size="3"><br></font></span></div><div><span \
style="text-align:-webkit-auto"><font color="#000000" face="Tahoma" size="3">All \
comments and direction are appreciated.</font></span></div><span><font \
color="#888888"><div><span style="text-align:-webkit-auto"><font color="#000000" \
face="Tahoma" size="3"><br></font></span></div><div><span \
style="text-align:-webkit-auto"><font color="#000000" face="Tahoma" \
size="3">LVDJ</font></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><span \
style="text-align:-webkit-auto"><br></span></div><div \
style="color:rgb(0,0,0);font-family:Tahoma;font-size:medium"><br></div></font></span></div><span><div><div><div \
class="gmail_extra">-- <br><div>Larry Van Der Jagt<br><br></div> \
</div></div></div></span></div> \
<br></div></div>_______________________________________________<br> Discuss-gnuradio \
mailing list<br> <a href="mailto:Discuss-gnuradio@gnu.org" \
target="_blank">Discuss-gnuradio@gnu.org</a><br> <a \
href="https://lists.gnu.org/mailman/listinfo/discuss-gnuradio" \
target="_blank">https://lists.gnu.org/mailman/listinfo/discuss-gnuradio</a><br> \
<br></blockquote></div><br></div></div></div> </blockquote></div><br><br>
</div></div>



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

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