This issue started Thursday (8/16/2018) after I performed software updates via macports. While running gnuradio-companion, I run my code (which was running fine for weeks) and now get this error:
Generating: '/Users/georgerykowski/Documents/GNUradio/TCM_with_ENG_2MS.py'
Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/georgerykowski/Documents/GNUradio/TCM_with_ENG_2MS.py
Traceback (most recent call last):
File "/Users/georgerykowski/Documents/GNUradio/TCM_with_ENG_2MS.py", line 20, in <module>
from PyQt4.QtCore import QObject, pyqtSlot
ImportError: cannot import name QObject
>>> Done (return code 1)
When I try running another program, I get this error:
Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/georgerykowski/Documents/GNUradio/ENG_file_run_USRP.py
Traceback (most recent call last):
File "/Users/georgerykowski/Documents/GNUradio/ENG_file_run_USRP.py", line 33, in <module>
from gnuradio import qtgui
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/qtgui/__init__.py", line 37, in <module>
from range import Range, RangeWidget
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/qtgui/range.py", line 67, in <module>
class RangeWidget(QtGui.QWidget):
AttributeError: 'module' object has no attribute 'QWidget'
>>> Done (return code 1)
The error appear to occur in the GUI code. A colleague of mine updated his code and the same issue appeared, so I suspect others have seen this. Have others seen this, or similar issues? If yes, is there a workaround? Am I bringing the issue to the proper discussion forum (e.g. should I go to a Python group)?
I am running MacOS 10.13.6
Thank you
I am on archlinux and I am getting this error now after a long time of having no issues at all. It seems to be related with an update of GNU Radio software performed by the OS lately. Is there any solution for this?
ReplyDelete