Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Ah, cool! Interestingly, "my" GNU Radio never uses PyQt5, only PyQt4: It seems that Maitland's packaging is more advanced than I am :) (it is, I just checked: Maitland already has qt5-qtgui and qt5-qtgui-grc patches) Best regards, Marcus On Wed, 2018-01-17 at 13:17 +0100, s.achte...@rug.nl wrote: >Hello, > > problem solved. > Debian testing is switching to PyQt5. > There already is a simple patch for it in debian-bugs. > See > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886807 > > And it works! >Thanks for the help. > Sietse > > PS. I am a bit confused by the mailinglist, I see my name (only) as > address@hidden. > I now just send an email to the mailing list with the same subject and > it works somehow. > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hello, problem solved. Debian testing is switching to PyQt5. There already is a simple patch for it in debian-bugs. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886807 And it works! Thanks for the help. Sietse PS. I am a bit confused by the mailinglist, I see my name (only) as address@hidden. I now just send an email to the mailing list with the same subject and it works somehow. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hej, Can you try editing your /home/sietse/top_block.py, and running it from a console (regenerating it from GRC will overwrite your changes): Add a import sip sip.setapi('QString', 1) sip.setapi('QVariant', 1) directly *before* "from PyQt4 import Qt". Does that help? Best regards, Marcus On Wed, 2018-01-17 at 12:01 +, Müller, Marcus (CEL) wrote: > Hello Sietse, > > unless you're building GNU Radio from source on the next or a Qt5 > development branch, all this should use PyQt4, as far as I remember. > > Best regards, > Marcus > > On Wed, 2018-01-17 at 11:21 +0100, s.achte...@rug.nl wrote: > > Hello list (second attempt), > > > > Starting with gnuradio on Debian testing/buster and trying a flowgraph with > > only > > a "wav file source" and an "audio sink". > > > > With option "WX gui" it just works, but with option "QT gui" there is the > > following error: > > > > File "/home/sietse/top_block.py", line 55, in __init__ > > self.restoreGeometry(self.settings.value("geometry").toByteArray()) > > AttributeError: 'QByteArray' object has no attribute 'toByteArray' > > > > If I remove that line everything works ok! > > PyQt5 is being used. > > > > What am I doing wrong? > > > >Thanks in advance, > > Sietse > > > > > > ___ > > Discuss-gnuradio mailing list > > Discuss-gnuradio@gnu.org > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hm, that being said: This might be a PyQT API v2 versus API v1 issue. Will later have a look at these APIs. Best regards, Marcus On Wed, 2018-01-17 at 12:01 +, Müller, Marcus (CEL) wrote: > Hello Sietse, > > unless you're building GNU Radio from source on the next or a Qt5 > development branch, all this should use PyQt4, as far as I remember. > > Best regards, > Marcus > > On Wed, 2018-01-17 at 11:21 +0100, s.achte...@rug.nl wrote: > > Hello list (second attempt), > > > > Starting with gnuradio on Debian testing/buster and trying a flowgraph with > > only > > a "wav file source" and an "audio sink". > > > > With option "WX gui" it just works, but with option "QT gui" there is the > > following error: > > > > File "/home/sietse/top_block.py", line 55, in __init__ > > self.restoreGeometry(self.settings.value("geometry").toByteArray()) > > AttributeError: 'QByteArray' object has no attribute 'toByteArray' > > > > If I remove that line everything works ok! > > PyQt5 is being used. > > > > What am I doing wrong? > > > >Thanks in advance, > > Sietse > > > > > > ___ > > Discuss-gnuradio mailing list > > Discuss-gnuradio@gnu.org > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hello Sietse, unless you're building GNU Radio from source on the next or a Qt5 development branch, all this should use PyQt4, as far as I remember. Best regards, Marcus On Wed, 2018-01-17 at 11:21 +0100, s.achte...@rug.nl wrote: > Hello list (second attempt), > > Starting with gnuradio on Debian testing/buster and trying a flowgraph with > only > a "wav file source" and an "audio sink". > > With option "WX gui" it just works, but with option "QT gui" there is the > following error: > > File "/home/sietse/top_block.py", line 55, in __init__ > self.restoreGeometry(self.settings.value("geometry").toByteArray()) > AttributeError: 'QByteArray' object has no attribute 'toByteArray' > > If I remove that line everything works ok! > PyQt5 is being used. > > What am I doing wrong? > >Thanks in advance, > Sietse > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Sorry if this post appears twice, but my mail provider had problems so I'm not sure if this post was really sent. Hello, the line self.restoreGeometry(self.settings.value("geometry").toByteArray() is correct. But gnuradio uses QT4, so PyQt4 is required. Volker Am 17.01.2018 um 11:21 schrieb s.achte...@rug.nl: Hello list (second attempt), Starting with gnuradio on Debian testing/buster and trying a flowgraph with only a "wav file source" and an "audio sink". With option "WX gui" it just works, but with option "QT gui" there is the following error: File "/home/sietse/top_block.py", line 55, in __init__ self.restoreGeometry(self.settings.value("geometry").toByteArray()) AttributeError: 'QByteArray' object has no attribute 'toByteArray' If I remove that line everything works ok! PyQt5 is being used. What am I doing wrong? Thanks in advance, Sietse ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hello, the line self.restoreGeometry(self.settings.value("geometry").toByteArray() is correct. But gnuradio uses QT4, so PyQt4 is required. Volker Am 17.01.2018 um 11:21 schrieb s.achte...@rug.nl: Hello list (second attempt), Starting with gnuradio on Debian testing/buster and trying a flowgraph with only a "wav file source" and an "audio sink". With option "WX gui" it just works, but with option "QT gui" there is the following error: File "/home/sietse/top_block.py", line 55, in __init__ self.restoreGeometry(self.settings.value("geometry").toByteArray()) AttributeError: 'QByteArray' object has no attribute 'toByteArray' If I remove that line everything works ok! PyQt5 is being used. What am I doing wrong? Thanks in advance, Sietse ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hello list (second attempt), Starting with gnuradio on Debian testing/buster and trying a flowgraph with only a "wav file source" and an "audio sink". With option "WX gui" it just works, but with option "QT gui" there is the following error: File "/home/sietse/top_block.py", line 55, in __init__ self.restoreGeometry(self.settings.value("geometry").toByteArray()) AttributeError: 'QByteArray' object has no attribute 'toByteArray' If I remove that line everything works ok! PyQt5 is being used. What am I doing wrong? Thanks in advance, Sietse ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Simplest example with qt does nog work which debian testing/buster
Hello list, Starting with gnuradio on Debian testing/buster and trying a flowgraph with only a "wav file source" and an "audio sink". With option "WX gui" it just works, but with option "QT gui" there is the following error: File "/home/sietse/top_block.py", line 55, in __init__ self.restoreGeometry(self.settings.value("geometry").toByteArray()) AttributeError: 'QByteArray' object has no attribute 'toByteArray' If I remove that line everything works ok! PyQt5 is being used. What am I doing wrong? Thanks in advance, Sietse ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio