ekosman / AnomalyDetectionCVPR2018-Pytorch

Pytorch version of - https://github.com/WaqasSultani/AnomalyDetectionCVPR2018
172 stars 52 forks source link

Failed to import any of ... PyQt6, PySide6, PyQt5, PySide2 #203

Closed ko0f closed 4 months ago

ko0f commented 8 months ago

Describe the bug When running video_demo.py it fails -

Traceback (most recent call last):
  File "video_demo.py", line 9, in <module>
    from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
  File "/Users/.../anaconda3/envs/adCVPR18/lib/python3.8/site-packages/matplotlib/backends/backend_qt5agg.py", line 7, in <module>
    from .backend_qtagg import (    # noqa: F401, E402 # pylint: disable=W0611
  File "/Users/.../anaconda3/envs/adCVPR18/lib/python3.8/site-packages/matplotlib/backends/backend_qtagg.py", line 9, in <module>
    from .qt_compat import QT_API, _enum
  File "/Users/.../anaconda3/envs/adCVPR18/lib/python3.8/site-packages/matplotlib/backends/qt_compat.py", line 135, in <module>
    raise ImportError(
ImportError: Failed to import any of the following Qt binding modules: PyQt6, PySide6, PyQt5, PySide2

To Reproduce Steps to reproduce the behavior:

  1. Clone repo
  2. Install anaconda dependencies, activate env
  3. Run python video_demo.py --help
  4. See error

Desktop (please complete the following information):

ekosman commented 7 months ago

Could you try running

conda install -c conda-forge pyqt==5.15.9

and tell if that works?

ekosman commented 4 months ago

This seems not to be reproducible. Please try to clone again and reopen the issue if that still happens.