portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
41 stars 26 forks source link

New installment of Stytra crashes on startup #92

Closed nvbln closed 4 months ago

nvbln commented 4 months ago

This issue is likely related to the dependencies of Stytra becoming more outdated. I got the following error on a computer where Stytra was newly installed (old installations still work fine):

Traceback (most recent call last):
  File "C:\Users\portugueslab\python\opto_stytra\stytra_config\stytra_config\protocols\luminance\static_bg_luminance.py", line 4, in <module>
    from stytra.stimulation import Protocol
  File "C:\Users\portugueslab\python\opto_stytra\stytra\stytra\__init__.py", line 5, in <module>
    from stytra.core import Stytra
  File "C:\Users\portugueslab\python\opto_stytra\stytra\stytra\core.py", line 4, in <module>
    from stytra.experiments.tracking_experiments import (
  File "C:\Users\portugueslab\python\opto_stytra\stytra\stytra\experiments\tracking_experiments.py", line 28, in <module>
    from stytra.experiments.fish_pipelines import pipeline_dict
  File "C:\Users\portugueslab\python\opto_stytra\stytra\stytra\experiments\fish_pipelines.py", line 6, in <module>
    from stytra.gui.fishplots import TailStreamPlot, BoutPlot
  File "C:\Users\portugueslab\python\opto_stytra\stytra\stytra\gui\fishplots.py", line 16, in <module>
    class StreamingPositionPlot(pg.GraphicsWindow):
AttributeError: module 'pyqtgraph' has no attribute 'GraphicsWindow'. Did you mean: 'GraphicsView'?

Process finished with exit code 1

As the error suggests, changing GraphicsWindow to GraphicsView solves the error.