EttusResearch / gr-doa

Direction-of-Arrival (DoA) Demo for GNU Radio (OOT) with the USRP™ X-Series and TwinRX™
GNU General Public License v3.0
102 stars 52 forks source link

QT Gui Object Broken - doa_qt_compass.xml #3

Open rf-engineer opened 6 years ago

rf-engineer commented 6 years ago

With the latest install of GR and UHD, it appears that the xml file for the block "QT GUI DoA Compass Sink" is no longer working out of the box. The command is not loading correctly and throws a Template Error in the generated Python code. Here's the original code:

<make>#set $win2 = 'self.%s.this_layout'%$id doa.compass($name, $min_val, $max_val, $step, $arc_bias) $(gui_hint()($win2))</make>

The following change would fix it:

<make>#set $win = 'self._%s_win'%$id doa.compass($name, $min_val, $max_val, $step, $arc_bias) $(gui_hint() % $win)</make>

natetemple commented 6 years ago

@rf-engineer Can you please try updating to the current GNU Radio maint-3.7 release [ https://github.com/gnuradio/gnuradio/tree/maint-3.7 ] which includes this commit https://github.com/gnuradio/gnuradio/commit/dbdd204ccd3e4d174f4390bcd0948f33f1a8bf0d that resolves this issue with QT sinks on GNU Radio 3.7.12.0.

rf-engineer commented 6 years ago

@natetemple So the Template_error that gets thrown does go away with the current maint-3.7 release. However, I'm now getting a QVBoxLayout issue:

Traceback (most recent call last):
  File "./run_RootMUSIC_lin_array_simulation.py", line 222, in <module>
    main()
  File "./run_RootMUSIC_lin_array_simulation.py", line 210, in main
    tb = top_block_cls()
  File "./run_RootMUSIC_lin_array_simulation.py", line 98, in __init__
    self.tab_grid_layout_1.addWidget(self.doa_compass_0.this_layout)
TypeError: arguments did not match any overloaded call:
  QGridLayout.addWidget(QWidget): argument 1 has unexpected type 'QVBoxLayout'
  QGridLayout.addWidget(QWidget, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'
  QGridLayout.addWidget(QWidget, int, int, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'

Maybe this has to do with my installation? Python and QT are all up-to-date. When I make the changes that I mentioned above, I get the error that I noted in issue #4 .

YuexinZhao commented 5 years ago

I also encountered the same issue about the QVBoxLayout with the latest install of GnuRadio and UHD. Any help will be appreciated! @natetemple @rf-engineer

Ka-zam commented 5 years ago

I also have this issue using GR 3.7.13.4 built from source.

yuwei66 commented 5 years ago

TypeError: arguments did not match any overloaded call: QGridLayout.addWidget(QWidget): argument 1 has unexpected type 'QVBoxLayout' QGridLayout.addWidget(QWidget, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout' QGridLayout.addWidget(QWidget, int, int, int, int, Qt.Alignment alignment=0): argument 1 has unexpected type 'QVBoxLayout'

I have this issue , Can it be solved?