Hi George,
This looks like missing or improperly installed PyQt libraries and/or Python 
modules. What distro are you running?

Regards,
Adrian

On August 21, 2018 4:34:15 PM UTC, George Rykowski <[email protected]> wrote:
>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
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to