Hello,

I have installed GnuRadio 3.10.1.1 and Python 3.10.4 on Ubuntu 22_04

and I run into a problem:

 

There is only a very simple flowgraph:

QT GUI Toggle Switch --> QT GUI LED Indicator

 

At runtime, there is an error in modul: 

"/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line 79

As I can see, there is a type mismatch between float and whatever?

Has anybody an idea what goes wrong and how can I fix it?

Thanks

Karlheinz Kemna

 

 

Console printout at runtime:

 

<<< Welcome to GNU Radio Companion 3.10.1.1 >>>

 

Block paths:

                /usr/share/gnuradio/grc/blocks

                /usr/local/share/gnuradio/grc/blocks

 

Loading: "/home/user/MyProj/GnuRadio/Test/LedIndicator.grc"

>>> Done

 

Generating: '/home/user/MyProj/GnuRadio/Test/LedIndicator.py'

 

Executing: /usr/bin/python3 -u
/home/user/MyProj/GnuRadio/Test/LedIndicator.py

 

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Traceback (most recent call last):

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 188, in
<module>

    main()

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 166, in main

    tb = top_block_cls()

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 85, in
__init__

    self.qtgui_ledindicator_0 = self._qtgui_ledindicator_0_win =
qtgui.GrLEDIndicator('Hallo', "green", "red", False, 40, 1, 1, 1, self)

  File "/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line
175, in __init__

    LabeledLEDIndicator.__init__(self, lbl, onColor, offColor, initialState,

  File "/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line
79, in __init__

    self.setMinimumSize(maxWidth, maxHeight)

TypeError: arguments did not match any overloaded call:

  setMinimumSize(self, int, int): argument 1 has unexpected type 'float'

  setMinimumSize(self, QSize): argument 1 has unexpected type 'float'

Reply via email to