Skip to content

Commit 9853d39

Browse files
argilowillcode
authored andcommitted
runtime: Import PyQt5 before matplotlib to work around a bug
This works around matplotlib/matplotlib#21998 by importing PyQt5 before matplotlib. The bug was introduced in matplotlib 3.5 and fixed in 3.5.2, but Ubuntu 22.04 ships with 3.5.1. Signed-off-by: Clayton Smith <[email protected]> (cherry picked from commit 76bd672) Signed-off-by: Jeff Long <[email protected]>
1 parent 62a7e45 commit 9853d39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import math
1919
import operator
2020

2121
from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient
22+
from PyQt5 import QtCore, Qt
2223

2324
try:
2425
import networkx as nx
@@ -40,7 +41,6 @@ except ImportError:
4041
"Please check that they are installed and try again.")
4142
sys.exit(1)
4243

43-
from PyQt5 import QtCore, Qt
4444
import itertools
4545

4646
from gnuradio import gr, ctrlport

0 commit comments

Comments
 (0)