NameError: name 'QMessageBox' is not defined
This is a bug in NNJoin
plugin.
Open
NNJoin_gui.py
file located in"/Users/joanlee/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/NNJoin/"
using an editor.Add
from qgis.PyQt.QtWidgets import QMessageBox
line to imports section.Then save the file and (you may need to) restart QGIS.
You should import QMessageBox from PyQt
from qgis.PyQt.QtWidgets import QMessageBox