discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] ImportError: cannot import name QObject


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] ImportError: cannot import name QObject
Date: Tue, 21 Aug 2018 13:08:45 -0400

Hi George - Yes this is a known issue that I'm working on; see also < https://trac.macports.org/ticket/56993 >. On this ticket is provided a way to revert back to the prior PyQt4 release that doesn't have this issue. We'll get a fix in place as soon as we can. - MLD

On Tue, Aug 21, 2018, at 12:34 PM, George Rykowski 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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]