Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT RangeWidge Error #3664

Closed
ChengDaHaI opened this issue Jul 22, 2020 · 2 comments
Closed

QT RangeWidge Error #3664

ChengDaHaI opened this issue Jul 22, 2020 · 2 comments

Comments

@ChengDaHaI
Copy link

Hi,

My GNU Radio version is 3.8. My python version is 3.8.2. My OS is Ubuntu 20.04.

I installed GNU Radio by:

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt-get update
sudo apt install gnuradio

When i first run a sample rate demo, i got the following error:

self._snr_win = RangeWidget(self._snr_range, self.set_snr, 'snr', "counter_slider", float, QtCore.Qt.Horizontal)
TypeError: __init__() takes from 5 to 6 positional arguments but 7 were given

I solve the error by manually removing the latest parameter QtCore.Qt.Horizontal. Some guys said that results from my previous installed GNU Radio (master branch, version 3.9 ). But i have removed the old gnu radio by

sudo apt-get remove --auto-remove gnuradio
sudo apt-get purge --auto-remove gnuradio  

It doesn't help.

Any idea about how to solve the problem?

@Paul-G8DVO
Copy link

Did same update to 3.8 using PPA and got same problem
Seems to be a missing line to import QtCore in file:
/usr/share/gnuradio/grc/blocks/qtgui_range.block.yml

open file (eg sudo gedit <location/filename>) and edit imports to:
imports: |-
from gnuradio.qtgui import Range, RangeWidget
from PyQt5 import QtCore

@ChengDaHaI
Copy link
Author

Did same update to 3.8 using PPA and got same problem
Seems to be a missing line to import QtCore in file:
/usr/share/gnuradio/grc/blocks/qtgui_range.block.yml

open file (eg sudo gedit <location/filename>) and edit imports to:
imports: |-
from gnuradio.qtgui import Range, RangeWidget
from PyQt5 import QtCore

It works for me! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants