Wednesday, December 16, 2020

issue (qt gui range) after uninstalling GR 3.9 and installing 3.8.2.0

Hi

I facing a simple issue on my Ubuntu 20.04 gnuradio 3.8.2.0 install on one of my partition

I installed from ppa:gnuradio/gnuradio-releases on two different partition, both having Ubuntu 20.04 and the same PPA gnuradio version. Let's call these install P1 and P2: 

  • P1 : GNURadio working
  • P2 : first installed GR 3.9 from PPA, then uninstalled it to revert to 3.8.2.0 (also tried to completely remove 3.8.2.0 an re-install it)

On P1, everything is working fine.

On my P2 second partition I get this error :

Traceback (most recent call last):
  File "/home/seguinot/Bureau/gilles_rubin/top_block.py", line 205, in <module>
    main()
  File "/home/seguinot/Bureau/gilles_rubin/top_block.py", line 181, in main
    tb = top_block_cls()
  File "/home/seguinot/Bureau/gilles_rubin/top_block.py", line 86, in __init__
    self._Offset_freq_win = RangeWidget(self._Offset_freq_range, self.set_Offset_freq, 'Corection frequence (ppm)', "counter_slider", float, QtCore.Qt.Horizontal)
TypeError: __init__() takes from 5 to 6 positional arguments but 7 were given

The error is simply caused by the last argument of the RangeWidget call: QtCore.Qt.Horizontal.
  • the same flowgraph used on my first partition generates a different and working top_block.py without this QtCore.Qt.Horizontal argument (for every QT GUI Range widget)
  • the top_blosk.py when generated with P1 , then runned on P2 (python3 ./topblock.py) works

So the issue clearly lays in the python script generation.

Why is my P2 not generating the same top_block.py? It seems that There is something wrongly installed or some caching issue there (because of previously installed GR3.9 ?).  Does anyone could give me some hints to solve this?

I already verified that I only get one file for range.py a qtgui_range.block.yml

  • /usr/share/gnuradio/grc/blocks/qtgui_range.block.yml
  • /usr/lib/python3/dist-packages/gnuradio/qtgui/range.py

These files seems identical in P1 and P2

Regards



1 comment:

  1. I ran into the same issue and while looking for a solution, I found your post. I thought I'd let you know that I found the error:

    GRC caches the block definitions. If you delete the file ~/.cache/grc_gnuradio/cache.json and regenerate your flowgraph, everything starts to work magically again.

    ReplyDelete