discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Qt ImportError


From: Marcus D. Leech
Subject: Re: Qt ImportError
Date: Tue, 7 Mar 2023 16:37:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 07/03/2023 15:58, Daniel R. Marlow wrote:

-----Original Message-----
From: discuss-gnuradio-bounces+marlow=princeton.edu@gnu.org 
<discuss-gnuradio-bounces+marlow=princeton.edu@gnu.org> On Behalf Of Marcus D. 
Leech
Sent: Tuesday, March 7, 2023 3:19 PM
To: discuss-gnuradio@gnu.org
Subject: Re: Qt ImportError

On 07/03/2023 15:05, Daniel R. Marlow wrote:
from PyQt5 import Qt
Make sure you have your system setup to run Python3 by default?

I have Ubuntu 22.04, same as you.  I don't have this problem. I installed 
everything from APT packages.


Hi Marcus,

    Thanks.    I was indeed picking up Python 2 by default.   Running Python3 
was better, but now I get hung up on StrictVersion():

Warning: failed to XInitThreads()
Traceback (most recent call last):
   File "/home/marlow/21cm_dev/sineWaveFlowGraph.py", line 238, in <module>
     main()
   File "/home/marlow/21cm_dev/sineWaveFlowGraph.py", line 211, in main
     if StrictVersion("4.5.0") <= StrictVersion(Qt.qVersion()) < 
StrictVersion("5.0.0"):
NameError: name 'StrictVersion' is not defined

Cheers,
Dan


Try:

sudo apt install packaging python3-packaging





reply via email to

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