/Users/wikerjr1/Repos/SuperDARN/genetic-array/beam_corrections.py:215: SyntaxWarning: invalid escape sequence '\p'
ax.legend(['$\phi_d$', 'Main', 'Cross'])
/Users/wikerjr1/Repos/SuperDARN/genetic-array/beam_corrections.py:218: SyntaxWarning: invalid escape sequence '\p'
ax.set_xlabel('Nominal Receiver Beam Direction, $\phi_d$ [degrees]')
Traceback (most recent call last):
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/beam_corrections.py", line 8, in <module>
matplotlib.use('QtAgg')
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/venv/lib/python3.12/site-packages/matplotlib/__init__.py", line 1281, in use
plt.switch_backend(name)
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/venv/lib/python3.12/site-packages/matplotlib/pyplot.py", line 425, in switch_backend
module = backend_registry.load_backend_module(newbackend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/venv/lib/python3.12/site-packages/matplotlib/backends/registry.py", line 317, in load_backend_module
return importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wikerjr1/miniconda3/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/venv/lib/python3.12/site-packages/matplotlib/backends/backend_qtagg.py", line 9, in <module>
from .qt_compat import QT_API, QtCore, QtGui
File "/Users/wikerjr1/Repos/SuperDARN/genetic-array/venv/lib/python3.12/site-packages/matplotlib/backends/qt_compat.py", line 130, in <module>
raise ImportError(
ImportError: Failed to import any of the following Qt binding modules: PyQt6, PySide6, PyQt5, PySide2
I got this error when running
beam_corrections.py:ImportError: Failed to import any of the following Qt binding modules: PyQt6, PySide6, PyQt5, PySide2.I fixed it via
pip install PyQt5- should PyQt5 be added to requirements.txt?