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

-----Original Message-----
From: [email protected] 
<[email protected]> On Behalf Of Marcus D. 
Leech
Sent: Tuesday, March 7, 2023 3:19 PM
To: [email protected]
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